Swiftlint: Custom config not loaded properly

Created on 19 May 2017  路  2Comments  路  Source: realm/SwiftLint

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.

How to reproduce (0.18.1):

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.

bug

Most helpful comment

I have a fix incoming.

All 2 comments

I was able to reproduce it with 0.19.0.

I have a fix incoming.

Was this page helpful?
0 / 5 - 0 ratings