Analyzers

C# code analyzers

MIT License

Stars
22

Bot releases are hidden (Show)

Analyzers - 3.1.1 Latest Release

Published by menees 6 months ago

Analyzers - 3.1.0

Published by menees 7 months ago

  • Added rule MEN017: Remove Unused Private Setter. A private set accessor is not needed when an auto property is only assigned in the constructor. This rule was inspired by C# Essentials' Use Getter-Only Auto-Property, which was abandoned in 2015. All the rest of that library's rules are now implemented in Visual Studio or by .NET, but I missed this one enough to re-implement it.
Analyzers - 3.0.13

Published by menees 7 months ago

Analyzers - 3.0.11

Published by menees over 1 year ago

  • Added MEN016: "Avoid Top-Level Statements" rule. (commit)
Analyzers - 3.0.10

Published by menees about 2 years ago

  • Support long URLs in <see href="..."> and <seealso href="..."> XML comment tags. (#9) (5a75373fcc150b4957d7219986ec04b5f75a6c96)
Analyzers - 3.0.9

Published by menees about 2 years ago

Analyzers - 3.0.8

Published by menees over 2 years ago

Analyzers - 3.0.7

Published by menees over 2 years ago

Don't use this release. It has an ArgumentNullException bug.

  • For #4 made MEN002 allow long URI lines if the comment is like /// or /** **/.
  • For #6 added support for AnalyzeFileNameExclusions section in Menees.Analyzers.Settings.xml to support custom code-gen file name patterns.
  • Switched to implicit usings.
  • Added base Analyzer class to make Settings available to all.
  • Upgraded test packages.
Analyzers - 3.0.6

Published by menees over 2 years ago

  • Added MEN002A rule to support #3 for long line checking with a notify info length that's less than the max warning length.
Analyzers - 3.0.5

Published by menees over 2 years ago

  • Made MEN002 allow long URI lines by default. The AllowLongUriLines setting can be configured to false to revert to the previous behavior.
Analyzers - 3.0.4

Published by menees about 3 years ago

  • Made MEN010 allow magic numbers in C#8 range and index expressions
Analyzers - 3.0.3

Published by menees over 3 years ago

  • Added "MEN015 Use Preferred Terms" rule. This is similar to the old FxCop CA1726 rule except this rule only checks single terms (not double terms). So it uses a slightly different set of default preferred terms (omitting double terms like LogOn), and it includes Id as a preferred term over ID (per FxCop's CA1709 rule).
Analyzers - 3.0.2

Published by menees over 3 years ago

  • Fixed NullReferenceException in MEN014 rule if ContainsKey was used outside a block (e.g., with arrow syntax).
Analyzers - 3.0.1

Published by menees over 3 years ago

  • Added MEN014 rule to prefer TryGetValue instead of ContainsKey and this[key].
Analyzers - 3.0.0

Published by menees over 3 years ago

  • Updated to latest Roslyn compiler packages to get RecordDeclaration support for a few rules.
  • Changed target to netstandard2.0 (from netstandard1.3).
Analyzers - 2.0.6

Published by menees almost 4 years ago

GitHub Releases

  • Fixed an ArgumentNullException in MEN010 magic number rule (#1).
Analyzers - 2.0.5

Published by menees almost 4 years ago

GitHub Releases

  • Changed MEN008 file name rule to use the location of the first type in the file and to ignore *.cshtml.cs files.
  • Changed MEN010 magic number rule to support allowed numeric literal callers (e.g., FromMinutes).
Analyzers - 2.0.4

Published by menees over 4 years ago

GitHub Releases

  • Moved code from http://www.menees.com and private TFVC repo to public GitHub repo
  • Merged with Menees.Analyzers NuGet package and removed ".2017" from package ID
  • Created CI workflow for automated build via GitHub Actions
  • Added manual build script to produce release artifacts