Skip to content

Merge branch 'main' into codex/refactor-loop-to-replace-where-predicate

b197af1
Select commit
Loading
Failed to load commit list.
Merged

Optimize DefaultIfNotSingle loop #430

Merge branch 'main' into codex/refactor-loop-to-replace-where-predicate
b197af1
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis succeeded Jun 9, 2025 in 0s

Your pull request is up to standards!

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

Complexity increasing per file
==============================
- src/Common/EnumerableExtensions.cs  1
- tests/Moq.Analyzers.Test/Common/EnumerableExtensionsTests.cs  1
- tests/Moq.Analyzers.Benchmarks/DefaultIfNotSingleImmutableArrayBenchmarks.cs  1
- tests/Moq.Analyzers.Benchmarks/DefaultIfNotSingleBaseline.cs  3
- tests/Moq.Analyzers.Benchmarks/DefaultIfNotSingleEnumerableNoPredicateBenchmarks.cs  1
- tests/Moq.Analyzers.Benchmarks/DefaultIfNotSingleOptimized.cs  4
- tests/Moq.Analyzers.Benchmarks/DefaultIfNotSingleEnumerableBenchmarks.cs  1
- tests/Moq.Analyzers.Test/Common/DiagnosticEditPropertiesTests.cs  1
         

Clones added
============
- tests/Moq.Analyzers.Benchmarks/DefaultIfNotSingleBaseline.cs  1
- tests/Moq.Analyzers.Benchmarks/DefaultIfNotSingleOptimized.cs  1
         

See the complete overview on Codacy