Skip to content

Update src/CodeFixes/BehaviorType.cs to remove BOM

Codacy Production / Codacy Static Code Analysis required action Dec 24, 2024 in 0s

11 new issues (0 max.) of at least medium severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 3
- Added 11
           

Coverage increased per file
===========================
+ src/Common/WellKnown/MoqKnownSymbols.cs  6.25
+ src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs  4.622
         

Complexity increasing per file
==============================
- tests/Moq.Analyzers.Test/SetStrictMockBehaviorCodeFixTests.cs  1
- src/CodeFixes/SetStrictMockBehaviorFixer.cs  4
- src/Analyzers/SetStrictMockBehaviorAnalyzer.cs  15
- src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs  13
- src/Analyzers/MockBehaviorDiagnosticAnalyzerBase.cs  6
         

Complexity decreasing per file
==============================
+ src/CodeFixes/SetExplicitMockBehaviorFixer.cs  -9
         

Clones added
============
- src/CodeFixes/SetStrictMockBehaviorFixer.cs  1
- src/Analyzers/SetStrictMockBehaviorAnalyzer.cs  5
- src/CodeFixes/SetExplicitMockBehaviorFixer.cs  1
- src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs  2
         

See the complete overview on Codacy

Annotations

Check failure on line 1 in src/Analyzers/MockBehaviorDiagnosticAnalyzerBase.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Analyzers/MockBehaviorDiagnosticAnalyzerBase.cs#L1

Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.

Check failure on line 29 in src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Analyzers/SetExplicitMockBehaviorAnalyzer.cs#L29

The Cyclomatic Complexity of this method is 12 which is greater than 10 authorized.

Check failure on line 1 in src/Analyzers/SetStrictMockBehaviorAnalyzer.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Analyzers/SetStrictMockBehaviorAnalyzer.cs#L1

Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.

Check failure on line 29 in src/Analyzers/SetStrictMockBehaviorAnalyzer.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Analyzers/SetStrictMockBehaviorAnalyzer.cs#L29

The Cyclomatic Complexity of this method is 15 which is greater than 10 authorized.

Check failure on line 1 in src/CodeFixes/BehaviorType.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/CodeFixes/BehaviorType.cs#L1

Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.

Check failure on line 1 in src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs#L1

Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.

Check warning on line 7 in src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs#L7

Types should not have members with visibility set higher than the type's visibility

Check failure on line 29 in src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs#L29

The Cyclomatic Complexity of this method is 13 which is greater than 10 authorized.

Check failure on line 37 in src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/CodeFixes/SetExplicitMockBehaviorCodeAction.cs#L37

Reduce the number of conditional operators (4) used in the expression (maximum allowed 3).

Check failure on line 1 in src/CodeFixes/SetStrictMockBehaviorFixer.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/CodeFixes/SetStrictMockBehaviorFixer.cs#L1

Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.

Check failure on line 1 in tests/Moq.Analyzers.Test/SetStrictMockBehaviorCodeFixTests.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/Moq.Analyzers.Test/SetStrictMockBehaviorCodeFixTests.cs#L1

Provide an 'AssemblyVersion' attribute for assembly 'srcassembly.dll'.