-
Notifications
You must be signed in to change notification settings - Fork 9
Always specify coffeelint.json as default config #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Does this work if there is no |
@gordondiggs ah no it does not. Good catch, thanks. |
0867360
to
b21ee77
Compare
@gordondiggs updated! |
def config_path | ||
if @config | ||
@config | ||
elsif File.exist? DEFAULT_CONFIG_PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💄 parentheses around the arguments here
b21ee77
to
cac2aee
Compare
@files = files | ||
@config = config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reordered for style
@gordondiggs ready for another look! |
|
||
private | ||
|
||
attr_reader :config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if I wasn't clear before - I think this is the opportunity for all 3 ivars to become attr_reader
s and accessed that way. It seems worse to only have one
This sidesteps an issue with resolving the config and location of node_modules for coffeelint projects using plugins: clutchski/coffeelint#571
Needed after dockerfile change: 2465bed
cac2aee
to
260c7f4
Compare
@gordondiggs good call on attr_readers. Updated |
LGTM |
This sidesteps an issue with resolving the config and location of node_modules
for coffeelint projects using plugins:
clutchski/coffeelint#571
@codeclimate/review