-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
Describe the bug
WRONG_INDENTATION
message is hard-coded to 4 spaces
instead of being based on the indentationSize
value.
diktat/diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/constants/Warnings.kt
Line 113 in 46ec9b9
WRONG_INDENTATION(true, "3.3.1", "only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed)"), |
Given the following configuration
- name: WRONG_INDENTATION
enabled: true
configuration:
indentationSize: 2
Expected behavior
[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 2 spaces (tabs are not allowed): expected 2 but was 4 (diktat-ruleset:indentation)
Observed behavior
[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 2 but was 4 (diktat-ruleset:indentation)
Steps to Reproduce
Environment information
- diktat version: 2.0.0
- build tool (maven/gradle): gradle
- how is diktat run (CLI, plugin, etc.): ./gradlew diktatCheck
- kotlin version: 1.9.21
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working