Skip to content

v1.2.1 — Config Map & nested config support

Latest

Choose a tag to compare

@Joseph-Cursio Joseph-Cursio released this 04 Jun 20:08
· 425 commits to main since this release

Highlights

Config Map (new)

A new view that surfaces your project's nested .swiftlint.yml configs:

  • A sparse tree of every nested config, badged with what each one changes (-2 disabled, +1 opt-in, …).
  • A resolved-config inspector for any folder: the layer chain (root → … → folder) and, per rule, its effective state with "set by" attribution.
  • Flags the "excluded trap" — a nested excluded/included that SwiftLint silently ignores.

Correct nested-config analysis

Analysis previously forced the root config via --config, which disables SwiftLint's nested resolution — so the GUI over-reported violations in any folder a nested config relaxes (e.g. a Tests/.swiftlint.yml that disables force_unwrapping). Analysis now runs in effective mode and matches what the developer and CI actually see.

Config editor fidelity

Editing and saving a config no longer silently drops:

  • custom_rules (and their regexes)
  • scalar rule shorthands like line_length: 120 / file_length: 800

Scalar shorthands are now parsed into the model (understood as warning: N) and re-emitted in their original form, so a round-trip changes nothing it doesn't need to.


Internally, the resolved-config engine is reconciled against actual SwiftLint output by a "SwiftLint-as-oracle" verification harness, and the whole feature is covered by the test suite.