Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sanyavertolet opened this issue Jul 24, 2023 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@sanyavertolet
Copy link
Member

sanyavertolet commented Jul 24, 2023

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.

@akuleshov7
Copy link
Member

Very important thing. Hate this problem.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants