diktat icon indicating copy to clipboard operation
diktat copied to clipboard

Configurable rule that prohibits usage of fully-qualified name

Open sanyavertolet opened this issue 2 years ago • 1 comments

In SAVE we use react wrappers for Kotlin/JS. There, all the default HTML tags are fields of ReactHTML object.

When copy-paste, div tag becomes ReactHTML.div, which is unacceptable :)

We need to create some kind of configurable rule that prohibits usage of fully-qualified name (e.g. ReactHTML)

Add a new section for JS in Diktat CodeStyle.

sanyavertolet avatar Jul 24 '23 08:07 sanyavertolet

Very important thing. Hate this problem.

Need not to forget to update Diktat CodeStyle also (add a chapter for JS).

orchestr7 avatar Dec 12 '23 11:12 orchestr7