Global Customization Reference

You can configure overall behavior of Code Analyzer, such as the location of the log folder and the root directory of the configuration options.

For configuration and reference information about specific engines, such as PMD or ESLint, see Engines.

FieldTypeDescription
config_rootstringThe absolute folder path to which all other path values in this configuration may be relative to. If unspecified, or if specified as null, then the value is automatically chosen to be the parent folder of your Code Analyzer configuration file if it exists, or the current working directory otherwise. Default value is null.
log_folderstringFolder where to store log files. May be an absolute path or a path relative to config_root. If unspecified, or if specified as null, then the value is automatically chosen to be your machine's default temporary directory. Default value is null.
rulesobjectRule override settings of the format rules.{engine_name}.{rule_name}.{property_name} = {override_value} where:
  • {engine_name} is the name of the engine containing the rule that you want to override.
  • {rule_name} is the name of the rule that you want to override.
  • {property_name} can either be:
    • 'severity' - [Optional] The severity level value that you want to use to override the default severity level for the rule
      • Possible values: 1 or 'Critical', 2 or 'High', 3 or 'Moderate', 4 or 'Low', 5 or 'Info'
    • 'tags' - [Optional] The string array of tag values that you want to use to override the default tags for the rule
Default value is {}.
---- [Example usage]: ---------------------
rules:
eslint:
sort-vars:
severity: "Info"
tags: ["Recommended", "Suggestion"]
-------------------------------------------
enginesobjectEngine specific custom configuration settings of the format engines.{engine_name}.{property_name} = {value} where:
  • {engine_name} is the name of the engine containing the setting that you want to override.
  • {property_name} is the name of a property that you would like to override.
Each engine may have its own set of properties available to help customize that particular engine's behavior. Default value is {}.