Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
run: |
dotnet tool install --global dotnet-sonarscanner
dotnet tool install --global dotnet-coverage
dotnet tool install --global csharpier
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH


- name: Check code formatting
run: dotnet csharpier --check .

- name: Begin SonarCloud analysis
run: dotnet sonarscanner begin /k:"jonathanalgar_CustomCode-Analyzer" /o:"jonathanalgar" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml

Expand Down
12 changes: 12 additions & 0 deletions config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "[0.30.6]",
"commands": [
"dotnet-csharpier"
]
}
}
}
2 changes: 1 addition & 1 deletion src/CustomCode-Analyzer/Helpers/TypeMappingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal enum OSDataType
PhoneNumber,
Email,
BinaryData,
Currency
Currency,
}

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion tests/CustomCode-Analyzer.Tests/AnalyzerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,8 @@ public struct TestStruct
[TestMethod]
public async Task UnsupportedTypeMappingRule_InGlobalScope_InferredFromDotNetType_NoDiagnostic()
{
var source = @"
var source =
@"
[OSStructure]
public struct TestStruct
{
Expand Down