File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 ],
4545 "xo/filename-case" : 0 ,
4646 "no-else-return" : 0 ,
47+ "one-var" : 0 ,
4748 "max-statements-per-line" : [
4849 " error" ,
4950 {
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ var constructTarget = function (options, i) {
9191 if ( options . headers ) { options . headers . forEach ( _ . unary ( target . header ) ) ; }
9292 if ( options . data ) {
9393 if ( options . data . charAt ( 0 ) === '@' ) {
94- var filePath = path . join ( process . cwd ( ) , ( options . data . slice ( 1 ) ) ) ;
94+ var filePath = path . resolve ( process . cwd ( ) , ( options . data . slice ( 1 ) ) ) ;
9595 target . data ( fs . readFileSync ( filePath ) ) ;
9696 } else {
9797 target . data ( options . data ) ;
@@ -111,7 +111,7 @@ var reporter = new ClassicReporter({quiet: options.quiet});
111111
112112var targets = [ ] ;
113113if ( options . file ) {
114- var file = fs . readFileSync ( getAbsolutePath ( options . file ) , 'utf8' ) ;
114+ var file = fs . readFileSync ( path . resolve ( process . cwd ( ) , options . file ) , 'utf8' ) ;
115115 var lines = file . split ( '\n' ) . filter ( Boolean ) ;
116116 var parseOpts = parser . parse . bind ( parser ) ;
117117 targets = lines . map ( parseOpts ) . map ( constructTarget ) ;
You can’t perform that action at this time.
0 commit comments