agentic-loop 3.2.6 → 3.2.7
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/package.json +1 -1
- package/ralph/verify/lint.sh +12 -6
package/package.json
CHANGED
package/ralph/verify/lint.sh
CHANGED
|
@@ -114,11 +114,11 @@ verify_lint() {
|
|
|
114
114
|
if grep -q '"eslint"' package.json 2>/dev/null || [[ -f ".eslintrc.js" ]] || [[ -f "eslint.config.js" ]]; then
|
|
115
115
|
echo -n " ESLint check... "
|
|
116
116
|
local eslint_output
|
|
117
|
-
if eslint_output=$(npx eslint .
|
|
117
|
+
if eslint_output=$(npx eslint . 2>&1); then
|
|
118
118
|
print_success "passed"
|
|
119
119
|
else
|
|
120
120
|
# Check if it's real errors or just warnings
|
|
121
|
-
if echo "$eslint_output" | grep -qE "✖ [0-9]+ problems? \([1-9]"; then
|
|
121
|
+
if echo "$eslint_output" | grep -qE "✖ [0-9]+ problems? \([1-9][0-9]* errors?"; then
|
|
122
122
|
print_error "failed"
|
|
123
123
|
echo ""
|
|
124
124
|
echo " ESLint errors:"
|
|
@@ -130,7 +130,10 @@ verify_lint() {
|
|
|
130
130
|
} >> "$lint_log"
|
|
131
131
|
failed=1
|
|
132
132
|
else
|
|
133
|
-
|
|
133
|
+
# Warnings only - pass without showing them
|
|
134
|
+
local warning_count
|
|
135
|
+
warning_count=$(echo "$eslint_output" | grep -oE "[0-9]+ warnings?" | head -1 | grep -oE "[0-9]+" || echo "0")
|
|
136
|
+
print_success "passed ($warning_count warnings)"
|
|
134
137
|
fi
|
|
135
138
|
fi
|
|
136
139
|
fi
|
|
@@ -147,10 +150,10 @@ verify_lint() {
|
|
|
147
150
|
|
|
148
151
|
echo -n " ESLint check ($fe_dir)... "
|
|
149
152
|
local eslint_output
|
|
150
|
-
if eslint_output=$(cd "$fe_dir" && npx eslint .
|
|
153
|
+
if eslint_output=$(cd "$fe_dir" && npx eslint . 2>&1); then
|
|
151
154
|
print_success "passed"
|
|
152
155
|
else
|
|
153
|
-
if echo "$eslint_output" | grep -qE "✖ [0-9]+ problems? \([1-9]"; then
|
|
156
|
+
if echo "$eslint_output" | grep -qE "✖ [0-9]+ problems? \([1-9][0-9]* errors?"; then
|
|
154
157
|
print_error "failed"
|
|
155
158
|
echo ""
|
|
156
159
|
echo " ESLint errors in $fe_dir:"
|
|
@@ -162,7 +165,10 @@ verify_lint() {
|
|
|
162
165
|
} >> "$lint_log"
|
|
163
166
|
failed=1
|
|
164
167
|
else
|
|
165
|
-
|
|
168
|
+
# Warnings only - pass without showing them
|
|
169
|
+
local warning_count
|
|
170
|
+
warning_count=$(echo "$eslint_output" | grep -oE "[0-9]+ warnings?" | head -1 | grep -oE "[0-9]+" || echo "0")
|
|
171
|
+
print_success "passed ($warning_count warnings)"
|
|
166
172
|
fi
|
|
167
173
|
fi
|
|
168
174
|
done <<< "$fe_dirs"
|