Skip to content

refactor: consolidate mock invocation detection into shared helper

7ce02ad
Select commit
Loading
Failed to load commit list.
Merged

feat: add Moq1003 analyzer for internal types requiring InternalsVisibleTo #958

refactor: consolidate mock invocation detection into shared helper
7ce02ad
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Mar 1, 2026 in 0s

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

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

Issues
======
+ Solved 1
- Added 2
           

Complexity increasing per file
==============================
- src/Analyzers/InternalTypeMustHaveInternalsVisibleToAnalyzer.cs  32
- tests/Moq.Analyzers.Test/InternalTypeMustHaveInternalsVisibleToAnalyzerTests.cs  16
- src/Common/MockDetectionHelpers.cs  5
         

Complexity decreasing per file
==============================
+ src/Analyzers/NoMockOfLoggerAnalyzer.cs  -5
         

Clones added
============
- src/Analyzers/NoMockOfLoggerAnalyzer.cs  1
- src/Analyzers/InternalTypeMustHaveInternalsVisibleToAnalyzer.cs  5
         

See the complete overview on Codacy

Annotations

Check warning on line 1 in src/Analyzers/InternalTypeMustHaveInternalsVisibleToAnalyzer.cs

See this annotation in the file changed.

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

src/Analyzers/InternalTypeMustHaveInternalsVisibleToAnalyzer.cs#L1

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

Check warning on line 62 in src/Analyzers/InternalTypeMustHaveInternalsVisibleToAnalyzer.cs

See this annotation in the file changed.

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

src/Analyzers/InternalTypeMustHaveInternalsVisibleToAnalyzer.cs#L62

Method InternalTypeMustHaveInternalsVisibleToAnalyzer::Analyze has a cyclomatic complexity of 10 (limit is 8)