Skip to content

Commit

Permalink
Refactor the source generator to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmada committed Jul 22, 2021
1 parent 2a8f961 commit ed34b10
Show file tree
Hide file tree
Showing 231 changed files with 2,993 additions and 5,827 deletions.
21 changes: 12 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ csharp_style_var_for_built_in_types = true:error
csharp_style_var_when_type_is_apparent = true:error

# Expression-bodied members
csharp_style_expression_bodied_accessors = true:error
csharp_style_expression_bodied_constructors = true:error
csharp_style_expression_bodied_indexers = true:error
csharp_style_expression_bodied_lambdas = true:error
csharp_style_expression_bodied_local_functions = true:error
csharp_style_expression_bodied_methods = true:error
csharp_style_expression_bodied_operators = true:error
csharp_style_expression_bodied_properties = true:error
csharp_style_expression_bodied_accessors =true:warning
csharp_style_expression_bodied_constructors =true:warning
csharp_style_expression_bodied_indexers =true:warning
csharp_style_expression_bodied_lambdas =true:warning
csharp_style_expression_bodied_local_functions =true:warning
csharp_style_expression_bodied_methods =true:warning
csharp_style_expression_bodied_operators =true:warning
csharp_style_expression_bodied_properties =true:warning

# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:error
Expand All @@ -101,7 +101,7 @@ csharp_style_pattern_local_over_anonymous_function = true:error
csharp_style_prefer_index_operator = true:warning
csharp_style_prefer_range_operator = true:warning
csharp_style_throw_expression = true:error
csharp_style_unused_value_assignment_preference = discard_variable:error
csharp_style_unused_value_assignment_preference =discard_variable:warning
csharp_style_unused_value_expression_statement_preference = discard_variable:error

# 'using' directive preferences
Expand Down Expand Up @@ -216,3 +216,6 @@ dotnet_naming_style.camel_case.required_prefix =
dotnet_naming_style.camel_case.required_suffix =
dotnet_naming_style.camel_case.word_separator =
dotnet_naming_style.camel_case.capitalization = camel_case

[*.{cs,vb}]
dotnet_code_quality_unused_parameters=all:warning
5 changes: 3 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1.7.2
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100-preview.2.21155.3'
dotnet-version: '6.0.x'
include-prerelease: true
- name: Test source generator
run: dotnet test ./NetFabric.Hyperlinq.SourceGenerator.UnitTests/NetFabric.Hyperlinq.SourceGenerator.UnitTests.csproj
- name: Build solution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -15,6 +16,7 @@
<ItemGroup>
<ProjectReference Include="..\NetFabric.Hyperlinq\NetFabric.Hyperlinq.csproj" />
<ProjectReference Include="..\NetFabric.Hyperlinq.UnitTests\NetFabric.Hyperlinq.UnitTests.csproj" />
<ProjectReference Include="..\NetFabric.Hyperlinq.SourceGenerator\NetFabric.Hyperlinq.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
Expand Down
55 changes: 0 additions & 55 deletions NetFabric.Hyperlinq.Immutable/NetFabric.Hyperlinq.Immutable.csproj

This file was deleted.

This file was deleted.

Loading

0 comments on commit ed34b10

Please sign in to comment.