Skip to content

Commit

Permalink
Update Kysect.Editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
FrediKats committed Apr 27, 2024
1 parent 6ae2f23 commit 0ed4e3b
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 88 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Kysect.CommonLib

Kysect.CommonLib - это nuget, который содержит расширения стандартного фреймворка, которые часто приходиться писать в новых проектах.
Kysect.CommonLib is a nuget that contains several extensions for the standard framework that are often written in new projects of Kysect organization.

This repository contains two NuGet packages:

- Kysect.CommonLib - main package that contains almost all the extensions.
- Kysect.CommonLib.DependencyInjection - extension that is only applicable for configuration root projects.
5 changes: 5 additions & 0 deletions Sources/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ indent_size = 4
indent_style = space
insert_final_newline = false

[*.{xml,csproj,props}]
tab_width = 2
indent_size = 2

[*.{cs,vb}]
## Simplify name (IDE0001)
## This rule concerns the use of simplified type names in declarations and executable code, when possible. You can remove unnecessary name qualification to simplify code and improve readability.
Expand Down Expand Up @@ -3446,6 +3450,7 @@ dotnet_diagnostic.CA1869.severity = suggestion
## Dispose objects before losing scope (CA2000)
## If a disposable object is not explicitly disposed before all references to it are out of scope, the object will be disposed at some indeterminate time when the garbage collector runs the finalizer of the object. Because an exceptional event might occur that will prevent the finalizer of the object from running, the object should be explicitly disposed instead.
dotnet_diagnostic.CA2000.severity = warning
dotnet_code_quality.dispose_ownership_transfer_at_constructor = true

## Do not lock on objects with weak identity (CA2002)
## An object is said to have a weak identity when it can be directly accessed across application domain boundaries. A thread that tries to acquire a lock on an object that has a weak identity can be blocked by a second thread in a different application domain that has a lock on the same object.
Expand Down
60 changes: 30 additions & 30 deletions Sources/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<Project>
<!-- Default project values -->
<PropertyGroup>
<Authors>Kysect</Authors>
<Company>Kysect</Company>
<PackageIcon>Kysect-logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Copyright>Copyright (c) Kysect 2023</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<!-- Default project values -->
<PropertyGroup>
<Authors>Kysect</Authors>
<Company>Kysect</Company>
<PackageIcon>Kysect-logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Copyright>Copyright (c) Kysect 2023</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<!-- Specific project values -->
<PropertyGroup>
<RepositoryUrl>https://github.com/kysect/Kysect.CommonLib</RepositoryUrl>
<PackageProjectUrl>https://github.com/kysect/Kysect.CommonLib</PackageProjectUrl>
<Version>0.1.20</Version>
</PropertyGroup>
<!-- Specific project values -->
<PropertyGroup>
<RepositoryUrl>https://github.com/kysect/Kysect.CommonLib</RepositoryUrl>
<PackageProjectUrl>https://github.com/kysect/Kysect.CommonLib</PackageProjectUrl>
<Version>0.1.20</Version>
</PropertyGroup>

<!-- Code configuration -->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<UseArtifactsOutput>true</UseArtifactsOutput>
<DebugType>portable</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<!-- Code configuration -->
<PropertyGroup>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<UseArtifactsOutput>true</UseArtifactsOutput>
<DebugType>portable</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Kysect.Editorconfig" />
<None Include="$(SolutionDir)..\Images\Kysect-logo.png" Pack="true" PackagePath="" />
<None Include="$(SolutionDir)..\README.md" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Kysect.Editorconfig" />
<None Include="$(SolutionDir)..\Images\Kysect-logo.png" Pack="true" PackagePath="" />
<None Include="$(SolutionDir)..\README.md" Pack="true" PackagePath="" />
</ItemGroup>
</Project>
12 changes: 6 additions & 6 deletions Sources/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<PackageVersion Include="codeessentials.Extensions.Logging.Demystifier" Version="1.1.66" />
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
<PackageVersion Include="Kysect.Editorconfig" Version="1.1.6" />
<PackageVersion Include="Kysect.Editorconfig" Version="1.1.8" />
<PackageVersion Include="Lunet.Extensions.Logging.SpectreConsole" Version="1.1.0" />
<PackageVersion Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
Expand All @@ -24,17 +24,17 @@
<PackageVersion Include="System.Text.Json" Version="8.0.0" />
<PackageVersion Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageVersion Include="FluentAssertions" Version="[6.12.0, )" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="NUnit" Version="4.0.1" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageVersion Include="NUnit.Analyzers" Version="3.10.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="Nullable" Version="1.3.1" />
<PackageVersion Include="TestableIO.System.IO.Abstractions" Version="20.0.4" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.Analyzers" Version="2022.0.0" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="20.0.4" />
<PackageVersion Include="xunit" Version="2.7.0" />
<PackageVersion Include="xunit.analyzers" Version="1.11.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.7" />
<PackageVersion Include="xunit" Version="2.7.1" />
<PackageVersion Include="xunit.analyzers" Version="1.12.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.8" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Title>Kysect.CommonLib.DependencyInjection</Title>
<Description>Common lib for Kysect projects.</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IsPackable>true</IsPackable>
</PropertyGroup>
<PropertyGroup>
<Title>Kysect.CommonLib.DependencyInjection</Title>
<Description>Common lib for Kysect projects.</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="codeessentials.Extensions.Logging.Demystifier" />
<PackageReference Include="Lunet.Extensions.Logging.SpectreConsole" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.Extensions.Logging" />
<PackageReference Include="Microsoft.Extensions.Options" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" />
<PackageReference Include="Serilog.Extensions.Logging" />
<PackageReference Include="Serilog.Settings.Configuration" />
<PackageReference Include="Serilog.Sinks.File" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Kysect.CommonLib\Kysect.CommonLib.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="codeessentials.Extensions.Logging.Demystifier" />
<PackageReference Include="Lunet.Extensions.Logging.SpectreConsole" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.Extensions.Logging" />
<PackageReference Include="Microsoft.Extensions.Options" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" />
<PackageReference Include="Serilog.Extensions.Logging" />
<PackageReference Include="Serilog.Settings.Configuration" />
<PackageReference Include="Serilog.Sinks.File" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Kysect.CommonLib\Kysect.CommonLib.csproj" />
</ItemGroup>
</Project>
3 changes: 1 addition & 2 deletions Sources/Kysect.CommonLib.Tests/Kysect.CommonLib.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@
<ProjectReference Include="..\Kysect.CommonLib.DependencyInjection\Kysect.CommonLib.DependencyInjection.csproj" />
<ProjectReference Include="..\Kysect.CommonLib\Kysect.CommonLib.csproj" />
</ItemGroup>

</Project>
</Project>
52 changes: 26 additions & 26 deletions Sources/Kysect.CommonLib/Kysect.CommonLib.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Title>Kysect.CommonLib</Title>
<Description>Common lib for Kysect projects.</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IsPackable>true</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<Title>Kysect.CommonLib</Title>
<Description>Common lib for Kysect projects.</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IsPackable>true</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="IsExternalInit">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Bcl.HashCode" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<PackageReference Include="Nullable">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Text.Json" />
<PackageReference Include="TestableIO.System.IO.Abstractions" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="IsExternalInit">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Bcl.HashCode" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<PackageReference Include="Nullable">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Text.Json" />
<PackageReference Include="TestableIO.System.IO.Abstractions" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit 0ed4e3b

Please sign in to comment.