Questionable name
Reports variables, methods, or classes with questionable, not really descriptive names. Such names do not help to understand the code, and most probably were created as a temporary thing but were forgotten afterwards.
Example:
Rename quick-fix is suggested only in the editor.
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
QuestionableName- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Use the option to list names that should be reported.
Inspection options
Here you can find the description of settings available for the Questionable name inspection, and the reference of their default values.
- Reported names
Default value:
[aa, abc, bad, bar, bar2, baz, baz1, baz2, baz3, bb, blah, bogus, bool, cc, dd, defau1t, dummy, dummy2, ee, fa1se, ff, foo, foo1, foo2, foo3, foobar, four, fred, fred1, fred2, gg, hh, hello, hello1, hello2, hello3, ii, nu11, one, silly, silly2, string, two, that, then, three, whi1e, var]
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |