Skip to content

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

Merged
merged 2 commits into from
Aug 10, 2016
Merged

Conversation

ABaldwinHunter
Copy link
Contributor

This sidesteps an issue with resolving the config and location of node_modules
for coffeelint projects using plugins:
clutchski/coffeelint#571

@codeclimate/review

@gdiggs
Copy link
Contributor

gdiggs commented Aug 9, 2016

Does this work if there is no coffeelint.json present?

@ABaldwinHunter
Copy link
Contributor Author

@gordondiggs ah no it does not. Good catch, thanks.

@ABaldwinHunter ABaldwinHunter force-pushed the abh-config branch 5 times, most recently from 0867360 to b21ee77 Compare August 9, 2016 19:37
@ABaldwinHunter
Copy link
Contributor Author

@gordondiggs updated!

def config_path
if @config
@config
elsif File.exist? DEFAULT_CONFIG_PATH
Copy link
Contributor

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

@files = files
@config = config
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reordered for style

@ABaldwinHunter
Copy link
Contributor Author

@gordondiggs ready for another look!


private

attr_reader :config
Copy link
Contributor

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_readers and accessed that way. It seems worse to only have one

ABaldwinHunter added 2 commits August 10, 2016 11:18
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
@ABaldwinHunter
Copy link
Contributor Author

@gordondiggs good call on attr_readers. Updated

@gdiggs
Copy link
Contributor

gdiggs commented Aug 10, 2016

LGTM

@ABaldwinHunter ABaldwinHunter merged commit 2bff225 into master Aug 10, 2016
@ABaldwinHunter ABaldwinHunter deleted the abh-config branch August 10, 2016 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants