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

Use Rubocop cops in .erb files #1200

Merged
merged 1 commit into from
Jun 30, 2022
Merged

Use Rubocop cops in .erb files #1200

merged 1 commit into from
Jun 30, 2022

Conversation

camertron
Copy link
Contributor

I noticed we don't use any Rubocop cops for .erb files. We probably should?

@changeset-bot
Copy link

changeset-bot bot commented Jun 29, 2022

🦋 Changeset detected

Latest commit: 7828a60

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@camertron camertron temporarily deployed to github-pages June 29, 2022 18:06 Inactive
@camertron camertron temporarily deployed to github-pages June 29, 2022 18:10 Inactive
@camertron camertron marked this pull request as ready for review June 29, 2022 20:52
@camertron camertron requested review from a team and hectahertz June 29, 2022 20:52
Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

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

I think there was some reason we did this, since erblint also runs rubocop lints, but I can't be certain. probably doesn't hurt to run it twice 🤷🏻

@camertron
Copy link
Contributor Author

camertron commented Jun 30, 2022

@jonrohan I think it only runs rubocop linters if it's configured to do so. Which... technically it is? But then we have

AllCops:
  DisabledByDefault: true

in default.yml which disables everything 🤔

@camertron camertron merged commit a650505 into main Jun 30, 2022
@camertron camertron deleted the use_rubocop_for_erb branch June 30, 2022 17:30
@primer-css primer-css mentioned this pull request Jun 30, 2022
camertron added a commit that referenced this pull request Jul 20, 2022
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