@digitoimistodude/code-quality-checks 2.1.1 → 2.1.2

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/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.1 (2026-01-09)"
5
+ VERSION="2.1.2 (2026-01-09)"
6
6
 
7
7
  # Load configuration
8
8
  # First check for local project config, then fall back to package default
@@ -391,13 +391,15 @@ if [ "$CONTEXT" = "dudestack" ]; then
391
391
  # Check Theme Name line
392
392
  theme_name_line=$(grep "^Theme Name:" "${theme_dir}style.css" 2>/dev/null || echo "")
393
393
  if [ -n "$theme_name_line" ]; then
394
- # Check if theme name contains lowercase theme name
395
- if echo "$theme_name_line" | grep -qi "Theme Name:.*$theme_name"; then
394
+ # Extract the actual theme name value after "Theme Name:"
395
+ theme_name_value=$(echo "$theme_name_line" | sed 's/^Theme Name:[[:space:]]*//')
396
+
397
+ # Check if theme name starts with lowercase letter (should be capitalized)
398
+ if echo "$theme_name_value" | grep -q "^[a-z]"; then
396
399
  echo "${RED}${CROSS} FAILED${NC}"
397
- echo " ${RED}Theme Name contains lowercase theme name '$theme_name'${NC}"
400
+ echo " ${RED}Theme Name should start with a capital letter${NC}"
398
401
  echo " ${YELLOW}Found: $theme_name_line${NC}"
399
- echo " ${YELLOW}Should contain a clear theme name in sentence case${NC}"
400
- echo " ${YELLOW}Example: Theme Name: My Website Theme${NC}"
402
+ echo " ${YELLOW}Should be properly capitalized${NC}"
401
403
  echo " ${BLUE}nano ${theme_dir}style.css${NC}"
402
404
  exit 1
403
405
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitoimistodude/code-quality-checks",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Code quality definitions and Husky pre-commit hooks for Dude WordPress projects",
5
5
  "main": "index.js",
6
6
  "files": [