You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve shell script quality and fix review issues
Address GitHub Copilot code quality recommendations from PR #2
along with additional independent improvements to shell scripting
best practices across all compile and run scripts.
Changes from GitHub Copilot review:
- Quote environment variables in commands (JAVA_HOME paths)
- Convert single-quoted echo statements to double-quoted for
variable expansion (9 files)
Additional improvements:
- SC2086: Add shellcheck disable comments for option variables
(JAVAC_OPTIONS, JAR_OPTIONS, JAVA_OPTIONS) which must not be
quoted to allow word splitting and empty values
- SC2046: Add shellcheck disable comments for $(find ...) in
javac commands - these must remain unquoted for proper word
splitting of individual file arguments (43 files)
- SC2006: Replace deprecated backtick syntax with $(...) in
example_naming-modules/compile.sh
- SC2010: Replace 'ls | grep' with glob patterns and regex
matching in example_naming-modules/compile.sh
- SC2164: Add error handling (|| exit) to pushd/popd/cd (116 instances)
- Quote loop variables and result directories for safe handling
of filenames with special characters
Total files modified: ~150+ shell scripts
Note: Scripts have improved significantly but are not entirely
clean - shellcheck still reports some warnings that require
further investigation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Introduced in the course of support-and-care/maven-support-and-care#137
# Note that the --add-reads options are not necessary for compile (but they *are* necessary for running): --add-modules implicitely enforces --add-reads
# compile modmain: (add-read from modb -> modc , and add-export of modb/pkgb -> modmain)
25
27
# Note that the --add-reads options are not necessary for compile (but they *are* necessary for running): --add-modules implicitely enforces --add-reads
0 commit comments