# Shell beta

Shell Analyzer analyzes your shell scripts and raises issues if something is wrong with it. It points out bugs and syntax issues with a detailed explanation of how to fix it.

This section covers configuration specific to the Shell analyzer. Please make sure to read the general configuration guide first.

# Configuration - .deepsource.toml

# name

name = "shell"

# enabled

enabled = true

# meta

  • Type: Table (opens new window)
  • Presence: optional
  • Description: Analyzer specific metadata to tweak its behavior. These values are used to customize the checkers.
  • Example:
[analyzers.meta]
  dialect = "bash"

# Available meta field

# dialect

  • Type: String (opens new window)
  • Presence: optional
  • Description: UNIX shell on which the script is supposed to be run.
  • Available Value: sh, bash, dash and ksh.
  • Default Value: Deduce the shell from the file's shell directive or the shebang line.
  • Example:
[analyzers.meta]
  dialect = "sh"

# Sample config

version = 1

[[analyzers]]
name = "shell"
enabled = true

  [analyzers.meta]
    dialect = "zsh"
Last Updated: 10/17/2020, 1:48:35 PM