File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ Please set .textlinrc:
2222 var textlintRCDir = configFilePath ? path . dirname ( configFilePath ) : process . cwd ( ) ;
2323 let helper = new RuleHelper ( context ) ;
2424 let { Syntax, getSource, report, RuleError} = context ;
25- var rulePaths = options . rulePaths ;
25+ var rulePaths = options . rulePaths . slice ( ) ;
2626 var config = prh . fromYAMLFilePath ( path . resolve ( textlintRCDir , rulePaths [ 0 ] ) ) ;
27- rulePaths . splice ( 1 ) . forEach ( function ( rulePath ) {
27+ rulePaths . slice ( 1 ) . forEach ( function ( rulePath ) {
2828 var c = prh . fromYAMLFilePath ( path . resolve ( textlintRCDir , rulePath ) ) ;
2929 config . merge ( c ) ;
3030 } ) ;
@@ -56,7 +56,7 @@ Please set .textlinrc:
5656 var position = src . indexToPosition ( changeSet . index ) ;
5757
5858 // line, column
59- context . report ( node , new RuleError ( changeSet . matches [ 0 ] + " => " + expected , {
59+ report ( node , new RuleError ( changeSet . matches [ 0 ] + " => " + expected , {
6060 line : position . line - 1 ,
6161 column : position . column
6262 } ) ) ;
You can’t perform that action at this time.
0 commit comments