SwiftLint
SwiftLint copied to clipboard
line_length still exist after disabled
New Issue Checklist
- [x] Updated SwiftLint to the latest version
- [x] I searched for existing GitHub issues
Describe the bug
A clear and concise description of what the bug is. Tried swiftlint, other rules work fine but line_length is buggy and trailing_whitespace. Tried to update ignore_comments: true but it still not updated in swiftlint rules. So i update to disabled rules but line_length still exist in xcode
Environment
- SwiftLint version (run
swiftlint versionto be sure)? - 0.47.0
- Installation method used (Homebrew, CocoaPods, building from source, etc)?
- homebrew
- Paste your configuration file:
disabled_rules:
- trailing_whitespace
- identifier_name
- line_length
opt_in_rules:
- empty_count
- empty_string
included:
- Xcode_Projects
excluded:
- Carthage
- Pods
- SwiftLint/Common/3rdPartyLib
function_body_length:
warning: 300
error: 500
function_parameter_count:
warning: 6
error: 8
type_body_length:
warning: 300
error: 500
file_length:
warning: 1000
error: 1500
ignore_comment_only_lines: true
-
Are you using nested configurations?
-
no
-
Which Xcode version are you using (check
xcodebuild -version)? -
13.3 use intel mac
If you think that the line_length and trailing_whitespace rules do not work correctly then please file issues for them explaining what exactly does not work well in your opinion.
It's hard to reproduce the issue with the line_length, in that it is triggered while actually disabled in the configuration, without further details about your project setup. In a simple Swift package the mechanism works well for me. Can you reproduce it without Xcode? How do you call SwiftLint from within Xcode?
I have this issue I cannot change or disable line_length rules !