Lint Configuration
HEMTT runs lints against your config and SQF files to check for errors, common mistakes, and improvements. Some lints can be disabled, configured, or changed in severity.
Lints can be kept in the project.toml
file under the lints
section, or in a separate .hemtt/lints.toml
file. When kept in lints.toml
, the lints.
prefix is not required.
See the Analysis section for Config and SQF lints.
Configuration
Some lints are not able to be disabled or reduced in severity. These are usually critical lints that are required for your project to work correctly.
There are 3 ways to configure a lint:
Disabling
A lint can be completely disabled by setting it to false
. Only lints that are not critical can be disabled.
[lints.sqf]
command_case = false
Severity
A lint can have its severity changed. The severity can be Error
, Warning
, or Help
. Only lints that are not critical errors can have their severity changed.
[lints.sqf]
command_case = "Warning"
Options
Some lints provide configuration options. Check the documentation for the lint to see what options are available.
[lints.sqf.command_case]
severity = "Error"
options.ignore = [
"AGLtoASL",
"ASLtoAGL",
]