osem-fcy/.rubocop.yml

90 lines
1.9 KiB
YAML
Raw Normal View History

2014-07-21 13:09:37 +02:00
inherit_from: .rubocop_todo.yml
Style/HashSyntax:
2014-07-21 14:49:05 +02:00
Enabled: true
2014-07-21 13:09:37 +02:00
EnforcedStyle: ruby19
# Things deprecated in current ruby API
Lint/DeprecatedClassMethods:
Enabled: true
# Do not compare with nil. Use .nil? instead
Style/NilComparison:
Enabled: true
2014-07-21 14:27:32 +02:00
# Use one empty line between method definitions
2014-07-21 13:09:37 +02:00
Style/EmptyLineBetweenDefs:
Enabled: true
2014-07-21 14:27:32 +02:00
# There should be only one empty line in designated place
2014-07-21 13:09:37 +02:00
Style/EmptyLines:
2014-07-21 14:27:32 +02:00
Enabled: true
# Keep a blank line before and after private.
Style/EmptyLinesAroundAccessModifier:
Enabled: true
# Do not insert empty line after class definition and before closing class
Style/EmptyLinesAroundBody:
Enabled: true
# Use hash literal {} instead of Hash.new
Style/EmptyLiteral:
Enabled: true
# Prefer `each` over `for i`
Style/For:
Enabled: true
# Wrap your assignment in condition if you mean it, otherwise it is most likely equality check
Lint/AssignmentInCondition:
Enabled: true
# Align blocks of code properly
Lint/BlockAlignment:
Enabled: true
# Do not use literal in conditions. We have it enabled for now
Lint/LiteralInCondition:
2014-07-21 13:09:37 +02:00
Enabled: false
2014-07-21 14:27:32 +02:00
# Prefer `Kernel#loop -> break` over `begin -> while`
Lint/Loop:
Enabled: true
# do not put space before arguments when they are in parentheses
Lint/ParenthesesAsGroupedExpression:
Enabled: true
2014-07-21 14:37:26 +02:00
# Do not rescue Exceptions class itself
2014-07-21 14:27:32 +02:00
Lint/RescueException:
Enabled: true
2014-07-21 14:37:26 +02:00
# do not shadow local variables in blocks, choose other name
2014-07-21 14:27:32 +02:00
Lint/ShadowingOuterLocalVariable:
2014-07-21 14:37:26 +02:00
Enabled: true
2014-07-21 13:09:37 +02:00
2014-07-21 14:37:26 +02:00
# use _ or variable_name to explicitly mark variable as unused
2014-07-21 14:27:32 +02:00
Lint/UnusedBlockArgument:
2014-07-21 14:37:26 +02:00
Enabled: true
2014-07-21 13:09:37 +02:00
2014-07-21 14:37:26 +02:00
# use _ or _argument_name to explicitly mark argument as unused
2014-07-21 14:27:32 +02:00
Lint/UnusedMethodArgument:
2014-07-21 14:37:26 +02:00
Enabled: true
2014-07-21 14:27:32 +02:00
2014-07-21 14:37:26 +02:00
# avoid useless assignment
2014-07-21 14:27:32 +02:00
Lint/UselessAssignment:
2014-07-21 14:37:26 +02:00
Enabled: true
2014-07-21 13:09:37 +02:00
2014-07-21 14:49:05 +02:00
# Do not use variables in void context
2014-07-21 14:27:32 +02:00
Lint/Void:
2014-07-21 14:45:17 +02:00
Enabled: true
2014-07-21 14:27:32 +02:00
2014-07-21 13:09:37 +02:00
AllCops:
Include:
- Rakefile
- config.ru
Exclude:
- db/schema.rb
- features/**/*