Skip to content
Merged
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
10 changes: 8 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ indent_style = space
trim_trailing_whitespace = true
charset = utf-8
end_of_line = lf
max_line_length = 120

# Verify settings
# https://github.com/VerifyTests/Verify?tab=readme-ov-file#text-file-settings
Expand All @@ -24,7 +25,7 @@ tab_width = unset
trim_trailing_whitespace = false

# Code files
[*.{cs,csx,vb,vbx}]
[*.{cs,csx,vb,vbx,razor,razor.cs}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom
Expand All @@ -34,6 +35,7 @@ charset = utf-8-bom
# See https://github.com/dotnet/aspnetcore/pull/23502 and https://github.com/dotnet/aspnetcore/issues/22753
[*.{razor,cshtml}]
charset = utf-8-bom
indent_size = 4

# Generated code
[*{_AssemblyInfo.cs,.notsupported.cs,.generated.cs}]
Expand Down Expand Up @@ -121,7 +123,7 @@ dotnet_style_null_propagation = true :

# Modifier preferences
# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#normalize-modifiers
dotnet_style_require_accessibility_modifiers = always : error
dotnet_style_require_accessibility_modifiers = for_non_interface_members : error
dotnet_style_readonly_field = true : warning

# Required Styles
Expand Down Expand Up @@ -276,3 +278,7 @@ dotnet_diagnostic.SA1502.severity = none
dotnet_diagnostic.SA1504.severity = none
dotnet_diagnostic.SA1515.severity = none
dotnet_diagnostic.SA1516.severity = none

# Support for NetEvolve.Arguments Methods
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1062#null-check-validation-methods
dotnet_code_quality.CA1062.null_check_validation_methods = M:NetEvolve.Arguments.Argument.ThrowIfNull(System.Object,System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNull(System.Void*,System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNullOrEmpty(System.String,System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNullOrEmpty``1(System.Collections.Generic.IEnumerable{``0},System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNullOrWhiteSpace(System.String,System.String)
17 changes: 10 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ on:
- detailed
- diagnostic

permissions:
actions: read
contents: read
pull-requests: write
security-events: write

jobs:
all:
if: github.run_id != 1
name: Build & Tests
uses: dailydevops/pipelines/.github/workflows/cicd-dotnet.yml@0.14.110
uses: dailydevops/pipelines/.github/workflows/build-dotnet-single.yml@1.0.8
with:
disablePublish: true
dotnet-logging: ${{ inputs.dotnet-logging }}
dotnet-version: ${{ vars.NE_DOTNET_TARGETFRAMEWORKS }}
enableSonarQube: ${{ vars.NE_DOTNET_SONAR }}
solution: ###SOLUTION###
dotnetVersion: ${{ vars.NE_DOTNET_TARGETFRAMEWORKS }}
dotnetQuality: ${{ vars.NE_DOTNET_QUALITY }}
solution: ./HealthChecks.slnx
secrets: inherit
39 changes: 0 additions & 39 deletions CodeBuilder.sln

This file was deleted.

24 changes: 24 additions & 0 deletions CodeBuilder.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Solution>
<Folder Name="/Solution Items/">
<File Path=".commitlintrc" />
<File Path=".editorconfig" />
<File Path=".filenesting.json" />
<File Path=".gitattributes" />
<File Path=".gitignore" />
<File Path="Directory.Build.props" />
<File Path="Directory.Packages.props" />
<File Path="Directory.Solution.props" />
<File Path="GitVersion.yml" />
<File Path="LICENSE" />
<File Path="logo.png" />
<File Path="nuget.config" />
<File Path="README.md" />
<File Path="testEnvironments.json" />
</Folder>
<Folder Name="/src/">
<Project Path="src/NetEvolve.CodeBuilder/NetEvolve.CodeBuilder.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/NetEvolve.CodeBuilder.Tests.Unit/NetEvolve.CodeBuilder.Tests.Unit.csproj" />
</Folder>
</Solution>
17 changes: 9 additions & 8 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<Project>

<PropertyGroup Label="Package settings">
<Title>$(MSBuildProjectName)</Title>
<Description></Description>
<RepositoryUrl></RepositoryUrl>
<PackageProjectUrl></PackageProjectUrl>
<Description>Provides a high-performance, memory-efficient builder for creating C# code.</Description>
<RepositoryUrl>https://github.com/dailydevops/codebuilder.git</RepositoryUrl>
<PackageProjectUrl>https://github.com/dailydevops/codebuilder</PackageProjectUrl>
<PackageReleaseNotes>$(RepositoryUrl)/releases</PackageReleaseNotes>
<PackageTags></PackageTags>
<PackageTags>$(PackageTags);codegeneration;sourcegenrator</PackageTags>
<CopyrightYearStart>2024</CopyrightYearStart>
<_DefaultTargetFrameworks>net8.0;net9.0;net10.0</_DefaultTargetFrameworks>
<_ProjectTargetFrameworks>netstandard2.0;netstandard2.1;$(_DefaultTargetFrameworks)</_ProjectTargetFrameworks>
<_TestTargetFrameworks>net6.0;net7.0;$(_DefaultTargetFrameworks)</_TestTargetFrameworks>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
</PropertyGroup>

<PropertyGroup>
<!-- Workaround, until https://github.com/GitTools/GitVersion/pull/4206 is released -->
<GitVersionTargetFramework>net8.0</GitVersionTargetFramework>
<GitVersionTargetFramework>net9.0</GitVersionTargetFramework>
</PropertyGroup>

</Project>
20 changes: 11 additions & 9 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<Project>

<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>

<ItemGroup>
<GlobalPackageReference Include="CSharpier.MSBuild" Version="0.30.6" />
<GlobalPackageReference Include="GitVersion.MsBuild" Version="6.1.0" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" />
<GlobalPackageReference Include="CSharpier.MSBuild" Version="1.0.3" />
<GlobalPackageReference Include="GitVersion.MsBuild" Version="6.3.0" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="4.14.0" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.12.19" />
<GlobalPackageReference Include="NetEvolve.Defaults" Version="1.3.39" />
<GlobalPackageReference Include="SonarAnalyzer.CSharp" Version="10.5.0.109200" Condition=" '$(BuildingInsideVisualStudio)' == 'true' " />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15" />
<GlobalPackageReference Include="NetEvolve.Defaults" Version="1.3.115" />
<GlobalPackageReference Include="SonarAnalyzer.CSharp" Version="10.13.0.120203" />
</ItemGroup>
<ItemGroup>
<PackageVersion Include="NetEvolve.Extensions.TUnit" Version="2.6.26" />
<PackageVersion Include="System.Memory" Version="4.6.3" />
<PackageVersion Include="TUnit" Version="0.25.21" />
</ItemGroup>

</Project>
Loading
Loading