aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/support
diff options
context:
space:
mode:
authorMike McQuaid2017-06-08 15:13:06 +0300
committerMike McQuaid2017-06-08 15:13:10 +0300
commitc572081f8b56f3be24f24e85497ae780a25cbcba (patch)
tree522cf0dc26ca38dfd3a0225c057fc843669035f6 /Library/Homebrew/test/support
parentfd4aaf030f7e6c356239af55e0a1b72c3f290706 (diff)
downloadbrew-c572081f8b56f3be24f24e85497ae780a25cbcba.tar.bz2
formula_desc_cop: tweak some rules.
Allow some specific lowercase words and provide an autocorrect for some of these rules.
Diffstat (limited to 'Library/Homebrew/test/support')
-rw-r--r--Library/Homebrew/test/support/helper/rubocop.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/test/support/helper/rubocop.rb b/Library/Homebrew/test/support/helper/rubocop.rb
new file mode 100644
index 000000000..351f2ad82
--- /dev/null
+++ b/Library/Homebrew/test/support/helper/rubocop.rb
@@ -0,0 +1,13 @@
+module Test
+ module Helper
+ module RuboCop
+ def expect_offense(expected, actual)
+ expect(actual).to_not be_nil
+ expect(actual.message).to eq(expected[:message])
+ expect(actual.severity).to eq(expected[:severity])
+ expect(actual.line).to eq(expected[:line])
+ expect(actual.column).to eq(expected[:column])
+ end
+ end
+ end
+end