Created
July 11, 2016 20:00
-
-
Save benjaminoakes/f83493c8eae97d9678cd22e9e2c03758 to your computer and use it in GitHub Desktop.
Why doesn't houndci.com check Rake tasks? (Rubocop does with this config...)
This file contains hidden or 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
diff --git a/.ruby-style.yml b/.ruby-style.yml | |
index 28b4f49..8933d44 100644 | |
--- a/.ruby-style.yml | |
+++ b/.ruby-style.yml | |
@@ -1,4 +1,11 @@ | |
AllCops: | |
+ Include: | |
+ - '**/*.rb' | |
+ - '**/*.rake' | |
+ - '**/config.ru' | |
+ - '**/Gemfile' | |
+ - '**/Rakefile' | |
+ - '**/Guardfile' | |
Exclude: | |
- "vendor/**/*" | |
- "db/schema.rb" | |
diff --git a/lib/tasks/bad_example.rake b/lib/tasks/bad_example.rake | |
new file mode 100644 | |
index 0000000..f5c6a70 | |
--- /dev/null | |
+++ b/lib/tasks/bad_example.rake | |
@@ -0,0 +1,4 @@ | |
+desc "Example of a bad example (testing Rubocop)" | |
+task :bad_example => :environment do | |
+ woah_this_is_a_really_long_line_123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment