Inspectopedia 2024.3 Help

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:

int aa = 42;

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.

Settings or Preferences | Editor | Inspections | Java | Naming conventions

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

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

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.3, Qodana for JVM 2024.3,

Can be installed with plugin:

Java, 243.23126

Last modified: 03 December 2024