Skip to content

Commit 11989ed

Browse files
authored
Merge pull request #5751: Use shellcheck (via pantsbuild)
2 parents 8fb4d28 + beae45f commit 11989ed

File tree

21 files changed

+63
-13
lines changed

21 files changed

+63
-13
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Added
5353

5454
* Begin introducing `pants <https://www.pantsbuild.org/docs>`_ to improve DX (Developer Experience)
5555
working on StackStorm, improve our security posture, and improve CI reliability thanks in part
56-
to pants' use of PEX lockfiles. This is not a user-facing addition. #5713 #5724 #5726 #5725 #5732 #5733 #5737 #5738 #5758
56+
to pants' use of PEX lockfiles. This is not a user-facing addition. #5713 #5724 #5726 #5725 #5732 #5733 #5737 #5738 #5758 #5751
5757
Contributed by @cognifloyd
5858

5959
Changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
shell_source(
2+
source="send_mail",
3+
skip_shellcheck=True,
4+
)

contrib/examples/actions/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python_sources()
22

33
shell_sources(
4-
name="actions0",
4+
name="shell",
5+
skip_shellcheck=True,
56
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
shell_sources()
1+
shell_sources(skip_shellcheck=True)
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
shell_sources()
1+
shell_sources(
2+
overrides={
3+
"random2.sh": {"skip_shellcheck": True},
4+
},
5+
)

contrib/linux/actions/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python_sources()
22

33
shell_sources(
4-
name="actions0",
4+
name="shell",
5+
skip_shellcheck=True,
56
)

pants.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ backend_packages = [
1515

1616
# shell
1717
"pants.backend.shell",
18+
"pants.backend.shell.lint.shellcheck",
1819
]
1920
# pants ignores files in .gitignore, .*/ directories, /dist/ directory, and __pycache__.
2021
pants_ignore.add = [

scripts/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
python_sources()
22

33
shell_sources(
4-
name="scripts0",
4+
name="shell",
55
)

st2actions/bin/BUILD

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
shell_sources()
1+
python_sources(
2+
sources=["st2*"],
3+
)
4+
5+
shell_sources(
6+
name="shell",
7+
skip_shellcheck=True,
8+
)

st2api/bin/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_sources(
2+
sources=["st2*"],
3+
)

0 commit comments

Comments
 (0)