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

Add Rubocop linting to CI and make source files pass linting. #486

Merged
merged 35 commits into from
Nov 3, 2018

Conversation

lcreid
Copy link
Contributor

@lcreid lcreid commented Sep 13, 2018

This PR is the first step in encouraging consistent coding style is bootstrap_form. It:

  • Adds RuboCop to the gem files.
  • Adds a rubocop task to the Rakefile, and runs rubocop as part of the default tasks, so checks will be done by Travis.
  • Fixes the linting offences in the code base.
  • Fixes all the auto-correctable offences.
  • Fixes many (mostly line length) offences.
  • Sets up a .rubocop_todo.yml for the remaining offences.

This PR addresses the checklist items in #481.

Fixes #481.

@bootstrap-ruby-bot
Copy link

bootstrap-ruby-bot commented Nov 1, 2018

1 Warning
⚠️ Please update CHANGELOG.md with a description of your changes. If this PR is not a user-facing change (e.g. just refactoring), you can disregard this.

Here's an example of a CHANGELOG.md entry (place it immediately under the * Your contribution here! line):

* [#486](https://github.com/bootstrap-ruby/bootstrap_form/pull/486): Add Rubocop linting to CI and make source files pass linting. - [@lcreid](https://github.com/lcreid).

Generated by 🚫 Danger

@lcreid lcreid merged commit 1783c77 into bootstrap-ruby:master Nov 3, 2018
@lcreid lcreid deleted the 481-rubocop branch November 3, 2018 16:29
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