From ddf2a7155f7d4eb341d2082677d0cb6d92e3c213 Mon Sep 17 00:00:00 2001 From: Bill Berry Date: Mon, 2 Feb 2026 15:50:57 -0800 Subject: [PATCH 1/3] feat(tools): add .shellcheckrc for ShellCheck configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add root-level .shellcheckrc with SC1091 global exclusion - configure MegaLinter BASH_SHELLCHECK_CONFIG_FILE 🔧 - Generated by Copilot --- .mega-linter.yml | 3 +++ .shellcheckrc | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .shellcheckrc diff --git a/.mega-linter.yml b/.mega-linter.yml index 595aa61d..bddbc83d 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -101,6 +101,9 @@ AZURE_COMMENT_REPORTER: true # LINTER SPECIFIC CONFIGURATION # ---------------------------------------- +# ShellCheck configuration +BASH_SHELLCHECK_CONFIG_FILE: .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 From 0088a2e44d15c3feea23c5b8267e94bf9512112c Mon Sep 17 00:00:00 2001 From: Bill Berry Date: Mon, 2 Feb 2026 18:29:00 -0800 Subject: [PATCH 2/3] fix(build): remove invalid shellcheck config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 - Generated by Copilot --- .mega-linter.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.mega-linter.yml b/.mega-linter.yml index bddbc83d..506d65fd 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -101,8 +101,7 @@ AZURE_COMMENT_REPORTER: true # LINTER SPECIFIC CONFIGURATION # ---------------------------------------- -# ShellCheck configuration -BASH_SHELLCHECK_CONFIG_FILE: .shellcheckrc +# ShellCheck reads .shellcheckrc automatically from workdir # Markdown Table Formatter configuration - treat warnings as errors MARKDOWN_MARKDOWN_TABLE_FORMATTER_DISABLE_ERRORS: false From d01ddaffb66603aac2efd7b3acaff1ab99da3028 Mon Sep 17 00:00:00 2001 From: Bill Berry Date: Mon, 2 Feb 2026 20:46:29 -0800 Subject: [PATCH 3/3] chore(build): set ShellCheck rcfile argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 - Generated by Copilot --- .mega-linter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.mega-linter.yml b/.mega-linter.yml index 506d65fd..d2be5670 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -101,7 +101,8 @@ AZURE_COMMENT_REPORTER: true # LINTER SPECIFIC CONFIGURATION # ---------------------------------------- -# ShellCheck reads .shellcheckrc automatically from workdir +# ShellCheck rc file +BASH_SHELLCHECK_ARGUMENTS: "--rcfile .shellcheckrc" # Markdown Table Formatter configuration - treat warnings as errors MARKDOWN_MARKDOWN_TABLE_FORMATTER_DISABLE_ERRORS: false