Releases: rjmurillo/moq.analyzers
v0.3.0-alpha
Moq.Analyzers v0.3.0 🎄
Holidays are coming and it's time for the last release of the year! 🎉
There's a lot that has gone into this release, mostly housekeeping and bug fixes that are transparent to you. However, there are two new diagnostics included in this release.
This will be the last release until we move to v1.0.0
Analyzer Behavior Changes
- Remove false positive for Moq1200 when using parameterized lambda by @rjmurillo in #301
- Add new rule to enforce MockBehavior.Strict (Moq1410) by @rjmurillo in #302
Full List of What's Changed
- Bump Nerdbank.GitVersioning from 3.6.143 to 3.6.146 by @dependabot in #232
- Bump Microsoft.Diagnostics.Tracing.TraceEvent from 3.1.15 to 3.1.16 by @dependabot in #228
- Add IOperation to DiagnosticExtensions and clean up overloads by @MattKotsenas in #233
- Bump nbgv from 3.6.143 to 3.6.146 by @dependabot in #230
- Bump Meziantou.Analyzer from 2.0.169 to 2.0.173 by @dependabot in #231
- Create a shared Common .projitems by @MattKotsenas in #235
- Remove ECS0200 suppression and update WellKnownTypes to not trigger ECS0600 by @rjmurillo in #236
- Add BannedApiAnalyzer and ban direct use of Diagnostic.Create by @MattKotsenas in #239
- Add *.props and *.targets to XML section of .editorconfig template by @MattKotsenas in #240
- Bump Meziantou.Analyzer from 2.0.173 to 2.0.175 by @dependabot in #237
- Remove dead suppressions and dead code by @MattKotsenas in #242
- Add rule suppression docs to README and each rule by @MattKotsenas in #241
- Bump Meziantou.Analyzer from 2.0.175 to 2.0.176 by @dependabot in #243
- Disable SquiggleCop for PerfDiff by @MattKotsenas in #244
- Bump Roslynator.Analyzers from 4.12.8 to 4.12.9 by @dependabot in #246
- Bump Verify.Xunit from 27.0.1 to 27.1.0 by @dependabot in #247
- Use WellKnownTypeProvider + KnownSymbols pattern to simplify analyzers by @MattKotsenas in #245
- Bump Polyfill from 7.1.2 to 7.2.0 by @dependabot in #248
- Bump Verify.Xunit from 27.1.0 to 28.0.0 by @dependabot in #251
- Bump Meziantou.Analyzer from 2.0.176 to 2.0.177 by @dependabot in #249
- Bump Verify.Xunit from 28.0.0 to 28.1.3 by @dependabot in #253
- Bump Polyfill from 7.2.0 to 7.4.0 by @dependabot in #256
- Bump EffectiveCSharp.Analyzers from 0.1.0 to 0.2.0 by @dependabot in #250
- Bump Verify.Xunit from 28.1.3 to 28.2.0 by @dependabot in #257
- Update global.json to SDK 9 by @rjmurillo in #263
- Bump Meziantou.Analyzer from 2.0.177 to 2.0.179 by @dependabot in #262
- Bump ReportGenerator from 5.3.11 to 5.4.1 by @dependabot in #264
- Bump Verify.Xunit from 28.2.0 to 28.3.0 by @dependabot in #265
- Remove forced lf in .editorconfig by @MattKotsenas in #271
- Reduce severity of S3267: Loops should be simplified with "LINQ" expressions by @MattKotsenas in #272
- Bump GetPackFromProject to fix race in .NET 9 SDK by @MattKotsenas in #274
- Bump Polyfill from 7.4.0 to 7.5.0 by @dependabot in #270
- Move "upload binlogs" CI step earlier in pipeline and run even if failed by @MattKotsenas in #273
- Bump Verify.Xunit from 28.3.0 to 28.3.2 by @dependabot in #269
- Bump Microsoft.CodeAnalysis.BannedApiAnalyzers from 3.11.0-beta1.24454.1 to 3.11.0-beta1.24508.2 by @dependabot in #268
- Bump Meziantou.Analyzer from 2.0.179 to 2.0.181 by @dependabot in #275
- Bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0 by @dependabot in #277
- Bump Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers from 3.11.0-beta1.24454.1 to 3.11.0-beta1.24508.2 by @dependabot in #276
- Bump Microsoft.VisualStudio.Threading.Analyzers from 17.11.20 to 17.12.19 by @dependabot in #260
- Bump Verify.Xunit from 28.3.2 to 28.4.0 by @dependabot in #280
- Bump Meziantou.Analyzer from 2.0.181 to 2.0.182 by @dependabot in #279
- Bump Nerdbank.GitVersioning from 3.6.146 to 3.7.112 by @dependabot in #285
- Bump Microsoft.CodeAnalysis.BannedApiAnalyzers from 3.11.0-beta1.24508.2 to 3.11.0-beta1.24527.2 by @dependabot in #283
- Bump Polyfill from 7.5.0 to 7.7.1 by @dependabot in #287
- Bump Verify.Xunit from 28.4.0 to 28.6.0 by @dependabot in #286
- Bump nbgv from 3.6.146 to 3.7.112 by @dependabot in #284
- Align .editorconfig with dotnet new template by @MattKotsenas in #289
- Bump Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers from 3.11.0-beta1.24508.2 to 3.11.0-beta1.24527.2 by @dependabot in #282
- Add reference to Microsoft.CodeAnalysis.AnalyzerUtilities and delete forked methods by @MattKotsenas in #290
- Bump Roslynator.Analyzers from 4.12.9 to 4.12.10 by @dependabot in #291
- Bump Polyfill from 7.7.1 to 7.8.0 by @dependabot in #293
- Bump xunit.runner.visualstudio from 2.8.2 to 3.0.0 by @dependabot in #294
- Bump Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers from 3.11.0-beta1.24508.2 to 3.11.0-beta1.24527.2 by @dependabot in #292
- Bump Verify.Xunit from 28.6.0 to 28.6.1 by @dependabot in #297
- Bump SonarAnalyzer.CSharp from 9.32.0.97167 to 10.4.0.108396 by @dependabot in #288
- Refactor SetExplicitMockBehaviorAnalyzer to use KnownSymbols and add CodeFix by @MattKotsenas in #296
- Bump ReportGenerator from 5.4.1 to 5.4.2 by @dependabot in #298
- Bump Verify.Xunit from 28.6.1 to 28.7.0 by @dependabot in #300
- Bump Meziantou.Analyzer from 2.0.182 to 2.0.183 by @dependabot in #299
- Remove false positive for Moq1200 when using parameterized lambda by @rjmurillo in #301
- Add new rule to enforce MockBehavior.Strict (Moq1410) by @rjmurillo in #302
Full Changelog: v0.2.0...v0.3.0-alpha
v0.2.0
Changes
- Add rule to explicitly pick MockBehavior by @MattKotsenas in #226
- Fix false detection in Moq1201 in Moq 4.16.0 by @rjmurillo in #224
- Fix false detection in Moq1200 using async tasks by @rjmurillo in #221
Housekeeping
- Add CODEOWNERS by @MattKotsenas in #193
- Bump Verify.Xunit from 26.2.0 to 26.4.0 by @dependabot in #197
- Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1 by @dependabot in #196
- Bump DotNet.ReproducibleBuilds from 1.2.4 to 1.2.25 by @dependabot in #201
- Bump DotNet.ReproducibleBuilds.Isolated from 1.2.4 to 1.2.25 by @dependabot in #200
- Bump Verify.Xunit from 26.4.0 to 26.4.4 by @dependabot in #199
- Bump ReportGenerator from 5.3.8 to 5.3.9 by @dependabot in #195
- Update SDK to get newer version of Source Link by @MattKotsenas in #202
- Bump Verify.Xunit from 26.4.4 to 26.5.0 by @dependabot in #205
- Bump Roslynator.Analyzers from 4.12.4 to 4.12.5 by @dependabot in #204
- Bump Verify.Xunit from 26.5.0 to 26.6.0 by @dependabot in #207
- Bump Meziantou.Analyzer from 2.0.163 to 2.0.168 by @dependabot in #206
- Bump Roslynator.Analyzers from 4.12.5 to 4.12.6 by @dependabot in #209
- Bump ReportGenerator from 5.3.9 to 5.3.10 by @dependabot in #212
- Bump Roslynator.Analyzers from 4.12.6 to 4.12.7 by @dependabot in #213
- Bump Meziantou.Analyzer from 2.0.168 to 2.0.169 by @dependabot in #211
- Bump xunit from 2.9.0 to 2.9.2 by @dependabot in #210
- Use dotnet template for .gitattributes by @MattKotsenas in #215
Full Changelog: v0.1.2...v0.2.0
v0.1.2
What's Changed
Lots of housekeeping and a couple of fixes and enhancements.
Enhancements and Bug fixes
- Add Mock.Of and MockRepository support to ConstructorArgumentsShouldMatchAnalyzer by @rjmurillo in #140
- Moq1100 incorrectly firing on nullable parameters by @marcovr @rjmurillo in #187
Other Changes
- Update version.json to 0.2.0 by @rjmurillo in #142
- Remove CSharpGuidelinesAnalyzer and associated editorconfig values by @rjmurillo in #145
- Bump ReportGenerator from 5.3.6 to 5.3.7 by @dependabot in #138
- Bump Newtonsoft.Json from 13.0.1 to 13.0.3 by @dependabot in #134
- Bump Microsoft.Extensions.Logging from 6.0.0-preview.5.21301.5 to 8.0.0 by @dependabot in #132
- Bump Microsoft.Diagnostics.Tracing.TraceEvent from 3.0.2 to 3.1.12 by @dependabot in #131
- Bump Meziantou.Analyzer from 2.0.159 to 2.0.160 by @dependabot in #151
- Bump xunit from 2.8.1 to 2.9.0 by @dependabot in #148
- Bump xunit.runner.visualstudio from 2.8.1 to 2.8.2 by @dependabot in #149
- Bump Verify.Xunit from 25.0.4 to 25.3.1 by @dependabot in #152
- Bump SonarAnalyzer.CSharp from 9.28.0.94264 to 9.29.0.95321 by @dependabot in #154
- Bump Verify.Xunit from 25.3.1 to 25.3.2 by @dependabot in #158
- Bump Microsoft.Diagnostics.Tracing.TraceEvent from 3.1.12 to 3.1.13 by @dependabot in #157
- Bump Meziantou.Analyzer from 2.0.160 to 2.0.161 by @dependabot in #156
- Bump ReportGenerator from 5.3.7 to 5.3.8 by @dependabot in #155
- Bump Verify.Xunit from 25.3.2 to 26.1.5 by @dependabot in #164
- Bump Meziantou.Analyzer from 2.0.161 to 2.0.162 by @dependabot in #163
- Bump SonarAnalyzer.CSharp from 9.29.0.95321 to 9.30.0.95878 by @dependabot in #160
- Enable TreatWarningsAsErrors by @MattKotsenas in #165
- Disable rollForward for SDK in global.json by @MattKotsenas in #170
- Add SquiggleCop to baseline analyzer settings by @MattKotsenas in #166
- Bump Verify.Xunit from 26.1.5 to 26.1.6 by @dependabot in #168
- Bump Meziantou.Xunit.ParallelTestFramework from 2.2.0 to 2.3.0 by @dependabot in #169
- Bump Meziantou.Analyzer from 2.0.162 to 2.0.163 by @dependabot in #167
- Update SquiggleCop and remove ErrorLog property by @MattKotsenas in #174
- Bump SonarAnalyzer.CSharp from 9.30.0.95878 to 9.31.0.96804 by @dependabot in #175
- Bump Nerdbank.GitVersioning from 3.6.139 to 3.6.141 by @dependabot in #178
- Bump Verify.Xunit from 26.1.6 to 26.2.0 by @dependabot in #180
- Bump Microsoft.VisualStudio.Threading.Analyzers from 17.10.48 to 17.11.20 by @dependabot in #181
- Bump nbgv from 3.6.139 to 3.6.141 by @dependabot in #179
- Bump SquiggleCop.Tasks from 1.0.13 to 1.0.26 by @dependabot in #185
- Bump squigglecop.tool from 1.0.13 to 1.0.26 by @dependabot in #186
- Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.0 by @dependabot in #184
- Bump SonarAnalyzer.CSharp from 9.31.0.96804 to 9.32.0.97167 by @dependabot in #183
- Add Effective C# analyzers and update SquiggleCop baselines by @rjmurillo in #182
- Bump Nerdbank.GitVersioning from 3.6.141 to 3.6.143 by @dependabot in #189
- Bump Microsoft.Diagnostics.Tracing.TraceEvent from 3.1.13 to 3.1.15 by @dependabot in #190
- Bump nbgv from 3.6.141 to 3.6.143 by @dependabot in #188
- Bump dependabot/fetch-metadata from 1.1.1 to 2.2.0 by @dependabot in #192
Full Changelog: v0.1.1...v0.1.2
v0.1.1
Lots of "housekeeping" this release, and a few bug fixes. We also now have rule documentation! Special thanks to @MattKotsenas for his contributions to make working on the analyzers easier and improving our confidence and productivity.
Full Changelog: v0.1.0...v0.1.1
What's Changed
Ownership of the Moq.Analyzers
and Moq.Autocomplete
has been transferred from @Litee to @rjmurillo.
Bug fixes
- Moq1002: Update constructor checks by @rjmurillo in #115. This resolves #55 by @MattKotsenas
- Refactor Moq1300 to use IOperation-based analysis by @MattKotsenas in #125
Changes to rules
There should be no behavioral differences with these changes to the rule code. If you find any, please submit a new issue.
- Clean up README and add docs for each analyzer rule by @MattKotsenas in #77
- Add analyzer release tracking by @MattKotsenas in #84
- Add cancellation tokens to methods that have a parameter but we don't pass by @rjmurillo in #52
- Enable ConcurrentExecution and disable generated code analysis by @MattKotsenas in #70
- Update code to remove warnings from backlog by @rjmurillo in #73
- Remove RegEx from analyzers by @MattKotsenas in #81
- Remove period from analyzer messages and inline in the analyzer classes by @MattKotsenas in #86
Updates to test and infrastructure
- Refactor tests to simplify and inline test cases by @MattKotsenas in #57
- Update analysis mode and warning level to preview and 9999 by @rjmurillo in #59
- Extract code analysis to its own build slice and update analyzers to latest versions by @MattKotsenas in #60
- Move test packages to build slice, update to latest version, and enable parallel tests by @MattKotsenas in #61
- Replace our custom test harness with
Microsoft.CodeAnalysis
testing harness by @MattKotsenas in #65 - Clean up of using statements by @rjmurillo in #66
- Rename
master
tomain
by @MattKotsenas in #69 - Cache reference assemblies between tests to improve performance by @MattKotsenas in #71
- Convert from var to explicit type by @rjmurillo in #74
- Refactor unit tests: data driven tests and leverage
Microsoft.CodeAnalysis.Testing
patterns by @MattKotsenas in #76 - Add Code coverage report by @MattKotsenas in #79
- Fix
dotnet test
when not generating code coverage reports by @MattKotsenas in #80 - Refactor test cases to matrix on
Moq
version by @MattKotsenas in #82 - Fix SA0001: XML comment analysis is disabled due to project configuration by @MattKotsenas in #87
- Fix trivial warnings by @MattKotsenas in #88
- Update README.md to add leading and trailing pipes in table by @rjmurillo in #94
- Create dependabot.yml by @rjmurillo in #93
- Update main.yml to add codacy test coverage by @rjmurillo in #92
- Add more analyzers and bump
Meziantou.Analzer
to latest version by @rjmurillo in #89 - Bump
Verify.Xunit
from 25.0.1 to 25.0.3 by @dependabot in #100 - Remove
Microsoft.CodeAnalysis.CSharp.Analyzer.Testing
by @MattKotsenas in #102 - Dependabot ignore packages that impact customer compatibility by @MattKotsenas in #101
- Bump
Microsoft.CodeAnalysis.CSharp.CodeFix.Testing
from 1.1.2-beta1.24273.1 to 1.1.2-beta1.24314.1 by @dependabot in #103 - Bump
Nerdbank.GitVersioning
from 3.6.133 to 3.6.139 by @dependabot in #99 - Bump
Meziantou.Analyzer
from 2.0.155 to 2.0.158 by @dependabot in #96 - Enable warnings as errors by @rjmurillo in #91
- Update main.yml to add merge_group by @rjmurillo in #105
- Add auto labelers for Issues and PRs by @rjmurillo in #106
- Move code under src/ and tests/ directories by @MattKotsenas in #107
- Add
Moq.Analyzers.Benchmarks
with a single sample benchmark by @MattKotsenas in #109 - Update labeler.yml path for source by @rjmurillo in #108
- Bump actions/labeler from 4 to 5 by @dependabot in #112
- Update labeler.yml for v5 by @rjmurillo in #114
- Bump actions/github-script from 6 to 7 by @dependabot in #111
- Refactor code to remove analyzer warnings by @rjmurillo in #113
- Create pr-labeler-current-milestone.yml by @rjmurillo in #116
- Generate .gitignore from a tool by @rjmurillo in #117
- Bump
Verify.Xunit
from 25.0.3 to 25.0.4 by @dependabot in #121 - Update
ConstructorArgumentsShouldMatchAnalyzer
test cases to make sure all positive and negative cases are covered by @rjmurillo in #124 - Add extension method to create Diagnostic by @MattKotsenas in #126
- Add composite analyzer to test all analyzers by @rjmurillo in #128
- Add BDN perf comparison tool from roslyn analyzers by @rjmurillo in #119
- Bump
Meziantou.Analyzer
from 2.0.158 to 2.0.159 by @dependabot in #135 - Update to latest version of
DotNet.ReproducibleBuilds
by @MattKotsenas in #137 - Bump
SonarAnalyzer.CSharp
from 9.27.0.93347 to 9.28.0.94264 by @dependabot in #136
New Contributors
- @dependabot made their first contribution in #100
v0.1.0
What's Changed
- Remove the Visual Studio Extension VSIX by @rjmurillo in #16
- Update TargetFramework to NET Standard 2.0 by @rjmurillo in #17
- Update constructor analyzer (Moq1002) to validate parameters of abstract classes by @rjmurillo in #20, fixes #1
Non-functional Changes
- Create codeql.yml to analyze C# code by @rjmurillo in #9
- Create a basic GitHub Actions pipeline by @MattKotsenas in #18
- Fix GitHub actions branch 'main' -> 'master' by @MattKotsenas in #21
- Use .NET 8 SDK's artifacts output and enable test reports in CI by @MattKotsenas in #23
- Update Moq.Analyzers.Test.csproj to NET 8 by @rjmurillo in #24
- Migrate from ApprovalTests to Verify by @MattKotsenas in #25
- Update main.yml to upload .received on failure by @rjmurillo in #34
- Add .nupkg baseline with Verify by @MattKotsenas in #30
- Add nbgv tool to automate versioning by @MattKotsenas in #35
- Add .gitattributes file and normalize line endings by @rjmurillo in #33
- Add .editorconfig and enable code analysis by @MattKotsenas in #37
- Convert to Central Package Management with transitive pinning enabled by @MattKotsenas in #39
- Set package README, license expression, and development dependency by @MattKotsenas in #41
- Move usings to top of file and using file-scoped namespaces by @MattKotsenas in #40
- Follow reproducible builds best practices for package by @MattKotsenas in #44
- Remove package dependencies and don't publish analyzer as a lib by @MattKotsenas in #49
- Update Moq.Analyzers.csproj NuGet package metadata by @rjmurillo in #50
New Contributors
- @MattKotsenas made their first contribution in #18
Full Changelog: v0.0.9...v0.1.0
0.0.9
What's Changed
- Added async result check as rule 1201 by @rjmurillo in #5
- Additional updates for upcoming release by @rjmurillo in #6
New Contributors
- @rjmurillo made their first contribution in #5
Full Changelog: v0.0.8...v0.0.9