Skip to content

Commit

Permalink
Revert "[ci] Order .rubocop.yml entries"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana06 committed Mar 22, 2017
1 parent 15c1d85 commit b56f61b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/api/.rubocop.yml
Expand Up @@ -137,14 +137,6 @@ Style/RedundantSelf:
Style/SignalException:
Enabled: true

# Checks for uses of rescue in its modifier form
Style/RescueModifier:
Enabled: true

# Enforces the use the shorthand for self-assignment
Style/SelfAssignment:
Enabled: true

# Checks for space after `!`
Style/SpaceAfterNot:
Enabled: true
Expand All @@ -169,6 +161,14 @@ Style/TernaryParentheses:
Style/ZeroLengthPredicate:
Enabled: true

# Checks for uses of rescue in its modifier form
Style/RescueModifier:
Enabled: true

# Enforces the use the shorthand for self-assignment
Style/SelfAssignment:
Enabled: true

##################### Metrics ##################################

# Checks if the length a class exceeds some maximum value
Expand Down Expand Up @@ -201,10 +201,6 @@ Lint/EndAlignment:
Lint/IneffectiveAccessModifier:
Enabled: true

# This cop looks for error classes inheriting from `Exception`.
Lint/InheritException:
Enabled: true

# checks for literals used as the conditions or as operands in and/or expressions serving as the conditions of if/while/until.
Lint/LiteralInCondition:
Enabled: true
Expand All @@ -219,10 +215,6 @@ Lint/NestedMethodDefinition:
Exclude:
- 'test/functional/tag_controller_test.rb'

# Checks for space between a the name of a called method and a left parenthesis.
Lint/ParenthesesAsGroupedExpression:
Enabled: true

# checks for unused block arguments.
Lint/UnusedBlockArgument:
Enabled: true
Expand All @@ -235,6 +227,14 @@ Lint/UselessAccessModifier:
Lint/UselessAssignment:
Enabled: true

# This cop looks for error classes inheriting from `Exception`.
Lint/InheritException:
Enabled: true

# Checks for space between a the name of a called method and a left parenthesis.
Lint/ParenthesesAsGroupedExpression:
Enabled: true

##################### Performance ###############################

# Use yield instead of having a &block parameter and block.call
Expand Down

0 comments on commit b56f61b

Please sign in to comment.