Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

[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.

...



This post first appeared on Devdummy, please read the originial post: here

Share the post

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

×

Subscribe to Devdummy

Get updates delivered right to your inbox!

Thank you for your subscription

×