Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 47 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
root = true
[*]
end_of_line = crlf
tab_width = 4
indent_size = 4
dotnet_style_readonly_field = true:suggestion
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:warning
dotnet_style_prefer_collection_expression = true:suggestion
dotnet_style_collection_initializer = true:warning
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = false:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:warning
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_namespace_match_folder = true:suggestion

[*.cs]
# Style options
Expand Down Expand Up @@ -156,4 +176,30 @@ dotnet_naming_rule.non_interface_types_must_be_pascal_case.style = pascal_case
# Interfaces must be PascalCase and start with an 'I'
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = warning
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.symbols = interface_types
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_prefer_pattern_matching = true:silent
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_extended_property_pattern = true:suggestion
csharp_prefer_simple_using_statement = true:suggestion
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion
csharp_prefer_static_local_function = true:suggestion
csharp_style_prefer_readonly_struct = true:suggestion
csharp_style_prefer_readonly_struct_member = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_prefer_null_check_over_type_check = true:suggestion

# RCS1179: Unnecessary assignment
dotnet_diagnostic.RCS1179.severity = none
12 changes: 6 additions & 6 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: |
.nuke/temp
Expand All @@ -50,22 +50,22 @@ jobs:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Publish: unit-tests'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: unit-tests
path: output/artifacts/tests-results/unit-tests
- name: 'Publish: coverage-report'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: output/artifacts/reports/coverage-report
- name: 'Publish: coverage-history'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: coverage-history
path: output/artifacts/reports/coverage-history
- name: 'Publish: packages'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: packages
path: output/artifacts/packages
12 changes: 6 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: |
.nuke/temp
Expand All @@ -48,22 +48,22 @@ jobs:
NugetApiKey: ${{ secrets.NUGET_API_KEY }}
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
- name: 'Publish: unit-tests'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: unit-tests
path: output/artifacts/tests-results/unit-tests
- name: 'Publish: coverage-report'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: output/artifacts/reports/coverage-report
- name: 'Publish: coverage-history'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: coverage-history
path: output/artifacts/reports/coverage-history
- name: 'Publish: packages'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: packages
path: output/artifacts/packages
14 changes: 7 additions & 7 deletions .github/workflows/nightly-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: |
.nuke/temp
Expand All @@ -41,27 +41,27 @@ jobs:
StrykerDashboardApiKey: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Publish: mutation-tests'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: mutation-tests
path: output/artifacts/tests-results/mutation-tests
- name: 'Publish: unit-tests'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: unit-tests
path: output/artifacts/tests-results/unit-tests
- name: 'Publish: packages'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: packages
path: output/artifacts/packages
- name: 'Publish: coverage-report'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: output/artifacts/reports/coverage-report
- name: 'Publish: coverage-history'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: coverage-history
path: output/artifacts/reports/coverage-history
14 changes: 14 additions & 0 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@
"type": "boolean",
"description": "Indicates to open the pull request as 'draft'"
},
"Formatters": {
"type": "array",
"description": "Sets of formatters that the tool must apply",
"items": {
"type": "string",
"enum": [
"Analyzers",
"Style",
"Whitespace"
]
}
},
"GitHubToken": {
"type": "string",
"description": "Token used to create a new release in GitHub",
Expand Down Expand Up @@ -133,6 +145,7 @@
"Coldfix",
"Compile",
"Feature",
"Format",
"Hotfix",
"MutationTests",
"Pack",
Expand Down Expand Up @@ -166,6 +179,7 @@
"Coldfix",
"Compile",
"Feature",
"Format",
"Hotfix",
"MutationTests",
"Pack",
Expand Down
4 changes: 3 additions & 1 deletion .nuke/parameters.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"$schema": "./build.schema.json",
"Solution": "DataFilters.sln"
"Solution": "DataFilters.sln",
"NoLogo": true,
"Formatters": ["analyzers", "style"]
}
3 changes: 2 additions & 1 deletion .nuke/parameters.local.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"GitHubToken": "v1:OhvldXY34GSHTumJiuoWhHPHKwSoVb7B/X19pufOj7+Q2O5n0YnxMIowWmry2b4SbtIW2Ah4uwPP1HpOLvvfB9LO4QIggTf/dAVK00aG+Cp2ZeG/kqhbEsc9c6tV8lZn",
"NugetApiKey": "v1:pqiQ7rGFSYoCihCFSrdaCRFpf0BoThUJFRbvzCqVjnWssX61zbm6Z7aZH9x1/fOg",
"CodecovToken": "v1:fD+Tl5VfvzhiKcjphPlwB+e7w7Dj7N645OTAjSoEtozxIae0KhwkqvHBi7RChHK3"
"CodecovToken": "v1:fD+Tl5VfvzhiKcjphPlwB+e7w7Dj7N645OTAjSoEtozxIae0KhwkqvHBi7RChHK3",
"Formatters": []
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,11 @@ it to an equivalent [`IWhereClause`](https://github.com/candoumbe/Queries/blob/d
can later be translated a secure SQL string.
You can find more info on that directly in the Github repository.

| Package | Downloads | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [![Nuget](https://img.shields.io/nuget/v/Datafilters?label=Datafilters&color=blue)](https://www.nuget.org/packages/DataFilters) | ![DataFilters download count](https://img.shields.io/nuget/dt/Datafilters?label=&color=blue) | provides core functionalities of parsing strings and converting to [IFilter][class-ifilter] instances. |
| [![Nuget](https://img.shields.io/nuget/v/DataFilters.Expressions?label=Datafilters.Expressions&color=blue)](https://www.nuget.org/packages/DataFilters.Expressions) | ![DataFilters.Expressions download count](https://img.shields.io/nuget/dt/Datafilters.Expressions?label=&color=blue) | adds `ToExpression<T>()` extension method on top of [IFilter][class-ifilter] instance to convert it to an equivalent `System.Linq.Expressions.Expression<Func<T, bool>>` instance. |
| [![Nuget](https://img.shields.io/nuget/v/Datafilters.Queries?label=DataFilters.Queries&color=blue)](https://www.nuget.org/packages/DataFilters.Queries) | ![DataFilters.Queries download count](https://img.shields.io/nuget/dt/Datafilters.Queries?label=&color=blue) | adds `ToWhere<T>()` extension method on top of [IFilter][class-ifilter] instance to convert it to an equivalent [`IWhereClause`](https://dev.azure.com/candoumbe/Queries) instance. |
| Package | Downloads | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [![Nuget](https://img.shields.io/nuget/v/Datafilters?label=Datafilters&color=blue)](https://www.nuget.org/packages/DataFilters) | ![DataFilters download count](https://img.shields.io/nuget/dt/Datafilters?label=&color=blue) | provides core functionalities of parsing strings and converting to [IFilter][class-ifilter] instances. |
| [![Nuget](https://img.shields.io/nuget/v/DataFilters.Expressions?label=Datafilters.Expressions&color=blue)](https://www.nuget.org/packages/DataFilters.Expressions) | ![DataFilters.Expressions download count](https://img.shields.io/nuget/dt/Datafilters.Expressions?label=&color=blue) | adds `ToExpression<T>()` extension method on top of [IFilter][class-ifilter] instance to convert it to an equivalent `System.Linq.Expressions.Expression<Func<T, bool>>` instance. |
| [![Nuget](https://img.shields.io/nuget/v/Datafilters.Queries?label=DataFilters.Queries&color=blue)](https://www.nuget.org/packages/DataFilters.Queries) | ![DataFilters.Queries download count](https://img.shields.io/nuget/dt/Datafilters.Queries?label=&color=blue) | adds `ToWhere<T>()` extension method on top of [IFilter][class-ifilter] instance to convert it to an equivalent [`IWhereClause`](https://github.com/candoumbe/Queries/blob/develop/src/Queries.Core/Parts/Clauses/IWhereClause.cs) instance. |

[class-multi-filter]: /src/DataFilters/MultiFilter.cs
[class-ifilter]: /src/DataFilters/IFilter.cs
Expand Down
Loading