File tree 4 files changed +11
-11
lines changed
4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,13 @@ export default class extends Command {
66
66
// skip large files, >200Kb
67
67
// https://stackoverflow.com/questions/23429499/stdout-buffer-issue-using-node-child-process
68
68
if ( ! content . ok && content . statusText === "stdout maxBuffer length exceeded" ) {
69
- res = result ( 202 ) ;
69
+ res = result ( 201 ) ;
70
70
}
71
71
72
72
// XXX skip LFS files
73
73
// need to use `git show :path | git lfs smudge` to extract file content
74
74
else if ( / ^ v e r s i o n h t t p s : \/ \/ g i t - l f s \. g i t h u b \. c o m \/ s p e c \/ v 1 \n o i d .+ ?\n s i z e \d + $ / m. test ( content . data ) ) {
75
- res = result ( 202 ) ;
75
+ res = result ( 201 ) ;
76
76
}
77
77
78
78
// lint file
@@ -94,15 +94,15 @@ export default class extends Command {
94
94
report . total ++ ;
95
95
96
96
// file was ignored
97
- if ( res . status === 202 ) {
97
+ if ( res . status === 201 ) {
98
98
report . ignored ++ ;
99
99
100
100
continue ;
101
101
}
102
102
103
103
report . processed ++ ;
104
104
105
- if ( res . status !== 202 ) {
105
+ if ( res . status !== 201 ) {
106
106
if ( res . status === 200 ) {
107
107
report . ok ++ ;
108
108
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export class LintPatterns {
74
74
75
75
report . total ++ ;
76
76
77
- if ( res . status === 202 ) {
77
+ if ( res . status === 201 ) {
78
78
report . ignored ++ ;
79
79
}
80
80
else {
@@ -98,7 +98,7 @@ export class LintPatterns {
98
98
}
99
99
100
100
// skip ignored files
101
- else if ( ! this . #reportIgnored && res . status === 202 ) {
101
+ else if ( ! this . #reportIgnored && res . status === 201 ) {
102
102
continue ;
103
103
}
104
104
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import uuid from "#core/uuid";
17
17
18
18
// Status codes:
19
19
// 200 - OK
20
- // 201 - Warnings
21
- // 202 - File Ignored
20
+ // 201 - File Ignored
21
+ // 210 - Warnings
22
22
// 400 - Errors
23
23
// 500 - Fatal error
24
24
@@ -307,7 +307,7 @@ export class LintFile {
307
307
if ( type ) this . #type = TYPES [ type ] ;
308
308
}
309
309
310
- if ( ! this . #type && ! this . #processUnsupportedTypes ) return result ( [ 202 , "File ignored" ] ) ;
310
+ if ( ! this . #type && ! this . #processUnsupportedTypes ) return result ( [ 201 , "File ignored" ] ) ;
311
311
312
312
// add default extension
313
313
if ( this . #type ) {
@@ -704,7 +704,7 @@ export class LintFile {
704
704
705
705
// warnings
706
706
else if ( hasWarnings ) {
707
- return result ( [ 201 , "Warnings" ] ) ;
707
+ return result ( [ 210 , "Warnings" ] ) ;
708
708
}
709
709
710
710
// ok
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function getLintReportTable ( options = {} ) {
16
16
"align" : "center" ,
17
17
format ( res ) {
18
18
if ( res . status === 200 ) return "OK" ;
19
- else if ( res . status === 202 ) return ansi . dim ( "IGNORED" ) ;
19
+ else if ( res . status === 201 ) return ansi . dim ( "IGNORED" ) ;
20
20
else if ( res . ok ) return ansi . warn ( " WARNING " ) ;
21
21
else return ansi . error ( " ERROR " ) ;
22
22
} ,
You can’t perform that action at this time.
0 commit comments