@digitoimistodude/code-quality-checks 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.husky/commit-msg CHANGED
@@ -99,11 +99,10 @@ if [ -f "$commit_msg_file" ]; then
99
99
  # Check for uncommitted files
100
100
  uncommitted_files=$(git status --porcelain | wc -l | tr -d ' ')
101
101
  if [ "$uncommitted_files" -gt 0 ]; then
102
- if [ "$uncommitted_files" -ge 10 ]; then
103
- echo "${GREEN}║${NC} ${GREEN}• You have $uncommitted_files uncommitted files${NC}$(printf '%*s' 27 '')${GREEN}║${NC}"
104
- else
105
- echo "${GREEN}║${NC} ${GREEN}• You have $uncommitted_files uncommitted files${NC}$(printf '%*s' 27 '')${GREEN}║${NC}"
106
- fi
102
+ local msg="• You have $uncommitted_files uncommitted files"
103
+ local msg_len=${#msg}
104
+ local padding=$((56 - msg_len))
105
+ echo "${GREEN}║${NC} ${GREEN}${msg}${NC}$(printf '%*s' $padding '')${GREEN}║${NC}"
107
106
  fi
108
107
 
109
108
  # Check current branch
package/.husky/pre-commit CHANGED
@@ -2,7 +2,7 @@
2
2
  # Ref: DEV-177, DEV-373, DEV-623
3
3
 
4
4
  # Version:
5
- VERSION="2.1.3 (2026-01-09)"
5
+ VERSION="2.1.6 (2026-01-15)"
6
6
 
7
7
  # Load configuration
8
8
  # First check for local project config, then fall back to package default
@@ -740,7 +740,7 @@ if [ -n "$scss_files" ]; then
740
740
  original_dir=$(pwd)
741
741
  cd "$theme_dir_for_stylelint" || exit 1
742
742
 
743
- if ! $stylelint_cmd --config "$stylelint_config" $relative_scss_files 2>/dev/null; then
743
+ if ! $stylelint_cmd --config "$stylelint_config" --max-warnings 0 $relative_scss_files 2>/dev/null; then
744
744
  cd "$original_dir" || exit 1
745
745
  echo "${RED}${CROSS} FAILED${NC}"
746
746
  echo " ${RED}Stylelint found errors in SCSS files${NC}"
@@ -760,7 +760,7 @@ if [ -n "$scss_files" ]; then
760
760
  fi
761
761
  else
762
762
  # Standalone: run from current directory
763
- if ! $stylelint_cmd --config "$stylelint_config" $scss_files 2>/dev/null; then
763
+ if ! $stylelint_cmd --config "$stylelint_config" --max-warnings 0 $scss_files 2>/dev/null; then
764
764
  echo "${RED}${CROSS} FAILED${NC}"
765
765
  echo " ${RED}Stylelint found errors in SCSS files${NC}"
766
766
  echo " ${YELLOW}Please fix the following files:${NC}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitoimistodude/code-quality-checks",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Code quality definitions and Husky pre-commit hooks for Dude WordPress projects",
5
5
  "main": "index.js",
6
6
  "scripts": {