|
@@ -45,29 +45,29 @@ Style/TrailingCommaInArguments:
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/SpaceInsideParens:
|
|
|
|
|
|
+Layout/SpaceInsideParens:
|
|
Description: 'No spaces after ( or before ).'
|
|
Description: 'No spaces after ( or before ).'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/SpaceAfterMethodName:
|
|
|
|
|
|
+Layout/SpaceAfterMethodName:
|
|
Description: >-
|
|
Description: >-
|
|
Do not put a space between a method name and the opening
|
|
Do not put a space between a method name and the opening
|
|
parenthesis in a method definition.
|
|
parenthesis in a method definition.
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/LeadingCommentSpace:
|
|
|
|
|
|
+Layout/LeadingCommentSpace:
|
|
Description: 'Comments should start with a space.'
|
|
Description: 'Comments should start with a space.'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/MethodCallParentheses:
|
|
|
|
|
|
+Style/MethodCallWithoutArgsParentheses:
|
|
Description: 'Do not use parentheses for method calls with no arguments.'
|
|
Description: 'Do not use parentheses for method calls with no arguments.'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/SpaceInsideBrackets:
|
|
|
|
|
|
+Layout/SpaceInsideBrackets:
|
|
Description: 'No spaces after [ or before ].'
|
|
Description: 'No spaces after [ or before ].'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
|
Enabled: false
|
|
Enabled: false
|
|
@@ -83,19 +83,19 @@ Style/MethodDefParentheses:
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/EmptyLinesAroundClassBody:
|
|
|
|
|
|
+Layout/EmptyLinesAroundClassBody:
|
|
Description: "Keeps track of empty lines around class bodies."
|
|
Description: "Keeps track of empty lines around class bodies."
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/EmptyLinesAroundMethodBody:
|
|
|
|
|
|
+Layout/EmptyLinesAroundMethodBody:
|
|
Description: "Keeps track of empty lines around method bodies."
|
|
Description: "Keeps track of empty lines around method bodies."
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/EmptyLinesAroundBlockBody:
|
|
|
|
|
|
+Layout/EmptyLinesAroundBlockBody:
|
|
Description: "Keeps track of empty lines around block bodies."
|
|
Description: "Keeps track of empty lines around block bodies."
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/EmptyLinesAroundModuleBody:
|
|
|
|
|
|
+Layout/EmptyLinesAroundModuleBody:
|
|
Description: "Keeps track of empty lines around module bodies."
|
|
Description: "Keeps track of empty lines around module bodies."
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
@@ -143,17 +143,29 @@ Rails/HasAndBelongsToMany:
|
|
# StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through'
|
|
# StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
|
|
+Rails/SkipsModelValidations:
|
|
|
|
+ Description: >-
|
|
|
|
+ Use methods that skips model validations with caution.
|
|
|
|
+ See reference for more information.
|
|
|
|
+ Reference: 'http://guides.rubyonrails.org/active_record_validations.html#skipping-validations'
|
|
|
|
+ Enabled: true
|
|
|
|
+ Exclude:
|
|
|
|
+ - test/**/*
|
|
|
|
+
|
|
Style/ClassAndModuleChildren:
|
|
Style/ClassAndModuleChildren:
|
|
Description: 'Checks style of children classes and modules.'
|
|
Description: 'Checks style of children classes and modules.'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/FileName:
|
|
|
|
|
|
+Naming/FileName:
|
|
Description: 'Use snake_case for source file names.'
|
|
Description: 'Use snake_case for source file names.'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
|
Enabled: true
|
|
Enabled: true
|
|
Exclude:
|
|
Exclude:
|
|
- 'script/websocket-server.rb'
|
|
- 'script/websocket-server.rb'
|
|
|
|
|
|
|
|
+Naming/VariableNumber:
|
|
|
|
+ Description: 'Use the configured style when numbering variables.'
|
|
|
|
+ Enabled: false
|
|
|
|
|
|
# 2.0
|
|
# 2.0
|
|
|
|
|
|
@@ -184,8 +196,23 @@ Metrics/ModuleLength:
|
|
Description: 'Avoid modules longer than 100 lines of code.'
|
|
Description: 'Avoid modules longer than 100 lines of code.'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
|
|
+Metrics/BlockLength:
|
|
|
|
+ Enabled: false
|
|
|
|
+
|
|
|
|
+Lint/RescueWithoutErrorClass:
|
|
|
|
+ Enabled: false
|
|
|
|
+
|
|
|
|
+Rails/ApplicationRecord:
|
|
|
|
+ Enabled: false
|
|
|
|
+
|
|
# TODO
|
|
# TODO
|
|
|
|
|
|
|
|
+Rails/HasManyOrHasOneDependent:
|
|
|
|
+ Enabled: false
|
|
|
|
+
|
|
|
|
+Style/DateTime:
|
|
|
|
+ Enabled: false
|
|
|
|
+
|
|
Style/Documentation:
|
|
Style/Documentation:
|
|
Description: 'Document classes and non-namespace modules.'
|
|
Description: 'Document classes and non-namespace modules.'
|
|
Enabled: false
|
|
Enabled: false
|
|
@@ -193,7 +220,7 @@ Style/Documentation:
|
|
Lint/UselessAssignment:
|
|
Lint/UselessAssignment:
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
-Style/ExtraSpacing:
|
|
|
|
|
|
+Layout/ExtraSpacing:
|
|
Description: 'Do not use unnecessary spacing.'
|
|
Description: 'Do not use unnecessary spacing.'
|
|
Enabled: false
|
|
Enabled: false
|
|
|
|
|
|
@@ -215,4 +242,14 @@ Style/NumericPredicate:
|
|
AutoCorrect: false
|
|
AutoCorrect: false
|
|
Enabled: true
|
|
Enabled: true
|
|
Exclude:
|
|
Exclude:
|
|
- - "**/*_spec.rb"
|
|
|
|
|
|
+ - "**/*_spec.rb"
|
|
|
|
+
|
|
|
|
+Lint/AmbiguousBlockAssociation:
|
|
|
|
+ Description: >-
|
|
|
|
+ Checks for ambiguous block association with method when param passed without
|
|
|
|
+ parentheses.
|
|
|
|
+ StyleGuide: '#syntax'
|
|
|
|
+ Enabled: true
|
|
|
|
+ Exclude:
|
|
|
|
+ - "**/*_spec.rb"
|
|
|
|
+ - "**/*_examples.rb"
|