-
Notifications
You must be signed in to change notification settings - Fork 39
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
Support setting config file via system property #682
Conversation
### What's done: * Added support in DiktatRuleSetProvider * Added support in diktat-gradle-plugin * Added example with gradle multimodule project * Added new functional test
Codecov Report
@@ Coverage Diff @@
## master #682 +/- ##
============================================
- Coverage 79.94% 79.90% -0.05%
- Complexity 1835 1839 +4
============================================
Files 87 87
Lines 4778 4801 +23
Branches 1544 1549 +5
============================================
+ Hits 3820 3836 +16
- Misses 239 241 +2
- Partials 719 724 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
### What's done: * Updated example * Code style
### What's done: * Code style
...onalTest/kotlin/org/cqfn/diktat/plugin/gradle/DiktatGradlePluginMultimoduleFunctionalTest.kt
Outdated
Show resolved
Hide resolved
### What's done: * Refactoring
### What's done: * Refactoring
val closestMatch = Warnings.names.minByOrNull { Levenshtein.distance(it, config.name) } | ||
"Warning name <${config.name}> in configuration file is invalid, did you mean <$closestMatch>?" |
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.
Does it happen in case if config is empty? If so do we need this warning message?
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.
Config can't be empty, at the very least we will use config included in the jar.
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.
Oh you used minByOrNull
because minBy is deprecated
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
What's done:
This pull request closes #672