Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:
# v1.2+: Harmony check with automatic exit codes
# Note: Currently informational as source has some disharmony
# (This demonstrates the tool working - it found semantic issues!)
find harmonizer -name "*.py" -type f | xargs harmonizer || echo "⚠️ Disharmony found (tool is working correctly!)"
find harmonizer -name "*.py" -type f -print0 | xargs -0 harmonizer || echo "⚠️ Disharmony found (tool is working correctly!)"
continue-on-error: true
8 changes: 4 additions & 4 deletions .github/workflows/harmony-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# Exit codes: 0=harmonious, 1=medium, 2=high, 3=critical
# Note: Currently informational as source code itself has some disharmony
# (main.py functions do more than their names suggest - great meta example!)
find harmonizer -name "*.py" -type f | xargs harmonizer || {
find harmonizer -name "*.py" -type f -print0 | xargs -0 harmonizer || {
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "⚠️ Source code has disharmony (demonstrates tool working!)"
echo " This is a great example of semantic issues the tool catches."
Expand All @@ -50,7 +50,7 @@ jobs:
echo "📊 Checking Test Code Harmony (informational only)..."

# For tests, we allow higher disharmony (don't fail the build)
find tests -name "*.py" -type f | xargs harmonizer || echo "⚠️ Test code has some disharmony (acceptable)"
find tests -name "*.py" -type f -print0 | xargs -0 harmonizer || echo "⚠️ Test code has some disharmony (acceptable)"
continue-on-error: true

# Job 2: Detailed JSON Report with Artifact
Expand All @@ -76,7 +76,7 @@ jobs:
echo "📋 Generating detailed JSON harmony report..."

# Generate JSON report for all Python files
find harmonizer examples tests -name "*.py" -type f | xargs harmonizer --format json > harmony-report.json 2>/dev/null || true
find harmonizer examples tests -name "*.py" -type f -print0 | xargs -0 harmonizer --format json > harmony-report.json 2>/dev/null || true

# Display summary if report was generated
if [ -f harmony-report.json ] && [ -s harmony-report.json ]; then
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:

# Use stricter threshold (0.3 instead of default 0.5)
# This catches even minor semantic drift
if find harmonizer -name "*.py" -type f | xargs harmonizer --threshold 0.3; then
if find harmonizer -name "*.py" -type f -print0 | xargs -0 harmonizer --threshold 0.3; then
echo "✅ Code meets excellent harmony standards!"
else
echo ""
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ljpw_gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .

- name: Run LJPW Harmony Check
run: |
Expand Down