Skip to content

Commit 4b46fbb

Browse files
committed
update cc dogfooding
1 parent 76218cd commit 4b46fbb

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

codecracker.ruleset

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RuleSet Name="CodeCracker Rules" Description="Our own rules applied to our own code. :)" ToolsVersion="14.0">
33
<Rules AnalyzerId="CodeCracker.CSharp" RuleNamespace="CodeCracker.CSharp">
4-
<Rule Id="CC0063" Action="None" />
54
</Rules>
6-
</RuleSet>
5+
</RuleSet>

src/CSharp/CodeCracker/CodeCracker.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
<Folder Include="Security\" />
187187
</ItemGroup>
188188
<ItemGroup>
189-
<Analyzer Include="..\..\..\packages\codecracker.CSharp.1.0.0-alpha3-0270\tools\analyzers\CodeCracker.CSharp.dll" />
189+
<Analyzer Include="..\..\..\packages\codecracker.CSharp.1.0.0-alpha3-0281\tools\analyzers\CodeCracker.CSharp.dll" />
190190
</ItemGroup>
191191
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
192192
<PropertyGroup>

src/CSharp/CodeCracker/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="codecracker.CSharp" version="1.0.0-alpha3-0270" targetFramework="portable-net45+win" />
3+
<package id="codecracker.CSharp" version="1.0.0-alpha3-0281" targetFramework="portable-net45+win" />
44
<package id="Microsoft.CodeAnalysis.Common" version="1.0.0-beta1-20141031-01" targetFramework="portable-net45+win" />
55
<package id="Microsoft.CodeAnalysis.CSharp" version="1.0.0-beta1-20141031-01" targetFramework="portable-net45+win" />
66
<package id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="1.0.0-beta1-20141031-01" targetFramework="portable-net45+win" />

test/CSharp/CodeCracker.Test/CodeCracker.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
<Folder Include="Security\" />
188188
</ItemGroup>
189189
<ItemGroup>
190-
<Analyzer Include="..\..\..\packages\codecracker.CSharp.1.0.0-alpha3-0270\tools\analyzers\CodeCracker.CSharp.dll" />
190+
<Analyzer Include="..\..\..\packages\codecracker.CSharp.1.0.0-alpha3-0281\tools\analyzers\CodeCracker.CSharp.dll" />
191191
</ItemGroup>
192192
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
193193
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

test/CSharp/CodeCracker.Test/Usage/IPAddressAnalyzerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public Person()
2525
}}
2626
}}";
2727

28+
#pragma warning disable CC0064
2829
[Fact]
2930
public async Task IfParseIdentifierFoundAndIPAddressTextIsIncorrectCreatesDiagnostic()
3031
{
@@ -38,6 +39,7 @@ public async Task IfAbbreviatedParseIdentifierFoundAndIPAddressTextIsIncorrectCr
3839
var test = string.Format(TestCode, @"IPAddress.Parse(""foo"")");
3940
await VerifyCSharpDiagnosticAsync(test, CreateDiagnosticResult(10, 29, () => IPAddress.Parse("foo")));
4041
}
42+
#pragma warning restore CC0064
4143

4244
[Fact]
4345
public async Task IfParseIdentifierFoundAndIPAddressTextIsCorrectDoesNotCreatesDiagnostic()

test/CSharp/CodeCracker.Test/Usage/UriAnalyzerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public Person()
2323
}}
2424
}}";
2525

26+
#pragma warning disable CC0063
2627
[Fact]
2728
public async Task IfAbbreviatedUriConstructorFoundAndUriIsIncorrectCreatesDiagnostic()
2829
{
@@ -43,6 +44,7 @@ public async Task IfUriConstructorWithUriKindFoundAndUriIsIncorrectCreatesDiagno
4344
var test = string.Format(TestCode, @"var uri = new Uri(""http://wrong"", UriKind.Relative)");
4445
await VerifyCSharpDiagnosticAsync(test, CreateDiagnosticResult(9, 31, () => new Uri("http://wrong", UriKind.Relative)));
4546
}
47+
#pragma warning restore CC0063
4648

4749
[Fact]
4850
public async Task IfAbbreviatedUriConstructorWithUriKindFoundAndUriIsCorrectDoNotCreatesDiagnostic()

test/CSharp/CodeCracker.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="codecracker.CSharp" version="1.0.0-alpha3-0270" targetFramework="net45" />
3+
<package id="codecracker.CSharp" version="1.0.0-alpha3-0281" targetFramework="net45" />
44
<package id="coveralls.io" version="1.1.73-beta" targetFramework="net45" />
55
<package id="FluentAssertions" version="3.2.1" targetFramework="net45" />
66
<package id="Microsoft.CodeAnalysis.Common" version="1.0.0-beta1-20141031-01" targetFramework="net45" />

0 commit comments

Comments
 (0)