When linting with custom config file while .swiftlint.yml exists in current directory, disabled_rules are loaded from .swiftlint.yml instead of passed config file.
In folder containing
# .swiftlint.yml
# empty
# .swiftlint-ci.yml
disabled_rules:
- todo
md5-4db8560b57f2a1f1bcd3f8c07b7ef510
// Foo.swift
// TODO
Run swiftlint lint --config .swiftlint-ci.yml:
Loading configuration from '.swiftlint-ci.yml'
Linting Swift files in current working directory
Linting 'Foo.swift' (1/1)
Foo.swift:1:4: warning: Todo Violation: TODOs should be avoided. (todo)
Done linting! Found 1 violation, 0 serious in 1 file.
I was able to reproduce it with 0.19.0.
I have a fix incoming.
Most helpful comment
I have a fix incoming.