You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Ktlint 0.48.0 a non-standard ruleset has to be enabled explicitly in order to run the rules. This also applies to a custom rule set and to rules provided via an API consumer.
Ktlint CLI
As the custom rule set will only be run when option -R /path/to/custom/rule-set.jar is passed to the Ktlint CLI it is convenient when the rule set does not need to enabled explicitly in the .editorconfig. Like is done with parameter --experimental a custom rule which is specified via -R /path/to/custom/rule-set.jar should be enabled automatically. Using the .editorconfig the user can still disable the entire rule set or specific rules.
API Consumer
Rules provided via the API Consumer should be allowed automatically. It is the responsibilitity of the API consumer to provided rules which may be run. Using the .editorconfig the user can still disable the entire rule set or specific rules.
The text was updated successfully, but these errors were encountered:
…ault. There is no benefit in forcing the Ktlint CLI and API Consumers to enable the rule sets for their rules explicitly as the developer already consented to using their rules by either specifying a custom rule set JAR via the CLI or by using the API Consumer. However, the benefit of being able to disable a rule set still remains.
Closespinterest#1747
* Enable non-experimental rule sets (including custom rule sets) by default. There is no benefit in forcing the Ktlint CLI and API Consumers to enable the rule sets for their rules explicitly as the developer already consented to using their rules by either specifying a custom rule set JAR via the CLI or by using the API Consumer. However, the benefit of being able to disable a rule set still remains.
Closes#1747
Since Ktlint 0.48.0 a non-standard ruleset has to be
enabled
explicitly in order to run the rules. This also applies to a custom rule set and to rules provided via an API consumer.Ktlint CLI
As the custom rule set will only be run when option
-R /path/to/custom/rule-set.jar
is passed to the Ktlint CLI it is convenient when the rule set does not need to enabled explicitly in the.editorconfig
. Like is done with parameter--experimental
a custom rule which is specified via-R /path/to/custom/rule-set.jar
should be enabled automatically. Using the.editorconfig
the user can still disable the entire rule set or specific rules.API Consumer
Rules provided via the API Consumer should be allowed automatically. It is the responsibilitity of the API consumer to provided rules which may be run. Using the
.editorconfig
the user can still disable the entire rule set or specific rules.The text was updated successfully, but these errors were encountered: