question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify a custom path to diktat-analysis.yml

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
aphexcxcommented, Jan 16, 2021

This works great, thank you for such a speedy and useful fix! 💪

0reactions
akuleshov7commented, Jan 16, 2021

@aphexcx thank you very much for a report!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found