[Fixed Sonar Violation] Turnoff Wildcard Imports from Code Format in IntelliJ IDEA - DevDummy

Latest

Views | Thoughts | Concepts | Techniques

Friday, June 22, 2018

[Fixed Sonar Violation] Turnoff Wildcard Imports from Code Format in IntelliJ IDEA


Sonar Issue



Violation : Explicitly Import the Specific Classes Needed

Rule : Wildcard imports should not be used

IntelliJ IDEA Menu Navigation

Settings > Editor > Code Style > Java > Imports tab



Change the value in, Class count to use import with '*' : to a value higher than the usage count of repetitive class asserts, to avoid wildcard import ( a higher value like 150 ).

Note : The default value 999 will not work. Also the "Use single class import" tick removal will also not work.

...

No comments:

Post a Comment