Skip to content

Releases: Vannevelj/SharpSource

1.13.1

01 Oct 12:54
5170d45
Compare
Choose a tag to compare
  • AsyncOverloadsAvailable: Correctly suggests passing through a CancellationToken if the sync overload accepts one as well

1.13.0

01 Oct 11:27
9bc1f2a
Compare
Choose a tag to compare
  • AsyncOverloadsAvailable: Now passes through a CancellationToken if there is one available in the current context
  • AttributeMustSpecifyAttributeUsage: Takes definitions on base classes into account
  • ElementaryMethodsOfTypeInCollectionNotOverridden: Supports HashSet.Add() and Dictionary.Add()

1.12.0

25 Sep 22:23
64a4419
Compare
Choose a tag to compare
  • ParameterAssignedInConstructor: A parameter was assigned in a constructor

1.11.2

25 Sep 11:23
5f5659d
Compare
Choose a tag to compare
  • Fixed an issue where in some scenarios, necessary using statements were not getting added
  • StaticInitializerAccessedBeforeInitialization: no longer triggers when passing a method reference

1.11.1

24 Sep 23:05
9fd5887
Compare
Choose a tag to compare
  • SwitchIsMissingDefaultLabel: code fix now works in top-level statements
  • AttributeMustSpecifyAttributeUsage: correctly fires when the type is defined in the netstandard assembly

1.11.0

24 Sep 20:32
9b65899
Compare
Choose a tag to compare
  • ComparingStringsWithoutStringComparison: A string is being compared through allocating a new string, e.g. using ToLower() or ToUpperInvariant(). Use a case-insensitive comparison instead which does not allocate.
  • UnnecessaryEnumerableMaterialization: supports !. operator
  • ElementaryMethodsOfTypeInCollectionNotOverridden: supports ?. and !. operators
  • StaticInitializerAccessedBeforeInitialization: no longer triggers when referencing itself

1.10.1

16 Sep 11:09
d5199ce
Compare
Choose a tag to compare
  • StaticInitializerAccessedBeforeInitialization: supports implicit object creation expressions
  • NewGuid: supports implicit object creation expressions
  • HttpClientInstantiatedDirectly: supports implicit object creation expressions

1.10.0

14 Sep 23:30
1b840d4
Compare
Choose a tag to compare
  • All analyzers and code fixes now have help codes that link back to the individual documentation
  • StaticInitializerAccessedBeforeInitialization: don't trigger if the referenced field is marked as const

1.9.4

13 Sep 22:49
3e26444
Compare
Choose a tag to compare
  • StaticInitializerAccessedBeforeInitialization: no longer triggers for Lazy<T> invocations when a method is passed as argument
  • Added documentation for all analyzers to the repo

1.9.3

12 Sep 19:16
bf15e4c
Compare
Choose a tag to compare
  • Internal code cleanup: all warning messages in the tests are now hardcoded