Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 2.26 KB

File metadata and controls

51 lines (34 loc) · 2.26 KB

Linting and Formatting

Requirements

Configuration

Markdown

MarkdownLint uses .markdownlint-cli2.jsonc to configure the markdown linting rules and to ignore linting for specific files and paths. See https://github.com/DavidAnson/markdownlint-cli2/tree/main?tab=readme-ov-file#markdownlint-cli2jsonc

Shell

ShellCheck uses .shellcheckrc to configure linting rules. The following rules are disabled project-wide:

Rule Reason
SC1091 Suppresses "not following" warnings for sourced files (e.g. reset_env_variables.sh)
SC2153 Suppresses false-positive variable name misspelling warnings
SC2317 Suppresses unreachable-command false positives in trap/signal handlers

external-sources=true is also set to allow ShellCheck to follow sourced files when they are available.

See https://github.com/koalaman/shellcheck/wiki/Checks

Continuous Integration

Linting is automatically run in CI/CD via the Code Quality workflow on pull requests to main. For detailed information about the CI linting process, see the Test Workflow Documentation.