Skip to content

Commit e34a5e9

Browse files
authored
Merge pull request #64 from messerli-informatik-ag/release-analyzer
Release analyzer
2 parents 5046191 + b6fbdc6 commit e34a5e9

File tree

8 files changed

+38
-22
lines changed

8 files changed

+38
-22
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
; Shipped analyzer releases
22
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
33

4+
## Release 0.1.0
5+
### New Rules
6+
Rule ID | Category | Severity | Notes
7+
--------|----------|----------|-------
8+
MESSERLI001 | Access Modifiers | Warning | RuleConstants
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
; Unshipped analyzer release
22
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3-
4-
### New Rules
5-
6-
Rule ID | Category | Severity | Notes
7-
--------|----------|----------|-------
8-
MESSERLI001 | Access Modifiers | Warning | RuleConstants
Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<TargetFramework>netstandard2.0</TargetFramework>
5-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6-
<IsPackable>true</IsPackable>
74
<AssemblyName>Messerli.CodeStyle.Analyzers</AssemblyName>
85
<RootNamespace>Messerli.CodeStyle.Analyzers</RootNamespace>
96
<LangVersion>9.0</LangVersion>
10-
<PackageId>Messerli.CodeStyle.Analyzers</PackageId>
7+
</PropertyGroup>
8+
<PropertyGroup>
9+
<Version>0.1.0</Version>
1110
<PackageTags>analyzers</PackageTags>
12-
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
13-
<Copyright>© Messerli Informatik AG. All rights reserved.</Copyright>
1411
<Description>Various analyzers bundled with opinionated configuration</Description>
1512
</PropertyGroup>
16-
13+
<PropertyGroup>
14+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
15+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
16+
<IncludeBuildOutput>false</IncludeBuildOutput>
17+
</PropertyGroup>
1718
<ItemGroup>
1819
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" />
19-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.9.0" />
20-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.9.0" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.8.0" />
2121
<PackageReference Include="Funcky" Version="2.3.0" />
2222
</ItemGroup>
23+
<ItemGroup>
24+
<None Include="$(OutputPath)\$(AssemblyName).dll;$(OutputPath)\Funcky.dll" Visible="false">
25+
<Pack>true</Pack>
26+
<PackagePath>analyzers/dotnet/cs</PackagePath>
27+
</None>
28+
</ItemGroup>
2329
</Project>

CodeStyle.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Config", "Build Confi
99
ProjectSection(SolutionItems) = preProject
1010
global.json = global.json
1111
NuGet.config = NuGet.config
12+
Directory.Build.props = Directory.Build.props
1213
EndProjectSection
1314
EndProject
1415
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AA84EF3C-D29F-4B6D-ADEE-E87610D0BC1C}"

CodeStyle/CodeStyle.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.Build.NoTargets">
33
<PropertyGroup>
4-
<Version>2.0.1</Version>
5-
<RepositoryUrl>https://github.com/messerli-informatik-ag/code-style</RepositoryUrl>
6-
<RepositoryType>git</RepositoryType>
4+
<Version>2.1.0</Version>
75
<PackageId>Messerli.CodeStyle</PackageId>
86
<PackageTags>analyzers</PackageTags>
9-
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
10-
<Copyright>© Messerli Informatik AG. All rights reserved.</Copyright>
117
<Description>Various analyzers bundled with opinionated configuration</Description>
128
<NoWarn>$(NoWarn);NU5105;NU5104;NU5128</NoWarn>
139
<!-- NU5105: The version property specified contains SemVer 2.0.0 components.

Directory.Build.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup Label="Shared NuGet Metadata">
4+
<Authors>Messerli Informatik AG</Authors>
5+
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
6+
<PackageProjectUrl>https://github.com/messerli-informatik-ag/code-style</PackageProjectUrl>
7+
<RepositoryType>git</RepositoryType>
8+
<RepositoryUrl>https://github.com/messerli-informatik-ag/code-style</RepositoryUrl>
9+
<Copyright>© Messerli Informatik AG. All rights reserved.</Copyright>
10+
</PropertyGroup>
11+
</Project>

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@ Initial release
9292
* Update StyleCop.Analyzers to 1.2.0-beta.333 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.321...1.2.0-beta.333)) \
9393
Notable changes/fixes:
9494
* [23db6c0: Avoid reporting SA1141 (Use tuple syntax) in expression trees](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/commit/af356f9b36dc4849a678c0b8c918123fa567913b)
95+
96+
## 2.1.0
97+
* Warn when interface method has `public` accessibility modifier (`MESSERLI001`)

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Add the following package reference to your project or to your `Directory.Build.
1414
<?xml version="1.0" encoding="utf-8"?>
1515
<Project>
1616
<ItemGroup>
17-
+ <PackageReference Include="Messerli.CodeStyle" Version="2.0.1" PrivateAssets="all" />
17+
+ <PackageReference Include="Messerli.CodeStyle" Version="2.1.0" PrivateAssets="all" />
1818
</ItemGroup>
1919
</Project>
2020
```
@@ -26,7 +26,7 @@ Add `Messerli.CodeStyle` to your `Packages.props`:
2626
<?xml version="1.0" encoding="utf-8"?>
2727
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2828
<ItemGroup Label="Build dependencies">
29-
+ <PackageReference Update="Messerli.CodeStyle" Version="2.0.1" />
29+
+ <PackageReference Update="Messerli.CodeStyle" Version="2.1.0" />
3030
</ItemGroup>
3131
</Project>
3232
```

0 commit comments

Comments
 (0)