diktat icon indicating copy to clipboard operation
diktat copied to clipboard

[FILE_NAME_INCORRECT] suggestion for improvement

Open Cheshiriks opened this issue 2 years ago • 3 comments

If the file contains only one Interface or enum class, then it will not have a .kt in the name. Maybe add this to the rule?

Cheshiriks avatar Sep 22 '23 14:09 Cheshiriks

can you please provide example? I didn't get...

nulls avatar Sep 22 '23 14:09 nulls

@nulls I am receiving this message in my save cloud Снимок

Cheshiriks avatar Sep 22 '23 15:09 Cheshiriks

It's another issue: it's about prefix I. We do not support it and diktat tries to change it to IbaseMetrics. So need to add two suppressions: @file:Suppress("FILE_NAME_INCORRECT") and @Suppress("CLASS_NAME_INCORRECT")

But probably we should support prefix I which is the common (but from C# world) prefix for interface

nulls avatar Sep 22 '23 15:09 nulls