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

Apply rubocop FindBy rules #3792

Merged
merged 2 commits into from
Oct 24, 2019
Merged

Apply rubocop FindBy rules #3792

merged 2 commits into from
Oct 24, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented Oct 23, 2019

Objectives

  • Increase consistency in our source code
  • Add rules so contributors find it easier to know about our code conventions

We were already using it in most places.
@javierm javierm added the Linters Rubocop, ERB Lint, ESLint, SCSS-Lint, ... label Oct 23, 2019
@javierm javierm self-assigned this Oct 23, 2019
@javierm javierm added this to Reviewing in Roadmap via automation Oct 23, 2019
@javierm javierm changed the title Apply fubocop FindBy rules Apply rubocop FindBy rules Oct 23, 2019
We were already using `find_by` most of the time.

Since there are false positives related to our `find_by_slug_or_id!` and
`find_by_manger_login` methods, which cannot be replaced with `find_by`,
I'm adding it indicating the "refactor" severity.
@javierm javierm merged commit b6750e8 into master Oct 24, 2019
Roadmap automation moved this from Reviewing to Release 1.1.0 Oct 24, 2019
@javierm javierm deleted the rubocop_find_by branch October 24, 2019 14:47
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linters Rubocop, ERB Lint, ESLint, SCSS-Lint, ...
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

None yet

1 participant