-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from bdach/inspection-severity-on-issue
Read issue severity from issue element rather than issue type element if present
- Loading branch information
Showing
5 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace InspectCodeTest | ||
{ | ||
public static class Conversions | ||
{ | ||
public static double MetresToInches(double metres) | ||
{ | ||
var conversionFactor = 0.0254; | ||
return metres * conversionFactor; | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/NVika.Tests/Data/InspectCodeReport_IssuesWithSeverity.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Generated by JetBrains Inspect Code 2021.2.2 --> | ||
<Report ToolsVersion="212.0.20211008.81907"> | ||
<Information> | ||
<Solution>InspectCodeTest.sln</Solution> | ||
<InspectionScope> | ||
<Element>Solution</Element> | ||
</InspectionScope> | ||
</Information> | ||
<IssueTypes> | ||
<IssueType Id="ConvertToConstant.Local" Category="Common Practices and Code Improvements" CategoryId="BestPractice" SubCategory="Convert local variable or field to constant" Description="Convert local variable or field to constant: Private accessibility" Severity="WARNING" /> | ||
<IssueType Id="SuggestVarOrType_BuiltInTypes" Category="Syntax Style" CategoryId="CodeStyleIssues" SubCategory="Use preferred 'var' style" Description="Use preferred 'var' style: For built-in types" Severity="SUGGESTION" WikiUrl="https://www.jetbrains.com/resharperplatform/help?Keyword=SuggestVarOrType_BuiltInTypes" /> | ||
</IssueTypes> | ||
<Issues> | ||
<Project Name="InspectCodeTest"> | ||
<Issue TypeId="SuggestVarOrType_BuiltInTypes" Severity="WARNING" File="InspectCodeTest\Conversions.cs" Offset="151-154" Line="7" Message="Use explicit type (built-in types)" /> | ||
<Issue TypeId="ConvertToConstant.Local" File="InspectCodeTest\Conversions.cs" Offset="155-171" Line="7" Message="Convert to constant" /> | ||
</Project> | ||
</Issues> | ||
</Report> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters