File tree 2 files changed +6
-1
lines changed
lib/node_modules/@stdlib/_tools/repl-txt/validate/lib
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ function registerValidators( linter ) {
54
54
'returns' : [ ] ,
55
55
'sections' : [ ] ,
56
56
'section' : [ ] ,
57
- 'signature' : [ ]
57
+ 'signature' : [ ] ,
58
+ 'interfaces' : [ ]
58
59
} ;
59
60
config = linter . config ;
60
61
rules = objectKeys ( config ) ;
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ function validate( str ) {
54
54
debug ( 'Successfully generated AST.' ) ;
55
55
56
56
debug ( 'Number of interfaces: %d' , asts . length ) ;
57
+ for ( j = 0 ; j < validators . interfaces . length ; j ++ ) {
58
+ debug ( 'Rule: %s' , validators . interfaces [ j ] . id ) ;
59
+ validators . interfaces [ j ] . validate ( asts ) ;
60
+ }
57
61
for ( i = 0 ; i < asts . length ; i ++ ) {
58
62
debug ( 'Validating interface: %d' , i + 1 ) ;
59
63
ast = asts [ i ] ;
You can’t perform that action at this time.
0 commit comments