One of my functions encrypts a string and one of my tests verifies that it took place. Naturally, strings like sldjf982389
are not recognized as a valid English word, so IntelliJ
complains.
If there a way to suppress these warnings without adding junk to the dictionary?
Press Ctrl+Alt+S to open the IDE settings and select Editor | Natural Languages | Spelling. Select either the built-in project-level or application-level dictionary or disable the option to prompt you every time you save a word.
You can use following @SuppressWarnings
For example idea is complaining about "contentid" that should be "contentId" according to him
@SuppressWarnings("SpellCheckingInspection") public static final String ARG_CONTENT_ID = "contentid";
You can disable that in the Inspections menu. Click on the little green box at the top of source code, or navigate to File > Settings > Inspections, under the Project Settings divider. You can then untick the box shown below.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With