Created
November 5, 2022 02:47
-
-
Save hogelog/98a976fe2900e1852469fc1e0f67748d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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