diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 00000000000..276e17894da --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,45 @@ +require: rubocop-rspec + +EmptyLinesAroundBlockBody: + Enabled: false + +Style/StringLiterals: + Enabled: false + +Style/Documentation: + Description: Document classes and non-namespace modules. + Enabled: false + +Style/MethodDefParentheses: + Description: Checks if the method definitions have or don't have parentheses. + StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens + Enabled: false + +Style/SingleLineBlockParams: + Description: Enforces the names of some block params. + StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks + Enabled: false + Methods: + - reduce: + - a + - e + - inject: + - a + - e + +Lint/UselessAssignment: + Description: Checks for useless assignment to a local variable. + StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars + Enabled: false + +Style/TrailingBlankLines: + Description: Checks trailing blank lines and final newline. + StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof + Enabled: false + EnforcedStyle: final_newline + SupportedStyles: + - final_newline + - final_blank_line + +Rails/Output: + Enabled: false