Open polarene opened 5 months ago
There's also an additional weird behavior: if I format the imports (manually or by Intellij) to match the desired order, diktatCheck
passes even if there are no blank lines between the groups; then diktatFix
doesn't make any change, I assume because it depends on the check task passing to avoid running.
But if the check task fails and you run the fix task it will format your imports adding the blank lines between groups, in addition to sorting them.
Describe the bug
When there is a violation on imports, the error message doesn't match Diktat style guide. The message says:
while the corresponding style rule says:
In fact, running
gradle diktatFix
formats the code according to the convention above.Expected behavior
The error message should match the style guide
Steps to Reproduce
gradle diktatCheck
Environment information