Refactor SetExplicitMockBehaviorAnalyzer to use KnownSymbols and add CodeFix #296
15 new issues (0 max.) of at least medium severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 15
Complexity increasing per file
==============================
- src/CodeFixes/SyntaxGeneratorExtensions.cs 6
- src/CodeFixes/SetExplicitMockBehaviorFixer.cs 13
- src/Common/IOperationExtensions.cs 2
- src/CodeFixes/CodeFixContextExtensions.cs 1
- src/Common/DiagnosticEditProperties.cs 5
- src/CodeFixes/CallbackSignatureShouldMatchMockedMethodFixer.cs 8
- src/Common/IMethodSymbolExtensions.cs 7
- tests/Moq.Analyzers.Test/SetExplicitMockBehaviorCodeFixTests.cs 1
- src/Common/ISymbolExtensions.cs 3
- src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs 4
Clones added
============
- src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs 2
See the complete overview on Codacy
Annotations
Check failure on line 94 in src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs
codacy-production / Codacy Static Code Analysis
src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs#L94
The Cyclomatic Complexity of this method is 12 which is greater than 10 authorized.
Check failure on line 1 in src/CodeFixes/CodeFixContextExtensions.cs
codacy-production / Codacy Static Code Analysis
src/CodeFixes/CodeFixContextExtensions.cs#L1
Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.
Check warning on line 6 in src/CodeFixes/CodeFixContextExtensions.cs
codacy-production / Codacy Static Code Analysis
src/CodeFixes/CodeFixContextExtensions.cs#L6
Types should not have members with visibility set higher than the type's visibility
Check failure on line 1 in src/CodeFixes/SetExplicitMockBehaviorFixer.cs
codacy-production / Codacy Static Code Analysis
src/CodeFixes/SetExplicitMockBehaviorFixer.cs#L1
Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.
Check failure on line 70 in src/CodeFixes/SetExplicitMockBehaviorFixer.cs
codacy-production / Codacy Static Code Analysis
src/CodeFixes/SetExplicitMockBehaviorFixer.cs#L70
The Cyclomatic Complexity of this method is 13 which is greater than 10 authorized.
Check failure on line 78 in src/CodeFixes/SetExplicitMockBehaviorFixer.cs
codacy-production / Codacy Static Code Analysis
src/CodeFixes/SetExplicitMockBehaviorFixer.cs#L78
Reduce the number of conditional operators (4) used in the expression (maximum allowed 3).
Check failure on line 1 in src/CodeFixes/SyntaxGeneratorExtensions.cs
codacy-production / Codacy Static Code Analysis
src/CodeFixes/SyntaxGeneratorExtensions.cs#L1
Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.
Check warning on line 5 in src/CodeFixes/SyntaxGeneratorExtensions.cs
codacy-production / Codacy Static Code Analysis
src/CodeFixes/SyntaxGeneratorExtensions.cs#L5
Types should not have members with visibility set higher than the type's visibility
Check failure on line 1 in src/Common/DiagnosticEditProperties.cs
codacy-production / Codacy Static Code Analysis
src/Common/DiagnosticEditProperties.cs#L1
Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.
Check warning on line 6 in src/Common/DiagnosticEditProperties.cs
codacy-production / Codacy Static Code Analysis
src/Common/DiagnosticEditProperties.cs#L6
Types should not have members with visibility set higher than the type's visibility
Check failure on line 1 in src/Common/IMethodSymbolExtensions.cs
codacy-production / Codacy Static Code Analysis
src/Common/IMethodSymbolExtensions.cs#L1
Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.
Check warning on line 5 in src/Common/IMethodSymbolExtensions.cs
codacy-production / Codacy Static Code Analysis
src/Common/IMethodSymbolExtensions.cs#L5
Types should not have members with visibility set higher than the type's visibility
Check failure on line 1 in src/Common/IOperationExtensions.cs
codacy-production / Codacy Static Code Analysis
src/Common/IOperationExtensions.cs#L1
Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.
Check warning on line 5 in src/Common/IOperationExtensions.cs
codacy-production / Codacy Static Code Analysis
src/Common/IOperationExtensions.cs#L5
Types should not have members with visibility set higher than the type's visibility
Check failure on line 1 in tests/Moq.Analyzers.Test/SetExplicitMockBehaviorCodeFixTests.cs
codacy-production / Codacy Static Code Analysis
tests/Moq.Analyzers.Test/SetExplicitMockBehaviorCodeFixTests.cs#L1
Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.