Skip to content

Commit 647c64e

Browse files
authored
Remove shellcheck linting (open-telemetry#15463)
1 parent edf94c6 commit 647c64e

12 files changed

+0
-46
lines changed

.github/scripts/check-javaagent-suppression-keys.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash -e
22

3-
# shellcheck disable=SC2044
43
for file in $(find instrumentation -name "*Module.java"); do
54

65
if ! grep -q "extends InstrumentationModule" "$file"; then
@@ -11,9 +10,7 @@ for file in $(find instrumentation -name "*Module.java"); do
1110
continue
1211
fi
1312

14-
# shellcheck disable=SC2001
1513
module_name=$(echo "$file" | sed 's#.*/\([^/]*\)/javaagent/src/.*#\1#')
16-
# shellcheck disable=SC2001
1714
simple_module_name=$(echo "$module_name" | sed 's/-[0-9.]*$//')
1815

1916
if [[ "$simple_module_name" == *jaxrs* ]]; then

.github/scripts/check-package-names.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash -e
22

3-
# shellcheck disable=SC2001
4-
53
for dir in $(find instrumentation -name "*.java" | grep library/src/main/java | sed 's#/[^/]*$##' | sort -u); do
64

75
module_name=$(echo "$dir" | sed 's#.*/\([^/]*\)/library/src/main/java/.*#\1#')

.github/scripts/diff-suppression-keys-with-docs.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ curl https://raw.githubusercontent.com/open-telemetry/opentelemetry.io/main/cont
99

1010
comm -3 \
1111
<(
12-
# shellcheck disable=SC2016 # "Expressions don't expand in single quotes"
1312
sed -n '/----------------------/,${p;/^$/q}' agent-config.md \
1413
| sed '1d;$d' \
1514
| cut -d '|' -f 3 \

.github/scripts/generate-release-contributors.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ from=$(git log --reverse --pretty=format:"%cI" "$from_version..HEAD" | head -1)
1515
# get the last commit on main that was included in the release
1616
to=$(git merge-base origin/main HEAD | xargs git log -1 --pretty=format:"%cI")
1717

18-
# shellcheck disable=SC2016 # "Expressions don't expand in single quotes"
1918
contributors1=$(gh api graphql --paginate -F q="repo:$GITHUB_REPOSITORY is:pr base:main is:merged merged:$from..$to" -f query='
2019
query($q: String!, $endCursor: String) {
2120
search(query: $q, type: ISSUE, first: 100, after: $endCursor) {
@@ -53,7 +52,6 @@ query($q: String!, $endCursor: String) {
5352

5453
# this query captures authors of issues which have had PRs in the current range reference the issue
5554
# but not necessarily through closingIssuesReferences (e.g. addressing just a part of an issue)
56-
# shellcheck disable=SC2016 # "Expressions don't expand in single quotes"
5755
contributors2=$(gh api graphql --paginate -F q="repo:$GITHUB_REPOSITORY is:pr base:main is:merged merged:$from..$to" -f query='
5856
query($q: String!, $endCursor: String) {
5957
search(query: $q, type: ISSUE, first: 100, after: $endCursor) {

.github/scripts/static-import-semconv-constants.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash -e
22

3-
# shellcheck disable=SC2044
43
for file in $(find instrumentation instrumentation-api -name '*Test.java'); do
54
echo "Processing $file"
65

.github/workflows/build-daily.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
muzzle:
2626
uses: ./.github/workflows/reusable-muzzle.yml
2727

28-
shell-script-check:
29-
uses: ./.github/workflows/reusable-shell-script-check.yml
30-
3128
link-check:
3229
uses: ./.github/workflows/reusable-link-check.yml
3330

.github/workflows/build-pull-request.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ jobs:
4040
with:
4141
cache-read-only: true
4242

43-
shell-script-check:
44-
uses: ./.github/workflows/reusable-shell-script-check.yml
45-
4643
# this is not a required check to avoid blocking pull requests if external links break
4744
markdown-check:
4845
# release branches are excluded because the README.md javaagent download link has to be updated
@@ -66,7 +63,6 @@ jobs:
6663
needs:
6764
- common
6865
- muzzle
69-
- shell-script-check
7066
- markdown-lint-check
7167
runs-on: ubuntu-latest
7268
if: always()
@@ -77,7 +73,6 @@ jobs:
7773
!startsWith(github.base_ref, 'release/') &&
7874
(
7975
needs.muzzle.result != 'success' ||
80-
needs.shell-script-check.result != 'success' ||
8176
needs.markdown-lint-check.result != 'success'
8277
)
8378
)

.github/workflows/build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ jobs:
3434
if: "!startsWith(github.ref_name, 'release/')"
3535
uses: ./.github/workflows/reusable-muzzle.yml
3636

37-
shell-script-check:
38-
# release branches are excluded to avoid unnecessary maintenance if new shell checks are added
39-
if: "!startsWith(github.ref_name, 'release/')"
40-
uses: ./.github/workflows/reusable-shell-script-check.yml
41-
4237
link-check:
4338
# release branches are excluded to avoid unnecessary maintenance if external links break
4439
# (and also because the README.md javaagent download link has to be updated on release branches

.github/workflows/reusable-shell-script-check.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

instrumentation-docs/ci-collect.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
set -euo pipefail
77

8-
# shellcheck source=instrumentation-docs/instrumentations.sh
98
source "$(dirname "$0")/instrumentations.sh"
109

1110
# Collect standard and colima tasks (without testLatestDeps)

0 commit comments

Comments
 (0)