We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d0ec9 commit 6deceeaCopy full SHA for 6deceea
entrypoint.sh
@@ -51,7 +51,7 @@ generate_all_diff() {
51
}
52
53
build_changed_lines_cache() {
54
- > "$CHANGED_LINES_CACHE"
+ true > "$CHANGED_LINES_CACHE"
55
current_file=""
56
57
while read -r line; do
@@ -79,7 +79,8 @@ build_changed_lines_cache() {
79
80
81
get_p1_violations_count() {
82
- grep -Eo "p1=[0-9]+" "$CODENARC_RESULT" | cut -d'=' -f2 | head -1 | grep -o '[0-9]*' || echo "0"
+ p1_count=$(grep -Eo "p1=[0-9]+" "$CODENARC_RESULT" | cut -d'=' -f2 | head -1)
83
+ echo "${p1_count:-0}"
84
85
86
parse_allowed_file_patterns() {
0 commit comments