Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #39 from Phylodome/master
Browse files Browse the repository at this point in the history
Update Linter.findConfiguration's first parameter to null
  • Loading branch information
Arcanemagus committed Dec 10, 2015
2 parents 6ba6acd + 12cafb1 commit 9a76cef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ module.exports =
lint: (textEditor) ->
filePath = textEditor.getPath()
text = textEditor.getText()
configuration = Linter.findConfiguration(undefined, filePath)
configuration = Linter.findConfiguration(null, filePath)

directory = undefined
if (rulesDirectory && textEditor.project && textEditor.project.getPaths().length)
directory = textEditor.project.getPaths()[0] + path.sep + rulesDirectory

linter = new Linter(filePath, text, {
formatter: 'json',
configuration: configuration
Expand Down

0 comments on commit 9a76cef

Please sign in to comment.