Skip to content

Commit 79847c6

Browse files
committed
=BG= fixing/ ignoring misc jshint violations
1 parent 4300cc1 commit 79847c6

File tree

2 files changed

+4
-174
lines changed

2 files changed

+4
-174
lines changed

lib/test/karma.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,15 @@ function karmaCreateConfig(reporters, configFileName) {
144144
}
145145
var filePath = path.resolve(configFileName);
146146
if (fs.existsSync(filePath)) {
147+
// Can safely ignore JsHint warnign here because through2 sets the value of
148+
// `this` to the file stream
149+
var stream = this; // jshint ignore:line
147150
var contents = fs.readFileSync(filePath).toString()
148151
.replace(basePathRegex, encode(process.cwd()))
149152
.replace(filesAppendRegex, encode(files.concat(additional)))
150153
.replace(reportersAppendRegex, encode(reporters.map(getKarmaReporterName)))
151154
.replace(pluginsAppendRegex, '[\n' + reporters.map(requirePlugins).join(',\n') + '\n]');
152-
this.push(new gutil.File({
155+
stream.push(new gutil.File({
153156
path : filePath,
154157
contents: new Buffer(contents)
155158
}));

lib/util/yargs.js

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)