You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running SwiftLint now, we get the following output:
Loading configuration from '.swiftlint.yml'
Linting Swift files in current working directory
Linting 'example.swift' (1/1)
Done linting! Found 0 violations, 0 serious in 1 file.
As you can see ☝️ there are no violations, when in fact, the hello_rule violation should be reported.
Additional Info
This has been tested with various scenarios and the experience is consistently that disabling one custom rule, actually disables all custom rules. This also occurs with :previous, :this, :next.
This issue appears to only affects custom rules, not built-in rules.
The text was updated successfully, but these errors were encountered:
Issue Description
Disabling just one custom rule, actually disables all custom rules.
STR
1) SwiftLint Config
Create config file named
.swiftlint.yml
with the following contents:2) Swift Test File
Create test file named
Example.swift
with the following contents:3) Run SwiftLint
When running SwiftLint, we successfully get the following output:
As you can see ☝️ both rules are violated.
4) Disable One Rule
In the test file, disable only the
world_rule
:5) Run SwiftLint Again
When running SwiftLint now, we get the following output:
As you can see ☝️ there are no violations, when in fact, the
hello_rule
violation should be reported.Additional Info
This has been tested with various scenarios and the experience is consistently that disabling one custom rule, actually disables all custom rules. This also occurs with
:previous
,:this
,:next
.This issue appears to only affects custom rules, not built-in rules.
The text was updated successfully, but these errors were encountered: