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
Adding // swiftlint:disable superfluous_disable_command to a file does not seem to actually disable the warning.
Receive this error in the file I added the disable comment to
error: Superfluous Disable Command Violation: SwiftLint rule 'identifier_name' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
SwiftLint version (run swiftlint version to be sure)?
0.23.0
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Homebrew
Which Xcode version are you using (check xcode-select -p)?
9.0
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
// This triggers a superfluous disable command warning for trailing newlines// (There is actually a newline at the end here that isn't rendered when shown as Markdown)// swiftlint:disable superfluous_disable_command// swiftlint:disable trailing_newline
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Bug Report
Adding
// swiftlint:disable superfluous_disable_command
to a file does not seem to actually disable the warning.Receive this error in the file I added the disable comment to
SwiftLint version (run
swiftlint version
to be sure)?0.23.0
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Homebrew
Are you using nested configurations?
No
Which Xcode version are you using (check
xcode-select -p
)?9.0
Do you have a sample that shows the issue? Run
echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: