diff --git a/.mega-linter.yml b/.mega-linter.yml index 595aa61d..d2be5670 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -101,6 +101,9 @@ AZURE_COMMENT_REPORTER: true # LINTER SPECIFIC CONFIGURATION # ---------------------------------------- +# ShellCheck rc file +BASH_SHELLCHECK_ARGUMENTS: "--rcfile .shellcheckrc" + # Markdown Table Formatter configuration - treat warnings as errors MARKDOWN_MARKDOWN_TABLE_FORMATTER_DISABLE_ERRORS: false MARKDOWN_MARKDOWN_TABLE_FORMATTER_FILTER_REGEX_EXCLUDE: '(\.copilot-tracking/.*)' diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 00000000..30f12682 --- /dev/null +++ b/.shellcheckrc @@ -0,0 +1,16 @@ +# ShellCheck configuration for edge-ai repository +# https://github.com/koalaman/shellcheck/wiki/Ignore +# +# Conventions: +# - Scripts use #!/usr/bin/env bash and strict mode (set -e -o pipefail) +# - Terraform-generated scripts have templatefile variables +# - External sourced files may not be available during linting + +# Default shell dialect +shell=bash + +# Disable codes for project-wide patterns +# SC1091: Not following sourced files +# - Terraform templatefile() scripts source external configs +# - Sourced files may not exist at lint time +disable=SC1091