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

Providing full file path will allow jscs to obey excludeFiles rules #57

Merged
merged 1 commit into from
Jul 20, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/linter-jscs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class LinterJscs extends Linter

lintFile: (path, next) =>
condition = (@config and @onlyConfig) or !@onlyConfig
path = if condition then path else path: ''
path = if condition then @cwd + path.substring(path.lastIndexOf('/')) else path: ''

super path, next

Expand Down