-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with rules configuration after updating to 0.54.0 #5347
Comments
I think you want this:
|
Unfortunately it didn't help :( Here's the simplified example of problem reproduction:
test.swift: class TestClass {
struct ALLOWED_NAME {
}
} .swiftlint.yml: identifier_name:
allowed_symbols: ['_']
min_length: 3
max_length: 50
severity: warning
type_name:
allowed_symbols: ['_']
min_length: 3
severity: warning result for 0.53.0:
result for 0.54.0:
I've noticed that if I change test.swift to:
it works fine for both versions. So the issue seems to be related to interpretation of struct keyword |
I'm facing a similar issue with the
But when running
|
|
@Mucha92: In your configuration, min_length:
warning: 3
error: 2 Using |
Thank you, it solves problem |
New Issue Checklist
Describe the bug
After updating to version 0.54.0 a following problem appears:
My configuration file (swiftlint.yml) contains the following lines:
Did somethign change? Should I somehow update my configuration file? On 0.53.0 works fine.
Environment
swiftlint version
to be sure)? 0.54.0If so, paste their relative paths and respective contents. No
xcodebuild -version
)? Xcode 14.2 Build version 14C18The text was updated successfully, but these errors were encountered: