-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Annotation rule throws IllegalStateException #490
Comments
Included the above two examples in the |
* Wrap two new KtLint rules * Add new rules to KtLint provider * Add test cases for new rules * Distinguish between test files for KtLint integration tests * Generate documentation for new rules * Disable AnnotationOnSeparateLine and SpacingAroundDot by default due to false positives and exceptions * Make sure ChainWrapping works fine when running in single mode All KtLint rules together have problems with function chains. * Remove active state from indentation rule as it is experimental in ktlint * Wrap MultiLineIfElse and SpacingAroundUnaryOperators rules * Suppress KtLint false positives * Disable AnnotationOnSeparateLine rule due to known excptions pinterest/ktlint#490 * Use braces in if statements for readability * Remove formatting integration test It basically tested if KtLint is doing the right thing. We don't want to duplicate their tests. Running this rule set on our CI is enough integration for detekt.
The PR for this issue has been merged. But just now noticed that in the |
Disabling that rule predates us taking over this project, but I can verify that all checks pass once it's re-enabled. |
Sure ! Noticed all the rules disabled earlier have been re-enabled in this open PR. |
It's a bit confusing - some of the disabled ones are still disabled, but the disabling is moved into the .editorconfig file. I'll add a comment into the StandardRulesetProvider in that PR to clarify. |
* Return if there's no annotations found instead of throwing an exception * Fies pinterest#490
* Return if there's no annotations found instead of throwing an exception * Fies pinterest#490
* Return if there's no annotations found instead of throwing an exception * Fies pinterest#490
* Return if there's no annotations found instead of throwing an exception * Fies pinterest#490
* Fix AnnotationRule exception * Return if there's no annotations found instead of throwing an exception * Fixes pinterest#490 and pinterest#502 * Re-enable rule in standard ruleset
* Fix AnnotationRule exception * Return if there's no annotations found instead of throwing an exception * Fixes pinterest/ktlint#490 and pinterest/ktlint#502 * Re-enable rule in standard ruleset
Two tests added to the AnnotationRuleTest.kt. The first one failed, the second one succeeds.
The text was updated successfully, but these errors were encountered: