File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ const filterLinterMessages = changedFileLineMap => (linterOutput) => {
74
74
)
75
75
76
76
const countWarningMessages = countBySeverity ( 1 )
77
+ const countErrorMessages = countBySeverity ( 2 )
77
78
78
79
const warningCount = ( result ) => {
79
80
const transform = {
@@ -83,11 +84,20 @@ const filterLinterMessages = changedFileLineMap => (linterOutput) => {
83
84
return merge ( result , transform )
84
85
}
85
86
87
+ const errorCount = ( result ) => {
88
+ const transform = {
89
+ errorCount : countErrorMessages ( result . messages ) ,
90
+ }
91
+
92
+ return merge ( result , transform )
93
+ }
94
+
86
95
return pipe (
87
96
prop ( 'results' ) ,
88
97
map ( pipe (
89
98
filterMessagesByFile ,
90
- warningCount
99
+ warningCount ,
100
+ errorCount
91
101
) ) ,
92
102
objOf ( 'results' )
93
103
) ( linterOutput )
You can’t perform that action at this time.
0 commit comments