saveourtool / diktat

Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
https://diktat.saveourtool.com
MIT License
537 stars 39 forks source link

Configurable rule that prohibits usage of fully-qualified name #1717

Open sanyavertolet opened 1 year ago

sanyavertolet commented 1 year ago

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.

orchestr7 commented 10 months ago

Very important thing. Hate this problem.

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