Commit 74d21d4
authored
chore: Enable shellcheck in prek (pre-commit) (#155)
### Summary
Enables shellcheck linter in prek and fixes current issues.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- New Features
- None.
- Bug Fixes
- Improved reliability of shell scripts by quoting variables to prevent
word splitting and globbing.
- Documentation build now correctly forwards user-supplied arguments and
handles paths with spaces.
- Superset initialisation scripts handle special characters and spaces
in credentials and database names.
- Chores
- Added a ShellCheck pre-commit hook to automatically lint shell scripts
and prevent common errors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 2047b64 commit 74d21d4
4 files changed
Lines changed: 15 additions & 19 deletions
File tree
- docs
- infra
- ansible-docker/roles/superset/templates/docker
- local/superset/docker
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 46 | | |
57 | 47 | | |
58 | 48 | | |
59 | 49 | | |
60 | 50 | | |
61 | 51 | | |
62 | 52 | | |
| 53 | + | |
63 | 54 | | |
64 | 55 | | |
65 | 56 | | |
| 57 | + | |
66 | 58 | | |
67 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
0 commit comments