Moq1100 incorrectly firing on nullable parameters #187
2 new issues (0 max.) of at least medium severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 1
- Added 3
Complexity decreasing per file
==============================
+ src/Moq.Analyzers/CallbackSignatureShouldMatchMockedMethodAnalyzer.cs -2
See the complete overview on Codacy
Annotations
Check failure on line 109 in src/Moq.Analyzers/CallbackSignatureShouldMatchMockedMethodAnalyzer.cs
codacy-production / Codacy Static Code Analysis
src/Moq.Analyzers/CallbackSignatureShouldMatchMockedMethodAnalyzer.cs#L109
The Cyclomatic Complexity of this method is 11 which is greater than 10 authorized.
Check failure on line 127 in src/Moq.Analyzers/CallbackSignatureShouldMatchMockedMethodAnalyzer.cs
codacy-production / Codacy Static Code Analysis
src/Moq.Analyzers/CallbackSignatureShouldMatchMockedMethodAnalyzer.cs#L127
Add a 'default' clause to this 'switch' statement.
Check notice on line 127 in src/Moq.Analyzers/CallbackSignatureShouldMatchMockedMethodAnalyzer.cs
codacy-production / Codacy Static Code Analysis
src/Moq.Analyzers/CallbackSignatureShouldMatchMockedMethodAnalyzer.cs#L127
Replace this 'switch' statement with 'if' statements to increase readability.