Skip to content

Commit ed34b10

Browse files
committed
Refactor the source generator to be public
1 parent 2a8f961 commit ed34b10

File tree

231 files changed

+2993
-5827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+2993
-5827
lines changed

Diff for: .editorconfig

+12-9
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ csharp_style_var_for_built_in_types = true:error
6868
csharp_style_var_when_type_is_apparent = true:error
6969

7070
# Expression-bodied members
71-
csharp_style_expression_bodied_accessors = true:error
72-
csharp_style_expression_bodied_constructors = true:error
73-
csharp_style_expression_bodied_indexers = true:error
74-
csharp_style_expression_bodied_lambdas = true:error
75-
csharp_style_expression_bodied_local_functions = true:error
76-
csharp_style_expression_bodied_methods = true:error
77-
csharp_style_expression_bodied_operators = true:error
78-
csharp_style_expression_bodied_properties = true:error
71+
csharp_style_expression_bodied_accessors =true:warning
72+
csharp_style_expression_bodied_constructors =true:warning
73+
csharp_style_expression_bodied_indexers =true:warning
74+
csharp_style_expression_bodied_lambdas =true:warning
75+
csharp_style_expression_bodied_local_functions =true:warning
76+
csharp_style_expression_bodied_methods =true:warning
77+
csharp_style_expression_bodied_operators =true:warning
78+
csharp_style_expression_bodied_properties =true:warning
7979

8080
# Pattern matching preferences
8181
csharp_style_pattern_matching_over_as_with_null_check = true:error
@@ -101,7 +101,7 @@ csharp_style_pattern_local_over_anonymous_function = true:error
101101
csharp_style_prefer_index_operator = true:warning
102102
csharp_style_prefer_range_operator = true:warning
103103
csharp_style_throw_expression = true:error
104-
csharp_style_unused_value_assignment_preference = discard_variable:error
104+
csharp_style_unused_value_assignment_preference =discard_variable:warning
105105
csharp_style_unused_value_expression_statement_preference = discard_variable:error
106106

107107
# 'using' directive preferences
@@ -216,3 +216,6 @@ dotnet_naming_style.camel_case.required_prefix =
216216
dotnet_naming_style.camel_case.required_suffix =
217217
dotnet_naming_style.camel_case.word_separator =
218218
dotnet_naming_style.camel_case.capitalization = camel_case
219+
220+
[*.{cs,vb}]
221+
dotnet_code_quality_unused_parameters=all:warning

Diff for: .github/workflows/dotnetcore.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ jobs:
1010
- name: Check out repository
1111
uses: actions/checkout@v2
1212
- name: Setup .NET Core
13-
uses: actions/setup-dotnet@v1.7.2
13+
uses: actions/setup-dotnet@v1
1414
with:
15-
dotnet-version: '6.0.100-preview.2.21155.3'
15+
dotnet-version: '6.0.x'
16+
include-prerelease: true
1617
- name: Test source generator
1718
run: dotnet test ./NetFabric.Hyperlinq.SourceGenerator.UnitTests/NetFabric.Hyperlinq.SourceGenerator.UnitTests.csproj
1819
- name: Build solution

Diff for: NetFabric.Hyperlinq.Benchmarks/NetFabric.Hyperlinq.Benchmarks.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>net6.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
7+
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
78
</PropertyGroup>
89

910
<PropertyGroup>
@@ -15,6 +16,7 @@
1516
<ItemGroup>
1617
<ProjectReference Include="..\NetFabric.Hyperlinq\NetFabric.Hyperlinq.csproj" />
1718
<ProjectReference Include="..\NetFabric.Hyperlinq.UnitTests\NetFabric.Hyperlinq.UnitTests.csproj" />
19+
<ProjectReference Include="..\NetFabric.Hyperlinq.SourceGenerator\NetFabric.Hyperlinq.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
1820
</ItemGroup>
1921

2022
<ItemGroup>

Diff for: NetFabric.Hyperlinq.Immutable/NetFabric.Hyperlinq.Immutable.csproj

-55
This file was deleted.

Diff for: NetFabric.Hyperlinq.SourceGenerator.UnitTests/CollectExtensionMethodsTests.cs

-49
This file was deleted.

0 commit comments

Comments
 (0)