-
-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use shellcheck (via pantsbuild) #5751
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
shell_source( | ||
source="send_mail", | ||
skip_shellcheck=True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
python_sources() | ||
|
||
shell_sources( | ||
name="actions0", | ||
name="shell", | ||
skip_shellcheck=True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
shell_sources() | ||
shell_sources(skip_shellcheck=True) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
shell_sources() | ||
shell_sources( | ||
overrides={ | ||
"random2.sh": {"skip_shellcheck": True}, | ||
}, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
python_sources() | ||
|
||
shell_sources( | ||
name="actions0", | ||
name="shell", | ||
skip_shellcheck=True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
python_sources() | ||
|
||
shell_sources( | ||
name="scripts0", | ||
name="shell", | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
shell_sources() | ||
python_sources( | ||
sources=["st2*"], | ||
) | ||
|
||
shell_sources( | ||
name="shell", | ||
skip_shellcheck=True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python_sources( | ||
sources=["st2*"], | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python_sources( | ||
sources=["st2*"], | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
python_sources() | ||
python_sources( | ||
sources=["*.py", "st2*", "!st2ctl", "!st2-self-check", "!st2-run-pack-tests"], | ||
) | ||
|
||
shell_sources( | ||
name="shell", | ||
sources=["st2ctl", "st2-self-check", "st2-run-pack-tests"], | ||
Comment on lines
+1
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Notice how I've got the |
||
skip_shellcheck=True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
python_sources() | ||
|
||
shell_sources( | ||
name="v2.10", | ||
name="shell", | ||
skip_shellcheck=True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# TODO: what to do about st2-migrate-db-dict-field-values ? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this to be resolved in another PR? Just checking this TODO is still relevant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah. The TODO is still relevant. I'm not sure how best to handle the symlink - so I'm punting. 🤷 |
||
# st2_migrate_db_dict_field_values.py is a symlink to st2-migrate-db-dict-field-values | ||
python_sources() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
python_sources() | ||
|
||
shell_sources( | ||
name="fixtures0", | ||
name="shell", | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python_sources( | ||
sources=["st2*"], | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python_sources( | ||
sources=["st2*"], | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
shell_sources() | ||
shell_sources( | ||
name="shell", | ||
skip_shellcheck=True, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
shell_sources() | ||
shell_sources(skip_shellcheck=True) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
python_sources() | ||
|
||
shell_sources( | ||
name="tools0", | ||
name="shell", | ||
sources=[ | ||
"*.sh", | ||
"st2-setup-*", | ||
], | ||
skip_shellcheck=True, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a very simple way I could show off the
overrides
feature of pants.random.sh
passes shellcheck, butrandom2.sh
does not. This way we skip running shellcheck on as few files as possible.