Comments (4)
To clarify above. When @Suppress("PropertyName")
is used, this is respected by Ktlint and treated the same as @Suppress("ktlint:standard:property-naming")
. But when you use @Suppress("PropertyName")
where it is not supposed to be used, then Intellij IDEA complains about it. In such a case you should use the ktlint suppression.
from ktlint.
PropertyName
is from IntelliJ, you can use ktlint:standard:property-naming
for Ktlint instead.
from ktlint.
PropertyName
is from IntelliJ, you can usektlint:standard:property-naming
for Ktlint instead.
Thanks!!! I never know it can do this before.
from ktlint.
Ktlint can not change the behavior of Intellij IDEA inspection that reports the redundant suppression.
from ktlint.
Related Issues (20)
- Documentation unclear/inconsistent about rule names HOT 4
- Enable installing a specific version of ktlint via brew HOT 1
- Format was not able to resolve all violations which (theoretically) can be autocorrected
- Some rules in https://pinterest.github.io/ktlint/latest/rules/standard/ missing "Suppress or disable rule" HOT 1
- Allow single-line `try`/`catch` statements HOT 2
- Inconsistent starting position of chain method continuation HOT 1
- `function-literal` rule conflict with maximum line length HOT 2
- multiline class arguments HOT 1
- Ktlint 1.3.* converts crlf to lf on Windows HOT 10
- `backing-property-naming` rule shouldn't be applied to fields that have the `override` modifier
- class-signature rule incorrectly forces removal of primary no-argument constructor HOT 2
- ktlint --stdin takes too long and only supports a single file HOT 9
- Abstract classes after a long previous line are multilined regardless of the ktlint_class_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than setting HOT 1
- I get an "Enable default patterns" message when I try to format a Kotlin file in Vim with ALE and Ktlint HOT 2
- blank-line-between-when-conditions has incorrect id in docs
- Conflict between `binary-expression-wrapping` and `ktlint_standard_range-spacing` HOT 5
- False positive Unnecessary semicolon (standard:no-semi) HOT 2
- Reconsider allowing standard:no-consecutive-comments if there are empty lines, and allow automatic fix HOT 2
- Require named arguments if 2 or more arguments are of the same type HOT 1
- Local variables are treated as properties HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktlint.