Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Commit 10318e6

Browse files
Merge pull request #2535 from xt0rted/code-analysis
Setup code analysis
2 parents 877fa86 + c930b8c commit 10318e6

58 files changed

Lines changed: 648 additions & 72 deletions

File tree

Some content is hidden

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

Nancy.ruleset

Lines changed: 421 additions & 0 deletions
Large diffs are not rendered by default.

src/Nancy.Authentication.Basic.MSBuild/Nancy.Authentication.Basic.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<DefineConstants>DEBUG;TRACE</DefineConstants>
3737
<ErrorReport>prompt</ErrorReport>
3838
<WarningLevel>4</WarningLevel>
39-
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
39+
<CodeAnalysisRuleSet>..\..\Nancy.ruleset</CodeAnalysisRuleSet>
4040
<DocumentationFile>bin\Debug\Nancy.Authentication.Basic.XML</DocumentationFile>
4141
<Prefer32Bit>false</Prefer32Bit>
4242
</PropertyGroup>
@@ -124,6 +124,12 @@
124124
<Name>Nancy</Name>
125125
</ProjectReference>
126126
</ItemGroup>
127+
<ItemGroup>
128+
<None Include="packages.config" />
129+
</ItemGroup>
130+
<ItemGroup>
131+
<Analyzer Include="..\..\packages\AsyncUsageAnalyzers.1.0.0-alpha003\analyzers\dotnet\AsyncUsageAnalyzers.dll" />
132+
</ItemGroup>
127133
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
128134
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
129135
Other similar extension points exist, see Microsoft.Common.targets.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="AsyncUsageAnalyzers" version="1.0.0-alpha003" targetFramework="net45" developmentDependency="true" />
4+
</packages>

src/Nancy.Authentication.Basic/project.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"version": "2.0.0-barneyrubble",
33
"description": "A basic HTTP authentication provider for Nancy.",
44
"authors": [ "Andreas Håkansson, Steven Robbins and contributors" ],
@@ -15,7 +15,8 @@
1515
},
1616

1717
"dependencies": {
18-
"Nancy": { "target": "project" }
18+
"AsyncUsageAnalyzers": "1.0.0-alpha003",
19+
"Nancy": { "target": "project" }
1920
},
2021

2122
"frameworks": {

src/Nancy.Authentication.Forms.MSBuild/Nancy.Authentication.Forms.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<DefineConstants>DEBUG;TRACE</DefineConstants>
3737
<ErrorReport>prompt</ErrorReport>
3838
<WarningLevel>4</WarningLevel>
39-
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
39+
<CodeAnalysisRuleSet>..\..\Nancy.ruleset</CodeAnalysisRuleSet>
4040
<DocumentationFile>bin\Debug\Nancy.Authentication.Forms.XML</DocumentationFile>
4141
<Prefer32Bit>false</Prefer32Bit>
4242
</PropertyGroup>
@@ -121,6 +121,12 @@
121121
<Name>Nancy</Name>
122122
</ProjectReference>
123123
</ItemGroup>
124+
<ItemGroup>
125+
<None Include="packages.config" />
126+
</ItemGroup>
127+
<ItemGroup>
128+
<Analyzer Include="..\..\packages\AsyncUsageAnalyzers.1.0.0-alpha003\analyzers\dotnet\AsyncUsageAnalyzers.dll" />
129+
</ItemGroup>
124130
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
125131
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
126132
Other similar extension points exist, see Microsoft.Common.targets.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="AsyncUsageAnalyzers" version="1.0.0-alpha003" targetFramework="net45" developmentDependency="true" />
4+
</packages>

src/Nancy.Authentication.Forms/project.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"version": "2.0.0-barneyrubble",
33
"description": "A forms authentication provider for Nancy.",
44
"authors": [ "Andreas Håkansson, Steven Robbins and contributors" ],
@@ -15,7 +15,8 @@
1515
},
1616

1717
"dependencies": {
18-
"Nancy": { "target": "project" }
18+
"AsyncUsageAnalyzers": "1.0.0-alpha003",
19+
"Nancy": { "target": "project" }
1920
},
2021

2122
"frameworks": {

src/Nancy.Authentication.Stateless.MSBuild/Nancy.Authentication.Stateless.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<DefineConstants>DEBUG;TRACE</DefineConstants>
3737
<ErrorReport>prompt</ErrorReport>
3838
<WarningLevel>4</WarningLevel>
39-
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
39+
<CodeAnalysisRuleSet>..\..\Nancy.ruleset</CodeAnalysisRuleSet>
4040
<DocumentationFile>bin\Debug\Nancy.Authentication.Stateless.XML</DocumentationFile>
4141
<Prefer32Bit>false</Prefer32Bit>
4242
</PropertyGroup>
@@ -108,6 +108,12 @@
108108
<Name>Nancy</Name>
109109
</ProjectReference>
110110
</ItemGroup>
111+
<ItemGroup>
112+
<None Include="packages.config" />
113+
</ItemGroup>
114+
<ItemGroup>
115+
<Analyzer Include="..\..\packages\AsyncUsageAnalyzers.1.0.0-alpha003\analyzers\dotnet\AsyncUsageAnalyzers.dll" />
116+
</ItemGroup>
111117
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
112118
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
113119
Other similar extension points exist, see Microsoft.Common.targets.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="AsyncUsageAnalyzers" version="1.0.0-alpha003" targetFramework="net45" developmentDependency="true" />
4+
</packages>

src/Nancy.Authentication.Stateless/project.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"version": "2.0.0-barneyrubble",
33
"description": "A stateless authentication provider for Nancy.",
44
"authors": [ "Andreas Håkansson, Steven Robbins and contributors" ],
@@ -15,7 +15,8 @@
1515
},
1616

1717
"dependencies": {
18-
"Nancy": { "target": "project" }
18+
"AsyncUsageAnalyzers": "1.0.0-alpha003",
19+
"Nancy": { "target": "project" }
1920
},
2021

2122
"frameworks": {

0 commit comments

Comments
 (0)