You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Fail if number of violations is greater than the limit
60
+
ifnum_violations>violations_limit:
61
+
fail_quality("FAILURE: Too many eslint violations ({count}).\nThe limit is {violations_limit}.".format(count=num_violations, violations_limit=violations_limit))
62
+
else:
63
+
print(f"successfully run eslint with '{num_violations}' violations")
62
64
63
-
# An AttributeError will occur if the regex finds no matches.
64
-
except (AttributeError, ValueError):
65
-
fail_quality(f"FAILURE: Number of eslint violations could not be found in '{last_line}'")
65
+
# An AttributeError will occur if the regex finds no matches.
66
+
except (AttributeError, ValueError):
67
+
fail_quality(f"FAILURE: Number of eslint violations could not be found in '{last_line}'")
68
+
else:
69
+
print(f"Unexpected ESLint failure with exit code {result.returncode}.")
0 commit comments