You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code fails to converge with the ENUMS_SEPARATED inspection:
enum class Foo {
A,
B,
C // some comment
}
It tries to ensure that the last enum entry has a trailing comma, but it is added at the end of the line.
Since the comma is part of the comment, this step will repeat and fails to converge.
Expected behavior
Independently of whether a comment on the same line is considered a good style or not, the inspection should converge even with a comment present.
Environment information
diktat version: 1.1.0
build tool (gradle): 7.4.2
how is diktat run (CLI, plugin, etc.): spotless
kotlin version: 1.6.20
operating system: windows/ubuntu
The text was updated successfully, but these errors were encountered:
Describe the bug
The following code fails to converge with the ENUMS_SEPARATED inspection:
It tries to ensure that the last enum entry has a trailing comma, but it is added at the end of the line.
Since the comma is part of the comment, this step will repeat and fails to converge.
Expected behavior
Independently of whether a comment on the same line is considered a good style or not, the inspection should converge even with a comment present.
Environment information
The text was updated successfully, but these errors were encountered: