Skip to content
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

Enforce Linter #8

Merged
merged 4 commits into from
Mar 7, 2018
Merged

Enforce Linter #8

merged 4 commits into from
Mar 7, 2018

Conversation

wenga86
Copy link
Contributor

@wenga86 wenga86 commented Mar 5, 2018

This PR provides a better guiding hand in setting up development environments with BD Lint. It will raise an error and prevent the app from booting in development and tests until the developer has run the necessary commands to tie in the required git hooks.

@shopsmart/web-team

@wenga86 wenga86 self-assigned this Mar 5, 2018
sypher7
sypher7 previously requested changes Mar 5, 2018
class GitHookError < StandardError; end

def self.check
raise GitHookError, "Please run `bundle exec rake bd_lint:generate:pre_commit`" if invalid?
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this task isn't defined for rails projects -- that logic might be backwards in the task definitions?

If that is how it is supposed to work, we should reflect that logic here.

@wenga86 wenga86 dismissed sypher7’s stale review March 6, 2018 14:04

Logic Resolved

@wenga86 wenga86 merged commit f7feca1 into master Mar 7, 2018
@wenga86 wenga86 deleted the enforce_linter branch March 7, 2018 23:22
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.

4 participants