Replies: 4 comments 3 replies
-
@jcohenho Can you share your require:
- rubocop-rspec
- rubocop-rails
- rubocop-performance
inherit_gem:
rubocop-shopify: rubocop.yml |
Beta Was this translation helpful? Give feedback.
-
You may want to make sure you are loading the correct environment by using Bundler within the github action. If that's not working, can you provide some more information to help folks reproduce what you're seeing? |
Beta Was this translation helpful? Give feedback.
-
Hi Guys, |
Beta Was this translation helpful? Give feedback.
-
Hey @vergilet 👋 bundle exec rubocop $(git show --pretty="" --name-only | tr '\n' ' ') I have to admit I'm really bad at bash so please only consider it as an example. Ideally we should be using Perhaps you might be interested in https://github.com/prontolabs/pronto-rubocop to avoid building your own solution |
Beta Was this translation helpful? Give feedback.
-
I'm trying to add rubocop-shopify to our Github workflows, but the output gives me different errors from my local and appears to be using normal Rubocop instead. For example, I'm getting an error regarding
Layout/SpaceInLambdaLiteral
, but this is not configured in the latest Shopify cop config. Would you be able to share any advice on how best to configure/integrate rubocop-shopify into Github actions/workflows?Here is my workflow.yml config:
Beta Was this translation helpful? Give feedback.
All reactions