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

Auditing: Add rails_best_practices checks to Travis build, do cleanup #2703

merged 6 commits into from Nov 6, 2019


Copy link

kevinrobinson commented Nov 6, 2019

This adds a subset of, does cleanup on the items it found, and adds the check to the Travis build.

These include:

  • removing unused methods
  • calling ActiveRecord operations and ignoring the return value (change to bang methods)
  • removed some old rake tasks related to schools (synced differently now)

Some other config was just noise, so those are disabled here in rails_best_practices.yml.

EDIT: I also looked at UseBeforeFilterCheck which seems potential useful but is too noisy.

This also updates administrate to be more explicit, and limit open routes as helpfully pointed out by RestrictAutoGeneratedRoutesCheck.

# removed

# kept, explicitly now

This comment has been minimized.

Copy link
Contributor Author

kevinrobinson commented Nov 6, 2019

example of how failures look in the build:
Screen Shot 2019-11-06 at 3 15 33 PM


This comment has been minimized.

Copy link
Contributor Author

kevinrobinson commented Nov 6, 2019


@kevinrobinson kevinrobinson merged commit 8fd95a3 into master Nov 6, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@kevinrobinson kevinrobinson deleted the feature/rails-best-practices-tooling branch Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.