Skip to content

@BenMorris BenMorris released this Jul 1, 2019

Accumulated bug fixes and minor changes:

  • You can now specify optional search directories when loading Types using the Types.InAssembly or Types.InAssemblies methods
  • Fixed a bug where rules were returning the wrong type list if a ShouldNot() condition was being used.
  • Types that cannot be loaded by Mono.Cecil no longer throw a BadImageFormatException
  • Fixed a typo in the "HasViolations" method - NB: this is a breaking change as it will require changes to existing implementations.
Assets 2

@BenMorris BenMorris released this Apr 28, 2019 · 11 commits to master since this release

Added policies, a construct that lets you aggregate groups of rules together for reporting.

Many thanks to @ewassef for the idea and initial implementation.

Assets 2

@BenMorris BenMorris released this Mar 22, 2019 · 18 commits to master since this release

Added the following new methods as predicates and conditions:

  • AreImmutable: no fields or properties can be updated
  • AreMutable: at least one field or property can be updated
  • OnlyHaveNullableMembers: All fields are nullable
  • HaveSomeNonNullableMembers: At least one field is non-nullable
Assets 2

@BenMorris BenMorris released this Mar 3, 2019 · 29 commits to master since this release

  • Added methods that allow you to select types whose namespaces match a regular expression pattern. These have been added both as predicates and conditions.
Assets 2

@BenMorris BenMorris released this Dec 27, 2018 · 34 commits to master since this release

  • A call to GetResults() on a ConditionList now also returns a list of failing types. This constitutes a breaking change as the result is now a TestResult instance rather than a boolean value.
  • Duplicate types are not longer returned in a call to GetResults() on a ConditionList
Assets 2
You can’t perform that action at this time.