Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
Don't overwrite the path module
Browse files Browse the repository at this point in the history
  • Loading branch information
AsaAyers committed Jan 12, 2014
1 parent e34a815 commit 992d4c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/commandline.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,19 @@ class CheckstyleReporter extends JSLintReporter
@print "</checkstyle>"

# Return an error report from linting the given paths.
lintFiles = (paths, config) ->
lintFiles = (files, config) ->
errorReport = new ErrorReport()
for path in paths
source = read(path)
literate = CoffeeScript.helpers.isLiterate path
for file in files
source = read(file)
literate = CoffeeScript.helpers.isLiterate file

fileConfig = if config then config else getFallbackConfig(path)
fileConfig = if config then config else getFallbackConfig(file)

for ruleName, data of fileConfig
if data.module?
loadRules(data.module, ruleName)

errorReport.paths[path] = coffeelint.lint(source, fileConfig, literate)
errorReport.paths[file] = coffeelint.lint(source, fileConfig, literate)
return errorReport

# Return an error report from linting the given coffeescript source.
Expand Down

0 comments on commit 992d4c8

Please sign in to comment.