Specify a custom path to diktat-analysis.yml
See original GitHub issueDescribe the bug
I have one diktat-analysis.yml and multiple projects:
/repos/rootProj/
- build.gradle
- lint/
- diktat-analysis.yml
- ...
/repos/subProj/
- build.gradle
- ...
rootProj is my root project. It references other subprojects in other directories.
Expected behavior
I want both /repos/rootProj/build.gradle and /repos/subProj/build.gradle to reference diktat-analysis.yml
, like this perhaps:
diktat {
inputs = files("**/src/**/java/**/*.kt")
debug = true // turn on debug logging
config = rootProject.file('lint/diktat-analysis.yml')
}
Is this possible right now?
Environment information
- diktat version: 0.2.0
- build tool (gradle): 5.6.4
- how is diktat run (CLI, plugin, etc.): ./gradlew diktatFix
- kotlin version: 1.3.71
- operating system: macOS
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
diktat/diktat-analysis.yml at master · saveourtool/diktat - GitHub
Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs - diktat/diktat-analysis.yml at...
Read more >Writting maven plugin using Kotlin.
How to create your own maven plugin when you are using Kotlin.
Read more >DiKTat: A Strict Coding Standard for Kotlin - Morioh
That is why we have supported diktat-analysis.yml that can be easily changed and help in customization of your own rule set. It has...
Read more >Gradle - GitHub
```gradle spotless { java { eclipse() // optional: you can specify a specific version and/or ... configFile("full/path/to/diktat-analysis.yml") ``` <a ...
Read more >analysis-dev/diktat - Awesome Lists
Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This works great, thank you for such a speedy and useful fix! 💪
@aphexcx thank you very much for a report!