saveourtool / diktat

Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
https://diktat.saveourtool.com
MIT License
519 stars 39 forks source link

A full path in gradle plugin output #1795

Closed nulls closed 8 months ago

nulls commented 8 months ago

Old logs:

> Task :diktatCheck
D:\projects\save-cloud\gradle\plugins\build.gradle.kts:30:1: [WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 8 but was 4 (diktat-ruleset:indentation)
D:\projects\save-cloud\gradle\plugins\build.gradle.kts:31:1: [WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 4 but was 0 (diktat-ruleset:indentation)
D:\projects\save-cloud\gradle\plugins\build.gradle.kts:31:1: [COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in //    implementation(libs.gradle.plugin.spotless) (diktat-ruleset:kdoc-comments-codeblocks-formatting)

Current logs:

> Task :diktatCheck
gradle\plugins\build.gradle.kts:30:1: [WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 8 but was 4 (diktat-ruleset:indentation)
gradle\plugins\build.gradle.kts:31:1: [WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 4 but was 0 (diktat-ruleset:indentation)
gradle\plugins\build.gradle.kts:31:1: [COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in //    implementation(libs.gradle.plugin.spotless) (diktat-ruleset:kdoc-comments-codeblocks-formatting)

IDEA renders a full path as a link that is useful