All Versions
14
Latest Version
Avg Release Cycle
34 days
Latest Release
86 days ago

Changelog History
Page 1

  • v2.9.8

    November 26, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Works with VS 2017.9 or later.

    πŸš€ Contains the following important changes on top of the v2.9.7 release.

    πŸ›  Fixes

    • πŸ›  Fixed performance regression for most analyzers relying on tainted data analysis. Affects rules CA3001-CA3012 and CA5389.
    • πŸ‘Œ Improved performance for dataflow analysis rules.
  • v2.9.7

    October 31, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Works with VS 2017.9 or later.

    πŸš€ Contains following important changes on top of the v2.9.6 release

    πŸ›  Fixes

    • 🐎 CA5390: Do Not Hard Code Encryption Key -- improved performance
    • πŸ‘» Rules tracking property values -- now handling assignments such as foo.Bar = Singletons.Bar ?? throw new Exception();

    βž• Added

    • πŸ”’ Security
      • CA5401: Do not use CreateEncryptor with non-default IV
      • CA5402: Use CreateEncryptor with the default IV
      • CA5403: Do not hard-code certificate
  • v2.9.6

    October 03, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Works with VS 2017.9 or later.

    πŸš€ Contains following important bug fix on top of v2.9.5 release:

    • CA2246: #2889: AD0001 - NullReferenceException when running CA2246
  • v2.9.5

    October 02, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Works with VS 2017.9 or later.

    πŸš€ Contains following important changes on top of v2.9.4 release

    πŸ› Bug Fixes

    • πŸš‘ Critical Performance: Fixed memory leak in flow analysis results cache which leads to OOM exceptions and crashes on large solution. This is applicable for all rules
    • πŸš‘ Critical Reliability: Hardened all the analyzers and fixers from crashes due to Single or SingleOrDefault invocations.
    • πŸ›  CA1065: Fixed false positives caused by breaking changes in the IOperation tree shape for throw operations.
    • πŸ›  CA1067: Fixed false positives.
    • CA1708: Fix high memory allocations in the rule implementation
    • πŸ›  CA1721: Fixed false positives.
    • πŸ›  CA2000: Fixed false positives
    • πŸ›  CA2234: Fixed false positives
    • πŸ›  CA2327: Do not use insecure JsonSerializerSettings -- Fixed InvalidCastException
    • CA3147: Mark verb handlers with ValidateAntiForgeryToken -- Now handles Task-based ASP.NET MVC controller action methods
    • πŸ›  CA3075: Insecure DTD processing in XML -- Fixed NullReferenceException.
    • πŸ›  CA3076: Insecure XSLT script processing -- Fixed ArgumentOutOfRangeException.
    • CA5390: Do Not Hard Code Encryption Key -- Treats Encoding.GetBytes() as a potentially hardcoded key. Also considers newer .NET Core 3.0 AesGcm and AesCcm APIs.

    βž• Additional analyzers/fixers:

    βž• Added

    • 🐎 Performance
      • CA1828: Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used -- Enabled by default
      • CA1829: Use Length/Count property instead of Count() when available -- Enabled by default
    • πŸ”’ Security
      • CA2329: Do not deserialize with JsonSerializer using an insecure configuration
      • CA2330: Ensure that JsonSerializer has a secure configuration when deserializing
      • CA5391: Use antiforgery tokens in ASP.NET Core MVC controllers -- Enabled by default
      • CA5392: Use DefaultDllImportSearchPaths attribute for P/Invokes
      • CA5393: Do not use unsafe DllImportSearchPath value
      • CA5394: Do not use insecure randomness
      • CA5395: Miss HttpVerb attribute for action methods
      • CA5396: Set HttpOnly to true for HttpCookie
      • CA5397: Do not use deprecated SslProtocols values -- Enabled by default
      • CA5398: Avoid hardcoded SslProtocols values
      • CA5399: Definitely disable HttpClient certificate revocation list check
      • CA5400: Ensure HttpClient certificate revocation list check is not disabled
    • Usage
      • CA2246: Assigning to a symbol and its member (field/property) in the same statement is not recommended. It is not clear if the member access was intended to use symbol's old value prior to the assignment or new value from the assignment in this statement. For clarity, consider splitting the assignments into separate statements -- Enabled by default
      • CA2200: Code fix added

    πŸ”„ Changed

    • πŸ”’ Security
      • CA5389: Do Not Add Archive Item's Path To The Target File System Path -- Now disabled by default
      • CA5390: Do Not Hard Code Encryption Key -- Now disabled by default

    πŸ†• New Analyzer Configuration options

    • CA1031: Add a configurable option disallowed_symbol_names to to allow configuration of disallowed exception types.
    • CA1062: Add configurable option exclude_extension_method_this_parameter for CA1062 to skip analysis of extension method 'this' parameter.
    • CA1801: Respect existing option api_surface for CA1801 (Review unused parameters).
    • πŸ”§ CA1802: Add configuration option required_modifiers for CA1802. CA1802 only flags static readonly flags by default. This matches the legacy FxCop implementation for compat reasons. With this change, users can make the rule more aggressive by also flagging instance fields
    • CA2241: Add a new configurable option additional_string_formatting_methods for CA2241. CA2241 considers String.Format and Console.WriteLine as special formatting methods to validate the callsites for formatting arguments. This change allows end users to supply additional formatting methods that should be validated.
  • v2.9.5-beta1.final

    September 10, 2019

    πŸš€ Pre-release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Contains following important bug fixes and new analyzers/fixers on top of v2.9.4 release

    πŸ› Bug Fixes

    • πŸš‘ Critical Performance: Fixed memory leak in flow analysis results cache which leads to OOM exceptions and crashes on large solution. This is applicable for all rules
    • πŸš‘ Critical Reliability: Hardened all the analyzers and fixers from crashes due to Single or SingleOrDefault invocations.
    • πŸ›  CA1065: Fixed false positives caused by breaking changes in the IOperation tree shape for throw operations.
    • πŸ›  CA1067: Fixed false positives.
    • CA1708: Fix high memory allocations in the rule implementation
    • πŸ›  CA1721: Fixed false positives.
    • πŸ›  CA2000: Fixed false positives
    • πŸ›  CA2234: Fixed false positives
    • πŸ›  CA2327: Do not use insecure JsonSerializerSettings -- Fixed InvalidCastException
    • CA3147: Mark verb handlers with ValidateAntiForgeryToken -- Now handles Task-based ASP.NET MVC controller action methods
    • πŸ›  CA3075: Insecure DTD processing in XML -- Fixed NullReferenceException.
    • πŸ›  CA3076: Insecure XSLT script processing -- Fixed ArgumentOutOfRangeException.
    • CA5390: Do Not Hard Code Encryption Key -- Treats Encoding.GetBytes() as a potentially hardcoded key. Also considers newer .NET Core 3.0 AesGcm and AesCcm APIs.

    βž• Additional analyzers/fixers:

    βž• Added

    • 🐎 Performance
      • CA1828: Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used -- Enabled by default
    • πŸ”’ Security
      • CA2329: Do not deserialize with JsonSerializer using an insecure configuration
      • CA2330: Ensure that JsonSerializer has a secure configuration when deserializing
      • CA5391: Use antiforgery tokens in ASP.NET Core MVC controllers -- Enabled by default
      • CA5392: Use DefaultDllImportSearchPaths attribute for P/Invokes -- Enabled by default
      • CA5393: Do not use unsafe DllImportSearchPath value -- Enabled by default
      • CA5394: Do not use insecure randomness
      • CA5395: Miss HttpVerb attribute for action methods
      • CA5396: Set HttpOnly to true for HttpCookie
      • CA5397: Do not use deprecated SslProtocols values -- Enabled by default
      • CA5398: Avoid hardcoded SslProtocols values
      • CA5399: Definitely disable HttpClient certificate revocation list check
      • CA5400: Ensure HttpClient certificate revocation list check is not disabled

    πŸ”„ Changed

    • πŸ”’ Security
      • CA5389: Do Not Add Archive Item's Path To The Target File System Path -- Now disabled by default
      • CA5390: Do Not Hard Code Encryption Key -- Now disabled by default

    πŸ†• New Analyzer Configuration options

    • CA1031: Add a configurable option disallowed_symbol_names to to allow configuration of disallowed exception types.
    • CA1062: Add configurable option exclude_extension_method_this_parameter for CA1062 to skip analysis of extension method 'this' parameter.
    • CA1801: Respect existing option api_surface for CA1801 (Review unused parameters).
    • πŸ”§ CA1802: Add configuration option required_modifiers for CA1802. CA1802 only flags static readonly flags by default. This matches the legacy FxCop implementation for compat reasons. With this change, users can make the rule more aggressive by also flagging instance fields
    • CA2241: Add a new configurable option additional_string_formatting_methods for CA2241. CA2241 considers String.Format and Console.WriteLine as special formatting methods to validate the callsites for formatting arguments. This change allows end users to supply additional formatting methods that should be validated.

    Works with VS 2017.9 or later.

  • v2.9.4

    July 29, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Contains bug fixes on top of v2.9.3 release and additional rules listed below.

    Works with VS 2017.9 or later.

    βž• Added

    • 🐎 Performance
      • CA1827: Do not use Count() when Any() can be used -- Enabled by default
    • πŸ”’ Security
      • CA2326: Do not use TypeNameHandling values other than None
      • CA2327: Do not use insecure JsonSerializerSettings
      • CA2328: Ensure that JsonSerializerSettings are secure
      • CA5387: Do Not Use Weak Key Derivation Function With Insufficient Iteration Count
      • CA5388: Ensure Sufficient Iteration Count When Using Weak Key Derivation Function
      • CA5389: Do Not Add Archive Item's Path To The Target File System Path -- Enabled by default
      • CA5390: Do Not Hard Code Encryption Key -- Enabled by default
    • Usage
      • CA2245: Do not assign a property to itself. -- Enabled by default

    πŸ›  Fixes

    • 🐎 CA3075: Insecure DTD processing in XML -- Performance improvements.
    • πŸ›  CA5360: Do Not Call Dangerous Methods In Deserialization -- Fixed KeyNotFoundException.
  • v2.9.4-beta1.final

    June 25, 2019

    πŸš€ Pre-Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Contains following additional analyzers and additional bug fixes on top of v2.9.3 release:

    0️⃣ 1. Usage rule CA2245 (AvoidPropertySelfAssignment) - On by default πŸ”’ 2. Security rule CA5387 (DefinitelyUseWeakKDFInsufficientIterationCount) - Off by default πŸ”’ 3. Security rule CA5388 (MaybeUseWeakKDFInsufficientIterationCount) - Off by default πŸ”’ 4. Security rule CA5389 (DoNotAddArchiveItemPathToTheTargetFileSystemPath) - Off by default

    Works with VS 2017.9 or later.

  • v2.9.3

    June 06, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Contains bug fixes on top of v2.9.2 release.

    Works with VS 2017.9 or later.

    βž• Added

    • πŸ”’ Security
      • CA2321: Do not deserialize with JavaScriptSerializer using a SimpleTypeResolver
      • CA2322: Ensure JavaScriptSerializer is not initialized with SimpleTypeResolver before deserializing
      • CA5366: Use XmlReader For DataSet Read Xml -- Enabled by default
      • CA5369: Use XmlReader For Deserialize -- Enabled by default
      • CA5370: Use XmlReader For Validating Reader -- Enabled by default
      • CA5371: Use XmlReader For Schema Read -- Enabled by default
      • CA5372: Use XmlReader For XPathDocument -- Enabled by default
      • CA5373: Do not use obsolete key derivation function -- Enabled by default
      • CA5374: Do Not Use XslTransform -- Enabled by default
      • CA5375: Do Not Use Account Shared Access Signature
      • CA5376: Use SharedAccessProtocol HttpsOnly -- Enabled by default
      • CA5377: Use Container Level Access Policy -- Enabled by default
      • CA5378: Do not disable ServicePointManagerSecurityProtocols -- Enabled by default
      • CA5379: Do Not Use Weak Key Derivation Function Algorithm -- Enabled by default
      • CA5380: Do Not Add Certificates To Root Store -- Enabled by default
      • CA5381: Ensure Certificates Are Not Added To Root Store -- Enabled by default
      • CA5382: Use Secure Cookies In ASP.Net Core
      • CA5383: Ensure Use Secure Cookies In ASP.Net Core
      • CA5384: Do Not Use Digital Signature Algorithm (DSA) -- Enabled by default
      • CA5385: Use Rivest–Shamir–Adleman (RSA) Algorithm With Sufficient Key Size -- Enabled by default
      • CA5386: Avoid hardcoding SecurityProtocolType value
  • v2.9.2

    April 17, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.0 NuGet packages. Contains bug fixes on top of v2.9.1 release.

    Works with VS 2017.9 or later.

  • v2.9.1

    March 29, 2019

    πŸš€ Release build of Roslyn-analyzers based on Microsoft.CodeAnalysis 2.9.1 NuGet packages. Contains bug fixes on top of v2.9.0 release.

    Works with VS 2017.9 or later.

    βž• Added

    • πŸ”’ Security
      • CA3061: Do Not Add Schema By URL -- Enabled by default
      • CA5367: Do Not Serialize Types With Pointer Fields
      • CA5368: Set ViewStateUserKey For Classes Derived From Page -- Enabled by default