-
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
Diktat rule configs #1686
Diktat rule configs #1686
Conversation
### What's done: - main runner It closes #1685
JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v2) 162 files ±0 162 suites ±0 10m 23s ⏱️ - 1m 35s Results for commit 04294d8. ± Comparison against base commit d7d39f0. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2) 162 files ±0 162 suites ±0 9m 40s ⏱️ - 2m 2s Results for commit 04294d8. ± Comparison against base commit d7d39f0. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Codecov Report
@@ Coverage Diff @@
## master #1686 +/- ##
============================================
- Coverage 78.72% 78.35% -0.37%
+ Complexity 2317 2312 -5
============================================
Files 124 124
Lines 8151 8142 -9
Branches 2062 2060 -2
============================================
- Hits 6417 6380 -37
- Misses 826 858 +32
+ Partials 908 904 -4
|
diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt
Fixed
Show fixed
Hide fixed
...-common/src/main/kotlin/org/cqfn/diktat/common/config/reader/AbstractResourceConfigReader.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleConfigReaderImpl.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleConfigReaderImpl.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleConfigReaderImpl.kt
Fixed
Show fixed
Hide fixed
diktat-ruleset/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProviderV3Spi.kt
Fixed
Show fixed
Hide fixed
diktat-ruleset/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProviderV3Spi.kt
Fixed
Show fixed
Hide fixed
...-common/src/main/kotlin/org/cqfn/diktat/common/config/reader/AbstractResourceConfigReader.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleConfigReaderImpl.kt
Fixed
Show fixed
Hide fixed
diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt
Fixed
Show fixed
Hide fixed
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleConfigReaderImpl.kt
Fixed
Show fixed
Hide fixed
Unfortunately you will need to wait until I will finish all the work related to the renaming of packages. But my real question is the following: is it possible to create a small runner of diktat without this huge change with existing code? You told me “everything is already done” in CliRunner and you can call API directly, but the only problem is that there is no chance to provide external configuration of |
diktat-api/src/main/kotlin/org/cqfn/diktat/api/DiktatRuleConfig.kt
Outdated
Show resolved
Hide resolved
diktat-api/src/main/kotlin/org/cqfn/diktat/api/DiktatRuleConfig.kt
Outdated
Show resolved
Hide resolved
diktat-api/src/main/kotlin/org/cqfn/diktat/api/DiktatRuleSetFactory.kt
Outdated
Show resolved
Hide resolved
diktat-api/src/main/kotlin/org/cqfn/diktat/api/DiktatRuleConfigReader.kt
Outdated
Show resolved
Hide resolved
diktat-maven-plugin/src/main/kotlin/org/cqfn/diktat/plugin/maven/DiktatBaseMojo.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/RulesConfigValidationTest.kt
Outdated
Show resolved
Hide resolved
I thought I've showed to you. Restored this main class: #1689 |
I missed this comment and actually got pissed because of this a little bit. If you show that to me - how external people should know about our API and how to call our methods? 👿 Anyway - I have sent #1689 to our friends, thank you 😄 |
I've showed you that it doesn't work in the way that we wanted (configuration now supported only via a file), that why I continue with this PR |
What's done:
DiktatRuleConfigReader
It closes #1695