Configuration

You can configure Inspecode by placing rocro.yml at the root of your repository. There are two types of configuration:

  • Global Configuration
    • Threshold on cyclomatic complexity
    • Threshold on the number of issues detected in a job
    • [EXPERIMENTAL] Environment variables
    • [EXPERIMENTAL] Runtime versions
    • [EXPERIMENTAL] File filters
    • [EXPERIMENTAL] Prefix/Suffix for auto-fix git commit message
    • [EXPERIMENTAL] Dependency cache
    • [EXPERIMENTAL] Incremental analysis
  • Tool Configuration
    • File filters
    • Whether to let Inspecode fix some issues automatically
    • Computational resource
    • Configuration files
    • Tool-specific options
    • Threshold on the number of issues detected by a tool
    • [EXPERIMENTAL] Incremental analysis

Note: .rocro.yml is also supported. rocro.yml is used preferentially if both exist.

Overview of YAML Layout
inspecode:

  # Global configuration
  thresholds:
    complexity: <number>
    num-issues: <number|mapping>

  experimental:
    env:
      <var1>: <string>
      <var2>: <string>
      ...
    runtime:
      <runtime1>: <string>
      ...
    input: <string|list>
    ignore: <string|list>
    cache: <boolean>
    incremental: <boolean>


  # Configuration for each tool
  <tool1>: <string|mapping>
  <tool2>: <string|mapping>
  ...

results matching ""

    No results matching ""