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
This reverts commit c23104f.
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