Skip to content

Instantly share code, notes, and snippets.

@hogelog
Created November 5, 2022 02:47
Show Gist options
  • Save hogelog/98a976fe2900e1852469fc1e0f67748d to your computer and use it in GitHub Desktop.
Save hogelog/98a976fe2900e1852469fc1e0f67748d to your computer and use it in GitHub Desktop.
gem install rubocop-minitest
cat > _tmp-rubocop.yml <<YML
require: rubocop-minitest
AllCops:
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
Exclude:
- '**/vendor/**/*'
Minitest/GlobalExpectations:
Enabled: true
YML
rubocop -c _tmp-rubocop.yml -a test/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment