Skip to content
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

Fix loading custom rule sets #1752

Merged

Conversation

paul-dingemans
Copy link
Collaborator

Description

Inline variables based on PicoCli Options. PicoCli Options will only be fully initialized once PicoCli has parsed the arguments (see class Main). As of that, such variables can not be declared as class variables. Added as CLI Test to verify that a custom rule set based on RuleSetProviderV2 is actually loaded.

Add an '.editorconfig' override for each custom rule set that is loaded via a rule set JAR.

Fix sorting of Rule Runners. A rule can only be unblocked, if all run after rules which refer to a rule which is actually loaded, are added to the list of rules. The 'removeRunAfterRules' in the RuleRunner now actually modifies the list of RunAfterRules which have to be respected.

Allow urls in the About information to contain up to 120 characters and print stacktrace in case a rule set JAR can not be loaded.

Checklist

  • PR description added
  • tests are added
  • KtLint has been applied on source code itself and violations are fixed
  • documentation is updated
  • CHANGELOG.md is updated

In case of adding a new rule:

…y be fully initialized once PicoCli has parsed the arguments (see class Main). As of that, such variables can not be declared as class variables. Added as CLI Test to verify that a custom rule set based on RuleSetProviderV2 is actually loaded.

* Add an '.editorconfig' override for each custom rule set that is loaded via a rule set JAR.
* Fix sorting of Rule Runners. A rule can only be unblocked, if all run after rules which refer to a rule which is actually loaded, are added to the list of rules. The 'removeRunAfterRules' in the RuleRunner now actually modifies the list of RunAfterRules which have to be respected.
* Allow urls in the About information to contain up to 120 characters and print stacktrace in case a rule set JAR can not be loaded.
@paul-dingemans paul-dingemans merged commit ed1019c into pinterest:master Dec 29, 2022
@paul-dingemans paul-dingemans deleted the fix-loading-custom-rule-set branch December 29, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant