Skip to content

Commit

Permalink
refactor: fix SA1137 (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee authored Aug 19, 2022
1 parent 368f3c9 commit aa4d079
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,6 @@ dotnet_diagnostic.SA1118.severity = suggestion
# Using directive for namespace '...' should be qualified
dotnet_diagnostic.SA1135.severity = suggestion

# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1137.md
# Elements should have the same indentation
dotnet_diagnostic.SA1137.severity = suggestion

# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1142.md
# Refer to tuple fields by name
dotnet_diagnostic.SA1142.severity = suggestion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,8 @@ private TestOutput DetectComponentsHappyPath(
ContainersDetailsMap = new Dictionary<int, ContainerDetails>
{
{
this.sampleContainerDetails.Id, this.sampleContainerDetails },
this.sampleContainerDetails.Id, this.sampleContainerDetails
},
},
ComponentRecorders = componentRecorders.Select(componentRecorder => (this.componentDetector2Mock.Object, componentRecorder)),
};
Expand Down Expand Up @@ -669,7 +670,8 @@ private ScanResult SetupRecorderBasedScanning(
ContainersDetailsMap = new Dictionary<int, ContainerDetails>
{
{
this.sampleContainerDetails.Id, this.sampleContainerDetails },
this.sampleContainerDetails.Id, this.sampleContainerDetails
},
},
ComponentRecorders = componentRecorders.Select(componentRecorder => (this.componentDetector2Mock.Object, componentRecorder)),
};
Expand Down

0 comments on commit aa4d079

Please sign in to comment.