-
Notifications
You must be signed in to change notification settings - Fork 165
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
Add support to disable particular rules via extension property #280
Conversation
@@ -147,6 +150,12 @@ abstract class BaseKtlintCheckTask( | |||
enabledReports | |||
.map { it.asArgument() } | |||
.forEach { argsWriter.println(it) } | |||
disabledRules | |||
.get() | |||
.fold("") { acc, rule -> "$acc,$rule" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you want joinToString
or something here. You can pass a seperator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right! Totally forgot about it 🤦♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in force-pushed update.
3faccd1
to
cf2485d
Compare
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
Formatting violation: |
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
cf2485d
to
d7b8947
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #267.