File tree Expand file tree Collapse file tree 3 files changed +39
-7
lines changed Expand file tree Collapse file tree 3 files changed +39
-7
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,5 @@ Note: E2E tests are excluded from pre-commit checks as they are slow and require
152
152
ALWAYS run the linting suite before committing any changes:
153
153
154
154
``` bash
155
- markdownlint " **/*.md"
156
- yamllint -c .yamllint-ci.yml .
155
+ ./script/lint
157
156
```
Original file line number Diff line number Diff line change 22
22
sudo apt-get install -y yamllint
23
23
sudo npm install -g markdownlint-cli
24
24
25
- - name : Run markdown linting
26
- run : markdownlint "**/*.md"
27
-
28
- - name : Run yaml linting
29
- run : yamllint -c .yamllint-ci.yml .
25
+ - name : Run linting
26
+ run : ./script/lint
30
27
test :
31
28
runs-on : ubuntu-latest
32
29
name : Test
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Unified lint script for running all linters
4
+ # Usage: ./script/lint
5
+ #
6
+ # This script runs all configured linters for the project:
7
+ # - markdownlint for Markdown files
8
+ # - yamllint for YAML files
9
+
10
+ set -e
11
+
12
+ echo " Running all linters..."
13
+
14
+ # Check if markdownlint is available
15
+ if ! command -v markdownlint & > /dev/null; then
16
+ echo " Error: markdownlint is not installed. Please install it with:"
17
+ echo " npm install -g markdownlint-cli"
18
+ exit 1
19
+ fi
20
+
21
+ # Check if yamllint is available
22
+ if ! command -v yamllint & > /dev/null; then
23
+ echo " Error: yamllint is not installed. Please install it with:"
24
+ echo " pip install yamllint"
25
+ echo " # or on Ubuntu/Debian:"
26
+ echo " sudo apt-get install yamllint"
27
+ exit 1
28
+ fi
29
+
30
+ echo " Running markdown linting..."
31
+ markdownlint " **/*.md"
32
+
33
+ echo " Running yaml linting..."
34
+ yamllint -c .yamllint-ci.yml .
35
+
36
+ echo " All linters passed successfully!"
You can’t perform that action at this time.
0 commit comments