Skip to content

1.1.0

Latest

Choose a tag to compare

@steliosfran steliosfran released this 24 Jun 11:34
5695966

Harmonize 1.1.0

Harmonize 1.1.0 is a backwards-compatible release that introduces baseline support in assertions. It also reports stale baseline entries, prompting teams to remove violations that have already been fixed.

Highlights

Baseline support for assertions

assertTrue, assertFalse, and assertEmpty now accept an optional baseline parameter: an array of filenames representing pre-existing violations that you want to exempt from the lint rule.

Example:

viewModels.assertTrue(message: "...", baseline: ["LegacyViewModel"]) {
    $0.inherits(from: "BaseViewModel")
}

Elements whose filename appears in the baseline are excluded from the lint rule evaluation. Furthermore, Harmonize will also assert that the entries in the baseline array indeed violate the lint rule, and report stale baseline entries. This helps teams identify and remove violations that have already been fixed.

What's Changed

New Contributors

Full Changelog: 1.0.0...1.1.0