Skip to content

NUTCH-3197 Yetus: fix real precommit defects (shell, Docker, shelldocs) - #958

Open
lewismc wants to merge 2 commits into
apache:masterfrom
lewismc:NUTCH-3197
Open

NUTCH-3197 Yetus: fix real precommit defects (shell, Docker, shelldocs)#958
lewismc wants to merge 2 commits into
apache:masterfrom
lewismc:NUTCH-3197

Conversation

@lewismc

@lewismc lewismc commented Aug 16, 2026

Copy link
Copy Markdown
Member

PR for NUTCH-3197

Follow-up to NUTCH-3196 (Child A: Yetus false-positive baselines). This is Child B of the Yetus master precommit initiative: fix real defects the gate correctly reported, without taking on historical style debt (Child C) or shellcheck warnings/notes (Child D).

Fork: lewismc/nutchapache/nutch (replaces incorrectly opened #956 from upstream branch).

Summary

  • Fix 11 shellcheck errors in src/bin/crawl and src/bin/nutch (SC2071, SC2144, SC2242, SC2145) with behavior-preserving edits
  • Fix SC2006 on cygpath line introduced by the SC2144 refactor ($(...) instead of backticks)
  • Add @audience / @stability shelldocs annotations to five helper functions in src/bin/crawl
  • Restructure docker/Dockerfile for hadolint (combined RUNs, quoting); waive DL3018 via .hadolint.yaml
  • Exclude src/plugin/parse-js/sample/ from jshint via .yetus/excludes.txt (test fixture, not production JS)

Product codespell typos are in a linked follow-up PR from the same fork.

Out of scope (sibling issues)

  • Historical blanks/tabs, @author, markdownlint → Child C (NUTCH-3198)
  • Shellcheck warnings/notes in bin scripts → Child D (NUTCH-3199)
  • Product codespell typos → linked PR from NUTCH-3197-codespell

Test plan

  • ant clean runtime test
  • shellcheck -S error src/bin/crawl src/bin/nutch — no errors
  • Yetus CI clears shellcheck, shelldocs, hadolint, jshint on changed lines

…ocs)

Child B of the Yetus master precommit initiative (follows NUTCH-3196).
Fix shellcheck errors in bin/crawl and bin/nutch, add shelldocs annotations,
restructure docker/Dockerfile for hadolint, exclude parse-js test sample
from jshint, and waive DL3018 apk pinning via .hadolint.yaml.
…tion refactor

Replace legacy backticks with $() on the cygpath assignment moved into the
for-loop by the SC2144 fix so Yetus patch mode no longer reports a new
shellcheck note on PR 956.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant