Skip to content

Conversation

@amberpixels
Copy link
Owner

No description provided.

amberpixels and others added 4 commits June 9, 2025 23:13
- Fix all shellcheck warnings (SC2155, SC2129, SC2015, SC1091, SC2034)
  - Separate variable declaration and assignment to avoid masking return values
  - Group multiple file redirects using brace syntax for better performance
  - Replace ambiguous A && B || C patterns with explicit if-then statements
  - Add shellcheck disable directives for unavoidable warnings
  - Export or properly handle unused variables

- Reorganize scripts directory structure for better separation of concerns
  - Move colors.sh and common.sh to scripts/src/ alongside template files
  - Update all path references in build.sh and source templates
  - Refactor _get_script_dir function to handle new common.sh location

- Standardize color variable usage by removing duplicate RESET/NC variables
  - Remove RESET variable and use NC consistently across all scripts
  - Update all template files and logging functions

- Add shellcheck task to Makefile as 'make sc' for continuous quality checking
  - Includes proper error handling to not fail build on warnings
  - Covers all shell script types (.sh, .bash, .zsh)

- Improve zsh hook file compatibility
  - Add proper shebang to git-undo-hook.zsh
  - Disable shellcheck for zsh-specific syntax not supported by shellcheck
@amberpixels amberpixels self-assigned this Jun 13, 2025
@amberpixels amberpixels changed the title Feature/elwood Refactor: reorganize how shell scripts are structured Jun 13, 2025
@amberpixels amberpixels merged commit c5b8ee3 into main Jun 13, 2025
1 of 2 checks passed
amberpixels pushed a commit that referenced this pull request Jun 13, 2025
* refactor: scripts/src files to be separated

* refactor: improve shell script quality and organization

- Fix all shellcheck warnings (SC2155, SC2129, SC2015, SC1091, SC2034)
  - Separate variable declaration and assignment to avoid masking return values
  - Group multiple file redirects using brace syntax for better performance
  - Replace ambiguous A && B || C patterns with explicit if-then statements
  - Add shellcheck disable directives for unavoidable warnings
  - Export or properly handle unused variables

- Reorganize scripts directory structure for better separation of concerns
  - Move colors.sh and common.sh to scripts/src/ alongside template files
  - Update all path references in build.sh and source templates
  - Refactor _get_script_dir function to handle new common.sh location

- Standardize color variable usage by removing duplicate RESET/NC variables
  - Remove RESET variable and use NC consistently across all scripts
  - Update all template files and logging functions

- Add shellcheck task to Makefile as 'make sc' for continuous quality checking
  - Includes proper error handling to not fail build on warnings
  - Covers all shell script types (.sh, .bash, .zsh)

- Improve zsh hook file compatibility
  - Add proper shebang to git-undo-hook.zsh
  - Disable shellcheck for zsh-specific syntax not supported by shellcheck

* cleanup
amberpixels added a commit that referenced this pull request Jun 13, 2025
* refactor: scripts/src files to be separated

* refactor: improve shell script quality and organization

- Fix all shellcheck warnings (SC2155, SC2129, SC2015, SC1091, SC2034)
  - Separate variable declaration and assignment to avoid masking return values
  - Group multiple file redirects using brace syntax for better performance
  - Replace ambiguous A && B || C patterns with explicit if-then statements
  - Add shellcheck disable directives for unavoidable warnings
  - Export or properly handle unused variables

- Reorganize scripts directory structure for better separation of concerns
  - Move colors.sh and common.sh to scripts/src/ alongside template files
  - Update all path references in build.sh and source templates
  - Refactor _get_script_dir function to handle new common.sh location

- Standardize color variable usage by removing duplicate RESET/NC variables
  - Remove RESET variable and use NC consistently across all scripts
  - Update all template files and logging functions

- Add shellcheck task to Makefile as 'make sc' for continuous quality checking
  - Includes proper error handling to not fail build on warnings
  - Covers all shell script types (.sh, .bash, .zsh)

- Improve zsh hook file compatibility
  - Add proper shebang to git-undo-hook.zsh
  - Disable shellcheck for zsh-specific syntax not supported by shellcheck

* cleanup
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.

2 participants