Skip to content

Commit e618d7c

Browse files
author
Miguel Varela Ramos
committed
Exclude common folders from the linting script
1 parent df9d782 commit e618d7c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build/lint.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ fi
7171
output=$(cd "$ROOT" && find . -type f \
7272
! -path "./vendor/*" \
7373
! -path "**/.vscode/*" \
74+
! -path "**/.idea/*" \
75+
! -path "**/.history/*" \
7476
! -path "**/__pycache__/*" \
7577
! -path "./examples/*" \
7678
! -path "./dev/config/*" \
@@ -97,6 +99,8 @@ if [ "$is_release_branch" = "true" ]; then
9799
! -path "./build/lint.sh" \
98100
! -path "./vendor/*" \
99101
! -path "**/.vscode/*" \
102+
! -path "**/.idea/*" \
103+
! -path "**/.history/*" \
100104
! -path "**/__pycache__/*" \
101105
! -path "./docs/contributing/development.md" \
102106
! -path "./dev/config/*" \
@@ -118,6 +122,8 @@ if [ "$is_release_branch" = "true" ]; then
118122
! -path "./dev/*" \
119123
! -path "./vendor/*" \
120124
! -path "**/.vscode/*" \
125+
! -path "**/.idea/*" \
126+
! -path "**/.history/*" \
121127
! -path "**/__pycache__/*" \
122128
! -path "./dev/config/*" \
123129
! -path "./bin/*" \
@@ -181,6 +187,8 @@ fi
181187
# Check for trailing whitespace
182188
output=$(cd "$ROOT" && find . -type f \
183189
! -path "./vendor/*" \
190+
! -path "**/.idea/*" \
191+
! -path "**/.history/*" \
184192
! -path "**/.vscode/*" \
185193
! -path "**/__pycache__/*" \
186194
! -path "./dev/config/*" \
@@ -198,6 +206,8 @@ fi
198206
# Check for missing new line at end of file
199207
output=$(cd "$ROOT" && find . -type f \
200208
! -path "./vendor/*" \
209+
! -path "**/.idea/*" \
210+
! -path "**/.history/*" \
201211
! -path "**/.vscode/*" \
202212
! -path "**/__pycache__/*" \
203213
! -path "./dev/config/*" \
@@ -216,6 +226,8 @@ fi
216226
output=$(cd "$ROOT" && find . -type f \
217227
! -path "./vendor/*" \
218228
! -path "**/.vscode/*" \
229+
! -path "**/.idea/*" \
230+
! -path "**/.history/*" \
219231
! -path "**/__pycache__/*" \
220232
! -path "./dev/config/*" \
221233
! -path "./bin/*" \
@@ -232,6 +244,8 @@ fi
232244
# Check for new line(s) at beginning of file
233245
output=$(cd "$ROOT" && find . -type f \
234246
! -path "./vendor/*" \
247+
! -path "**/.idea/*" \
248+
! -path "**/.history/*" \
235249
! -path "**/.vscode/*" \
236250
! -path "**/__pycache__/*" \
237251
! -path "./dev/config/*" \

0 commit comments

Comments
 (0)