When using booleans, it is unnecessary to test whether they’re equal to true
(rule 185) or false
(rule 186). Simply testing the boolean results in cleaner code.
signal valid: boolean; -- some code omitted if valid then -- ... end if; if valid = true then -- ... end if; if not valid then -- ... end if; if valid = false then -- ... end if; if valid /= true then -- ... end if;
Note that the equals-false rule (186) is disabled (set to IGNORE
) by default.
Project specific setting of these rules
These rules can be disabled for your project, or its severity can be modified in the project linting settings.
Manual configuration in ${project location}/.settings/com.sigasi.hdt.vhdl.linting.prefs
:
185/severity/<project>=IGNORE
186/severity/<project>=IGNORE