Skip to content

NetAnalyzers 7.0.0

Compare
Choose a tag to compare
@jmarolf jmarolf released this 08 Dec 00:55
· 9 commits to release/7.0.1xx since this release
e26a04c

Release build of Microsoft.CodeAnalysis.NetAnalyzers containing first-party code quality analyzers ("CAxxxx rules").

Added

  • Globalization
    • CA1311: Specify a culture or use an invariant version -- Enabled by default
  • Interoperability
    • CA1420: Property, type, or attribute requires runtime marshalling -- Enabled by default
    • CA1421: This method uses runtime marshalling even when the 'DisableRuntimeMarshallingAttribute' is applied -- Enabled by default
    • CA1422: Validate platform compatibility -- Enabled by default
  • Performance
    • CA1850: Prefer static 'HashData' method over 'ComputeHash' -- Enabled by default
    • CA1851: Possible multiple enumerations of 'IEnumerable' collection
    • CA1852: Seal internal types -- Enabled by default
    • CA1853: Unnecessary call to 'Dictionary.ContainsKey(key)' -- Enabled by default
    • CA1854: Prefer the 'IDictionary.TryGetValue(TKey, out TValue)' method -- Enabled by default
    • CA1855: Prefer 'Clear' over 'Fill' -- Enabled by default
  • Reliability
    • CA2019: Improper 'ThreadStatic' field initialization -- Enabled by default
    • CA2020: Prevent from behavioral change -- Enabled by default
  • Usage
    • CA2259: 'ThreadStatic' only affects static fields -- Enabled by default
    • CA2260: Use correct type parameter -- Enabled by default