We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507e089 commit 1a09e48Copy full SHA for 1a09e48
index.js
@@ -36,8 +36,8 @@ module.exports.analyze = (source) => {
36
37
if (Array.isArray(source)) {
38
source.forEach((filePath) => {
39
- let fullPath = path.resolve(__dirname, filePath)
40
- let content = read.sync(fullPath, 'utf8')
+ // let fullPath = path.resolve(__dirname, filePath)
+ let content = read.sync(filePath, 'utf8')
41
result = escomplex.analyse(content)
42
report = sanitize(path.basename(filePath), filePath, result)
43
reports.push(report)
0 commit comments