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

Lint Ruby with standardrb #2508

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Lint Ruby with standardrb #2508

merged 1 commit into from
Feb 5, 2024

Conversation

nickcharlton
Copy link
Member

@nickcharlton nickcharlton commented Feb 2, 2024

Some time ago, we at thoughtbot stopped using our custom Rubocop rules and replaced it with standard. This adds Standard, sets up support for it in GitHub Actions and runs it against the code base.

We ignore Lint/ConstantDefinitionInBlock in a few specs, as this is related to the Pundit integration. It'd be good to come back to this in future and adjust the specs to avoid defining/overriding classes in specs, but honestly it was too difficult to make it work in a reasonable time.

Finally, we need to use main of the standard Action as, currently, that's the only one which is working (0.0.5 fails silently).

https://github.com/standardrb/standard
thoughtbot/guides#606

@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@thoughtbot thoughtbot deleted a comment from hound bot Feb 5, 2024
@nickcharlton nickcharlton force-pushed the nc-lint-with-standard branch from 15894df to fe92002 Compare February 5, 2024 14:53
Some time ago, we at thoughtbot stopped using our custom Rubocop rules
and replaced it with standard. This adds Standard, sets up support for
it in GitHub Actions and runs it against the code base.

We ignore `Lint/ConstantDefinitionInBlock` in a few specs, as this is
related to the Pundit integration. It'd be good to come back to this in
future and adjust the specs to avoid defining/overriding classes in
specs, but honestly it was too difficult to make it work in a reasonable
time.

Finally, we need to use `main` of the standard Action as, currently,
that's the only one which is working (`0.0.5` fails silently).

https://github.com/standardrb/standard
thoughtbot/guides#606
@nickcharlton nickcharlton force-pushed the nc-lint-with-standard branch from 7f4b03c to 401836d Compare February 5, 2024 15:16
@nickcharlton nickcharlton marked this pull request as ready for review February 5, 2024 15:28
@nickcharlton nickcharlton merged commit 3ff3b7d into main Feb 5, 2024
10 checks passed
@nickcharlton nickcharlton deleted the nc-lint-with-standard branch February 5, 2024 15:28
nickcharlton added a commit that referenced this pull request Feb 21, 2024
Since #2508 and #2492, we no longer use Hound, this removes the last
reference of it and it's configuration.

We also haven't had a working Code Climate configuration for a while, so
this removes that too.
nickcharlton added a commit that referenced this pull request Jun 28, 2024
Since #2508 and #2492, we no longer use Hound, this removes the last
reference of it and it's configuration.

We also haven't had a working Code Climate configuration for a while, so
this removes that too.
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.

1 participant