Skip to content

Commit

Permalink
pw_presubmit: Remove shellcheck from lintformat program
Browse files Browse the repository at this point in the history
This is failing on Pigweed, but most of us don't notice because we don't
have shellcheck installed so it isn't run. Also, shellcheck is too
defensive—we don't need to handle arbitrary variable values when we set
the variable ourselves a few lines above.

Leaving it in so downstream projects can use it if they want, and people
working on Pigweed can still manually run it.

Change-Id: I02e54cc74d9de8ed777fc580a3d0ab659281ebcf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/213617
Pigweed-Auto-Submit: Rob Mohr <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Lint: Lint 🤖 <[email protected]>
Reviewed-by: Armando Montanez <[email protected]>
  • Loading branch information
mohrr authored and CQ Bot Account committed Jun 4, 2024
1 parent 81b6bdb commit 4be3dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,7 @@ def owners_lint_checks(ctx: PresubmitContext):
pw_transfer_integration_test,
python_checks.update_upstream_python_constraints,
python_checks.vendor_python_wheels,
shell_checks.shellcheck,
# TODO(hepler): Many files are missing from the CMake build. Add this check
# to lintformat when the missing files are fixed.
source_in_build.cmake(SOURCE_FILES_FILTER, _run_cmake),
Expand Down Expand Up @@ -1476,7 +1477,6 @@ def owners_lint_checks(ctx: PresubmitContext):
SOURCE_FILES_FILTER_GN_EXCLUDE
),
source_is_in_cmake_build_warn_only,
shell_checks.shellcheck if shutil.which('shellcheck') else (),
javascript_checks.eslint if shutil.which('npm') else (),
json_check.presubmit_check,
keep_sorted.presubmit_check,
Expand Down

0 comments on commit 4be3dbc

Please sign in to comment.