demarches-normaliennes/.rubocop.yml

1502 lines
22 KiB
YAML
Raw Permalink Normal View History

2017-12-22 16:50:20 +01:00
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- ./lib/cops/add_concurrent_index.rb
- ./lib/cops/application_name.rb
- ./lib/cops/unscoped.rb
2022-08-31 11:23:25 +02:00
inherit_mode:
merge:
- Include
2017-06-13 11:27:41 +02:00
AllCops:
2023-04-24 11:24:50 +02:00
TargetRubyVersion: 3.2
DisabledByDefault: true
SuggestExtensions: false
NewCops: enable
2022-08-31 11:23:25 +02:00
Include:
- "app/**/*.prawn"
2017-06-13 11:27:41 +02:00
Exclude:
- "db/schema.rb"
- "db/migrate/20190730153555_recreate_structure.rb"
- "bin/*"
- "node_modules/**/*"
2021-02-17 19:06:55 +01:00
- "vendor/**/*"
2017-06-13 11:27:41 +02:00
DS/AddConcurrentIndex:
Enabled: true
DS/ApplicationName:
Enabled: true
Exclude:
- './config/initializers/01_application_name.rb'
- './lib/cops/application_name.rb'
- './lib/linters/application_name_linter.rb'
- "./spec/**/*"
DS/Unscoped:
Enabled: true
Bundler/DuplicatedGem:
2017-06-12 13:34:04 +02:00
Enabled: true
Bundler/InsecureProtocolSource:
Enabled: true
Bundler/OrderedGems:
2018-12-21 11:50:52 +01:00
Enabled: true
Gemspec/DuplicatedAssignment:
Enabled: true
Gemspec/OrderedDependencies:
Enabled: true
Gemspec/RequiredRubyVersion:
Enabled: true
Layout/AccessModifierIndentation:
2017-06-12 13:34:04 +02:00
Enabled: true
2020-03-05 11:03:39 +01:00
Layout/ArrayAlignment:
2017-06-12 13:34:19 +02:00
Enabled: true
2020-03-05 11:03:39 +01:00
Layout/HashAlignment:
Enabled: false
2020-03-05 11:03:39 +01:00
Layout/ParameterAlignment:
2017-06-12 13:49:51 +02:00
Enabled: true
EnforcedStyle: with_fixed_indentation
Layout/BlockAlignment:
Enabled: false
Layout/BlockEndNewline:
2017-06-12 14:10:49 +02:00
Enabled: true
Layout/CaseIndentation:
2017-06-12 15:05:46 +02:00
Enabled: true
EnforcedStyle: end
Layout/ClassStructure:
Enabled: false
Layout/ClosingParenthesisIndentation:
2017-06-12 13:34:04 +02:00
Enabled: true
Layout/CommentIndentation:
Enabled: true
Layout/ConditionPosition:
2018-12-24 17:37:45 +01:00
Enabled: true
Layout/DefEndAlignment:
Enabled: false
Layout/DotPosition:
2017-06-12 15:16:15 +02:00
Enabled: true
Layout/ElseAlignment:
2017-06-12 13:34:04 +02:00
Enabled: true
Layout/EmptyComment:
Enabled: true
Layout/EmptyLineAfterMagicComment:
2017-06-12 13:34:04 +02:00
Enabled: true
Layout/EmptyLineBetweenDefs:
Enabled: true
Layout/EmptyLines:
2017-06-12 15:33:02 +02:00
Enabled: true
Layout/EmptyLineAfterGuardClause:
Enabled: false
# FIXME: private should not be a column name on TypeDeChamp
Layout/EmptyLinesAroundAccessModifier:
Enabled: true
2020-03-05 11:03:39 +01:00
EnforcedStyle: around
Exclude:
- "spec/factories/type_de_champ.rb"
Layout/EmptyLinesAroundArguments:
Enabled: true
Layout/EmptyLinesAroundBeginBody:
2017-06-12 13:34:04 +02:00
Enabled: true
Layout/EmptyLinesAroundBlockBody:
Enabled: true
Layout/EmptyLinesAroundClassBody:
Enabled: true
Layout/EmptyLinesAroundExceptionHandlingKeywords:
Enabled: false
Layout/EmptyLinesAroundMethodBody:
Enabled: true
Layout/EmptyLinesAroundModuleBody:
Enabled: true
Layout/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
Layout/EndOfLine:
2017-06-12 13:34:04 +02:00
Enabled: true
EnforcedStyle: lf
Layout/ExtraSpacing:
2017-06-12 16:12:03 +02:00
Enabled: true
Exclude:
- "Guardfile"
Layout/FirstArrayElementLineBreak:
Enabled: true
Layout/FirstHashElementLineBreak:
Enabled: true
Layout/FirstMethodArgumentLineBreak:
Enabled: false
Layout/FirstMethodParameterLineBreak:
Enabled: false
Layout/FirstParameterIndentation:
Enabled: true
2020-03-05 11:03:39 +01:00
Layout/FirstArrayElementIndentation:
2018-01-15 18:54:57 +01:00
Enabled: true
2018-01-15 18:56:00 +01:00
EnforcedStyle: consistent
2020-03-05 11:03:39 +01:00
Layout/AssignmentIndentation:
2018-01-15 18:56:00 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Layout/FirstHashElementIndentation:
2018-01-15 19:02:12 +01:00
Enabled: true
EnforcedStyle: consistent
2020-03-05 11:03:39 +01:00
Layout/HeredocIndentation:
2018-01-15 19:09:08 +01:00
Enabled: true
Layout/IndentationConsistency:
Enabled: true
2020-03-05 11:03:39 +01:00
EnforcedStyle: normal
Layout/IndentationWidth:
2017-08-28 11:18:38 +02:00
Enabled: true
Layout/InitialIndentation:
Enabled: true
Layout/LeadingCommentSpace:
Enabled: true
Layout/MultilineArrayBraceLayout:
Enabled: true
EnforcedStyle: new_line
Layout/MultilineAssignmentLayout:
Enabled: false
Layout/MultilineBlockLayout:
Enabled: true
Layout/MultilineHashBraceLayout:
Enabled: true
EnforcedStyle: new_line
Layout/MultilineMethodCallBraceLayout:
Enabled: true
EnforcedStyle: symmetrical
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
Layout/MultilineMethodDefinitionBraceLayout:
Enabled: true
Layout/MultilineOperationIndentation:
Enabled: false
Layout/RescueEnsureAlignment:
Enabled: true
Layout/SpaceAfterColon:
2018-01-15 21:43:56 +01:00
Enabled: true
Layout/SpaceAfterComma:
2018-12-24 17:37:57 +01:00
Enabled: true
Layout/SpaceAfterMethodName:
Enabled: true
Layout/SpaceAfterNot:
2018-01-15 21:45:50 +01:00
Enabled: true
Layout/SpaceAfterSemicolon:
Enabled: true
Layout/SpaceAroundBlockParameters:
Enabled: true
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true
Layout/SpaceAroundKeyword:
Enabled: true
Layout/SpaceAroundOperators:
Enabled: true
Layout/SpaceBeforeBlockBraces:
Enabled: true
Layout/SpaceBeforeComma:
2018-01-15 21:49:52 +01:00
Enabled: true
Layout/SpaceBeforeComment:
Enabled: true
Layout/SpaceBeforeFirstArg:
Enabled: true
Layout/SpaceBeforeSemicolon:
Enabled: true
Layout/SpaceInLambdaLiteral:
Enabled: true
EnforcedStyle: require_space
Layout/SpaceInsideArrayPercentLiteral:
Enabled: true
Layout/SpaceInsideBlockBraces:
Enabled: true
Layout/SpaceInsideHashLiteralBraces:
Enabled: true
2018-01-12 13:16:08 +01:00
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: true
EnforcedStyle: no_space
2018-01-12 13:16:08 +01:00
Layout/SpaceInsideParens:
Enabled: true
Layout/SpaceInsidePercentLiteralDelimiters:
Enabled: true
Layout/SpaceInsideRangeLiteral:
Enabled: true
2018-03-06 10:42:49 +01:00
Layout/SpaceInsideReferenceBrackets:
Enabled: true
Layout/SpaceInsideStringInterpolation:
Enabled: true
Layout/IndentationStyle:
2018-01-15 22:12:58 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Layout/TrailingEmptyLines:
Enabled: true
Layout/TrailingWhitespace:
Enabled: true
Lint/AmbiguousBlockAssociation:
Enabled: false
Lint/AmbiguousOperator:
2018-03-06 12:09:57 +01:00
Enabled: true
Lint/AmbiguousRegexpLiteral:
2018-03-06 12:09:57 +01:00
Enabled: true
Lint/AssignmentInCondition:
2018-03-06 12:01:45 +01:00
Enabled: true
Lint/BigDecimalNew:
Enabled: true
Lint/BooleanSymbol:
Enabled: true
Lint/CircularArgumentReference:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/Debugger:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/DeprecatedClassMethods:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/DuplicateCaseCondition:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/DuplicateMethods:
2018-03-06 12:03:32 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Lint/DuplicateHashKey:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/EachWithObjectArgument:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/ElseLayout:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/EmptyEnsure:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/EmptyExpression:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/EmptyInterpolation:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/EmptyWhen:
2018-03-06 12:03:32 +01:00
Enabled: true
Lint/EnsureReturn:
Enabled: false
Lint/FloatOutOfRange:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/FormatParameterMismatch:
2018-12-24 17:37:45 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Lint/SuppressedException:
Enabled: false
Lint/ImplicitStringConcatenation:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/IneffectiveAccessModifier:
Enabled: false
Lint/InheritException:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/InterpolationCheck:
Enabled: true
2018-03-06 10:42:49 +01:00
Lint/LiteralAsCondition:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/LiteralInInterpolation:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/Loop:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/MissingCopEnableDirective:
Enabled: true
2020-03-05 11:03:39 +01:00
Lint/MultipleComparison:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/NestedMethodDefinition:
Enabled: false
Lint/NestedPercentLiteral:
Enabled: true
Lint/NextWithoutAccumulator:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/NonLocalExitFromIterator:
Enabled: false
Lint/NumberConversion:
Enabled: false
Lint/OrderedMagicComments:
Enabled: true
Lint/ParenthesesAsGroupedExpression:
Enabled: true
Exclude:
- "spec/**/*"
Lint/PercentStringArray:
Enabled: false
Lint/PercentSymbolArray:
Enabled: false
Lint/RandOne:
Enabled: false
Lint/RedundantWithIndex:
Enabled: true
Lint/RedundantWithObject:
Enabled: true
Lint/RegexpAsCondition:
Enabled: true
Lint/RequireParentheses:
Enabled: false
Lint/RescueException:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/RescueType:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/ReturnInVoidContext:
Enabled: false
Lint/SafeNavigationChain:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/ScriptPermission:
Enabled: false
Lint/ShadowedArgument:
Enabled: true
Lint/ShadowedException:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/ShadowingOuterLocalVariable:
Enabled: false
2020-03-05 11:03:39 +01:00
Lint/RedundantStringCoercion:
Enabled: true
Lint/Syntax:
2018-01-12 13:16:08 +01:00
Enabled: true
Lint/UnderscorePrefixedVariableName:
Enabled: true
Lint/UnifiedInteger:
2018-12-24 17:37:45 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Lint/RedundantCopDisableDirective:
2018-12-24 17:37:45 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Lint/RedundantCopEnableDirective:
Enabled: true
2020-03-05 11:03:39 +01:00
Lint/RedundantRequireStatement:
Enabled: true
2020-03-05 11:03:39 +01:00
Lint/RedundantSplatExpansion:
Enabled: false
Lint/UnreachableCode:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/UnusedBlockArgument:
Enabled: true
Lint/UnusedMethodArgument:
Enabled: false
2018-01-12 13:16:08 +01:00
Lint/UriEscapeUnescape:
Enabled: false
Lint/UriRegexp:
Enabled: false
Lint/UselessAccessModifier:
Enabled: false
Lint/UselessAssignment:
2018-12-24 18:00:32 +01:00
Enabled: true
Exclude:
- "spec/**/*"
Lint/BinaryOperatorWithIdenticalOperands:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/UselessSetterCall:
2018-12-24 17:37:45 +01:00
Enabled: true
Lint/Void:
2018-12-24 17:37:45 +01:00
Enabled: true
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
2020-03-05 11:03:39 +01:00
Layout/LineLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
2018-01-12 13:16:08 +01:00
Naming/AccessorMethodName:
Enabled: false
Naming/AsciiIdentifiers:
Enabled: false
Naming/BinaryOperatorParameterName:
Enabled: false
Naming/ClassAndModuleCamelCase:
Enabled: false
Naming/ConstantName:
Enabled: false
Naming/FileName:
Enabled: false
Naming/HeredocDelimiterCase:
Enabled: true
2018-01-12 13:16:08 +01:00
Naming/HeredocDelimiterNaming:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
2018-01-12 13:16:08 +01:00
Naming/MethodName:
Enabled: false
Naming/PredicateName:
Enabled: false
2020-03-05 11:03:39 +01:00
Naming/BlockParameterName:
Enabled: true
2020-03-05 11:03:39 +01:00
Naming/MethodParameterName:
Enabled: false
2018-01-12 13:16:08 +01:00
Naming/VariableName:
Enabled: false
Naming/VariableNumber:
Enabled: false
Performance/Caller:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/CaseWhenSplat:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/Casecmp:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/CompareWithBlock:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/Count:
2017-11-20 18:55:59 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Exclude:
- "app/services/administrateur_usage_statistics_service.rb"
Performance/Detect:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/DoubleStartEndWith:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/EndWith:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/FixedSize:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/FlatMap:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/RangeInclude:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/RedundantBlockCall:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/RedundantMatch:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/RedundantMerge:
2017-11-20 18:55:59 +01:00
Enabled: true
Style/HashTransformValues:
Enabled: true
2020-03-05 11:03:39 +01:00
Style/RedundantSortBy:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/RegexpMatch:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/ReverseEach:
2017-11-20 18:55:59 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Style/Sample:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/Size:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/StartWith:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/StringReplacement:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/TimesMap:
2017-11-20 18:55:59 +01:00
Enabled: true
Performance/UnfreezeString:
Enabled: true
Performance/UriDefaultParser:
Enabled: true
Rails:
Enabled: true
Rails/ActionControllerFlashBeforeRender:
Enabled: true
Rails/ActionControllerTestCase:
Enabled: true
Rails/ActionFilter:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/ActionOrder:
Enabled: false
Rails/ActiveRecordAliases:
Enabled: true
Rails/ActiveRecordCallbacksOrder:
Enabled: false
Rails/ActiveSupportAliases:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/ActiveSupportOnLoad:
Enabled: true
Rails/AddColumnIndex:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/AfterCommitOverride:
2018-03-06 13:44:29 +01:00
Enabled: true
2020-03-05 11:03:39 +01:00
Rails/ApplicationController:
Enabled: false
Rails/ApplicationJob:
Enabled: true
Rails/ApplicationRecord:
Enabled: true
Rails/AttributeDefaultBlockValue:
Enabled: true
2020-03-05 11:03:39 +01:00
Rails/Blank:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/BulkChangeTable:
Enabled: false
Rails/CompactBlank:
Enabled: true
2018-01-12 13:16:08 +01:00
Rails/CreateTableWithTimestamps:
Enabled: true
Exclude:
- db/migrate/2015*.rb
- db/migrate/2016*.rb
- db/migrate/2017*.rb
- db/migrate/2018*.rb
- db/migrate/20200630140356_create_traitements.rb
2023-06-30 11:26:23 +02:00
- db/migrate/20230630091637_create_dossier_assignments.rb
2018-01-12 13:16:08 +01:00
Rails/Date:
Enabled: false
Rails/Delegate:
Enabled: false
Rails/DelegateAllowBlank:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/DeprecatedActiveModelErrorsMethods:
Enabled: false # re-enable in rails 7
Rails/DotSeparatedKeys:
Enabled: true
Rails/DuplicateAssociation:
Enabled: true
Rails/DuplicateScope:
Enabled: true
Rails/DurationArithmetic:
Enabled: true
Rails/DynamicFindBy:
2018-03-06 13:44:29 +01:00
Enabled: true
Exclude:
- spec/system/**/*.rb
Rails/EagerEvaluationLogMessage:
Enabled: true
Rails/EnumUniqueness:
2018-03-06 13:44:29 +01:00
Enabled: true
2018-01-12 13:16:08 +01:00
Rails/EnvironmentComparison:
Enabled: false
Rails/Exit:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/ExpandedDateRange:
Enabled: true
Rails/FilePath:
2020-03-05 11:03:39 +01:00
Enabled: false
Rails/FindBy:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/FindById:
Enabled: true
Rails/FindEach:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/FreezeTime:
Enabled: true
Rails/HasAndBelongsToMany:
Enabled: false
2018-01-12 13:16:08 +01:00
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/HttpPositionalArguments:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/HttpStatus:
Enabled: false
Rails/I18nLazyLookup:
Enabled: true
Rails/I18nLocaleAssignment:
Enabled: true
Rails/I18nLocaleTexts:
Enabled: false
Rails/IgnoredColumnsAssignment:
Enabled: true
Rails/Inquiry:
Enabled: true
2018-01-12 13:16:08 +01:00
Rails/InverseOf:
Enabled: true
2018-01-12 13:16:08 +01:00
Rails/LexicallyScopedActionFilter:
Enabled: false
Rails/MailerName:
Enabled: true
Rails/MatchRoute:
Enabled: true
Rails/MigrationClassName:
Enabled: true
Rails/NegateInclude:
Enabled: false
Rails/NotNullColumn:
Enabled: false
Rails/Output:
Enabled: false
Rails/OutputSafety:
Enabled: true
Rails/Pluck:
Enabled: false
Rails/PluckInWhere:
Enabled: true
Rails/PluralizationGrammar:
2018-03-06 13:44:29 +01:00
Enabled: true
2018-01-12 13:16:08 +01:00
Rails/Presence:
2018-03-06 13:44:29 +01:00
Enabled: true
2018-01-12 13:16:08 +01:00
Rails/Present:
Enabled: true
Rails/RakeEnvironment:
Enabled: false
Rails/ReadWriteAttribute:
Enabled: false
2020-03-05 11:03:39 +01:00
Rails/RedundantAllowNil:
Enabled: false
Rails/RedundantPresenceValidationOnBelongsTo:
Enabled: true
Rails/RedundantReceiverInWithOptions:
Enabled: true
Rails/RedundantTravelBack:
Enabled: true
Rails/RelativeDateConstant:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/RenderInline:
Enabled: true
Rails/RenderPlainText:
Enabled: true
Rails/RequestReferer:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/ResponseParsedBody:
Enabled: true
Rails/ReversibleMigration:
Enabled: false
Rails/RootJoinChain:
Enabled: true
Rails/RootPathnameMethods:
Enabled: true
Rails/RootPublicPath:
Enabled: true
Rails/SaveBang:
Enabled: false
Rails/ScopeArgs:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/ShortI18n:
Enabled: true
Rails/SkipsModelValidations:
Enabled: false
Rails/SquishedSQLHeredocs:
Enabled: true
Rails/StripHeredoc:
Enabled: true
Rails/ThreeStateBooleanColumn:
Enabled: true
Exclude:
- db/migrate/2019*
- db/migrate/2020*
- db/migrate/2021*
- db/migrate/2022*
- db/migrate/202301*
- db/migrate/202303*
Rails/TimeZone:
2019-02-18 11:56:09 +01:00
EnforcedStyle: strict
Rails/TimeZoneAssignment:
Enabled: true
Rails/ToFormattedS:
Enabled: true
Rails/ToSWithArgument:
Enabled: true
Rails/TopLevelHashWithIndifferentAccess:
Enabled: true
Rails/TransactionExitStatement:
Enabled: true
Rails/UniqBeforePluck:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/UniqueValidationWithoutIndex:
Enabled: true
2018-01-12 13:16:08 +01:00
Rails/UnknownEnv:
Enabled: false
Rails/UnusedIgnoredColumns:
Enabled: true
Rails/Validation:
2018-03-06 13:44:29 +01:00
Enabled: true
Rails/WhereEquals:
Enabled: true
Rails/WhereExists:
Enabled: true
Rails/WhereMissing:
Enabled: true
Rails/WhereNot:
Enabled: true
Rails/WhereNotWithMultipleConditions:
Enabled: true
RSpec/Focus:
2017-12-22 16:50:20 +01:00
Enabled: true
Security/Eval:
2018-03-06 11:53:26 +01:00
Enabled: true
Security/JSONLoad:
2018-03-06 11:53:26 +01:00
Enabled: true
Security/MarshalLoad:
2018-03-06 11:53:26 +01:00
Enabled: true
Security/Open:
Enabled: true
Security/YAMLLoad:
2018-03-06 11:53:26 +01:00
Enabled: true
Style/AccessModifierDeclarations:
Enabled: false
Style/Alias:
Enabled: false
Style/AndOr:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/ArrayJoin:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/AsciiComments:
Enabled: false
Style/Attr:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/AutoResourceCleanup:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/BarePercentLiterals:
Enabled: false
Style/BeginBlock:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/BlockComments:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/BlockDelimiters:
2018-12-18 22:08:14 +01:00
Enabled: true
Exclude:
- "spec/**/*"
Style/CaseEquality:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/CharacterLiteral:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/ClassCheck:
2018-12-18 22:18:08 +01:00
Enabled: true
Style/ClassMethods:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/ClassVars:
Enabled: false
Style/CollectionMethods:
2019-09-12 11:26:22 +02:00
PreferredMethods:
collect: map
collect!: map!
inject: reduce
detect: find
select: filter
find_all: filter
Enabled: true
Style/ColonMethodCall:
2018-12-18 22:08:41 +01:00
Enabled: true
Style/ColonMethodDefinition:
Enabled: true
Style/CommandLiteral:
Enabled: false
Style/CommentAnnotation:
Enabled: false
2018-01-12 13:16:08 +01:00
Style/CommentedKeyword:
Enabled: false
2018-01-12 13:16:08 +01:00
Style/ConditionalAssignment:
Enabled: false
Style/Copyright:
Enabled: false
2018-01-12 13:16:08 +01:00
Style/DateTime:
Enabled: false
Style/DefWithParentheses:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/Dir:
Enabled: true
Style/Documentation:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/EachForSimpleLoop:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/EachWithObject:
Enabled: false
Style/EmptyBlockParameter:
Enabled: true
Style/EmptyCaseCondition:
Enabled: false
Style/EmptyElse:
Enabled: false
Style/EmptyLambdaParameter:
Enabled: true
Style/EmptyLiteral:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/EmptyMethod:
Enabled: false
Style/Encoding:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/EndBlock:
2018-12-18 21:59:11 +01:00
Enabled: true
2018-01-12 13:16:08 +01:00
Style/EvalWithLocation:
Enabled: false
2018-01-12 13:16:08 +01:00
Style/EvenOdd:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/ExpandPathArguments:
Enabled: true
Style/FileRead:
Enabled: true
Style/FileWrite:
Enabled: true
Style/For:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/FormatString:
2018-12-18 21:55:45 +01:00
Enabled: true
Style/FormatStringToken:
2020-03-05 11:03:39 +01:00
Enabled: false
2018-12-18 21:59:11 +01:00
EnforcedStyle: template
Style/FrozenStringLiteralComment:
Enabled: false
Style/GlobalVars:
2018-12-18 21:59:11 +01:00
Enabled: true
Style/GuardClause:
Enabled: false
Style/HashSyntax:
Enabled: false
Style/IdenticalConditionalBranches:
Enabled: false
Style/IfInsideElse:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/IfUnlessModifierOfIfUnless:
Enabled: false
Style/IfWithSemicolon:
Enabled: false
Style/ImplicitRuntimeError:
Enabled: false
Style/InfiniteLoop:
Enabled: false
Style/InlineComment:
Enabled: false
Style/InverseMethods:
Enabled: false
Style/Lambda:
Enabled: false
Style/LambdaCall:
Enabled: false
Style/LineEndConcatenation:
Enabled: false
Style/MethodCallWithArgsParentheses:
Enabled: false
Style/MethodCallWithoutArgsParentheses:
Enabled: false
Style/MethodCalledOnDoEndBlock:
Enabled: false
Style/MethodDefParentheses:
Enabled: true
Lint/MissingSuper:
Enabled: false
Style/MinMax:
Enabled: true
Style/MissingElse:
Enabled: false
Style/MissingRespondToMissing:
Enabled: false
Style/MixinGrouping:
Enabled: false
2018-01-12 13:16:08 +01:00
Style/MixinUsage:
Enabled: false
Style/ModuleFunction:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/MultilineIfModifier:
Enabled: false
Style/MultilineIfThen:
Enabled: false
Style/MultilineMemoization:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Style/MultipleComparison:
Enabled: false
Style/MutableConstant:
Enabled: false
Style/NegatedIf:
Enabled: false
Style/NegatedWhile:
Enabled: false
Style/NestedModifier:
Enabled: false
Style/NestedParenthesizedCalls:
Enabled: false
Style/NestedTernaryOperator:
Enabled: false
Style/Next:
Enabled: false
Style/NilComparison:
Enabled: false
Style/NonNilCheck:
Enabled: false
Style/Not:
Enabled: false
Style/NumericLiteralPrefix:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/OneLineConditional:
Enabled: false
Style/OptionHash:
Enabled: false
Style/OptionalArguments:
Enabled: false
Style/ParallelAssignment:
Enabled: false
Style/OrAssignment:
Enabled: true
Style/ParenthesesAroundCondition:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/PercentQLiterals:
Enabled: false
Style/PerlBackrefs:
Enabled: false
Style/PreferredHashMethods:
Enabled: false
Style/Proc:
Enabled: false
Style/RaiseArgs:
Enabled: false
2018-01-12 13:16:08 +01:00
Style/RandomWithOffset:
Enabled: false
Style/RedundantBegin:
Enabled: false
Style/RedundantConditional:
Enabled: true
Style/RedundantException:
Enabled: false
Style/RedundantFreeze:
Enabled: false
Style/RedundantParentheses:
Enabled: false
Style/RedundantReturn:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/RescueModifier:
Enabled: false
2018-01-12 13:16:08 +01:00
Style/RescueStandardError:
Enabled: false
Style/ReturnNil:
Enabled: false
Style/SafeNavigation:
Enabled: false
Style/SelfAssignment:
Enabled: false
Style/Semicolon:
Enabled: false
Style/Send:
Enabled: false
Style/SignalException:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Style/SingleLineMethods:
Enabled: false
Style/SpecialGlobalVars:
Enabled: false
Style/StabbyLambdaParentheses:
Enabled: false
Style/StderrPuts:
Enabled: true
Style/StringHashKeys:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
Style/StringMethods:
Enabled: false
Style/StructInheritance:
Enabled: false
Style/SymbolArray:
2018-10-01 14:26:45 +02:00
Enabled: true
EnforcedStyle: brackets
Style/SymbolLiteral:
2018-10-01 14:22:01 +02:00
Enabled: true
Style/SymbolProc:
2018-10-01 14:20:14 +02:00
Enabled: true
IgnoredMethods: [after]
Style/TernaryParentheses:
Enabled: false
Style/TrailingBodyOnClass:
Enabled: true
Style/TrailingBodyOnMethodDefinition:
Enabled: true
Style/TrailingBodyOnModule:
Enabled: true
Style/TrailingCommaInArguments:
2018-10-01 14:08:12 +02:00
Enabled: true
Style/TrailingCommaInArrayLiteral:
Enabled: true
Style/TrailingCommaInHashLiteral:
Enabled: true
Style/TrailingMethodEndStatement:
Enabled: true
Style/TrailingUnderscoreVariable:
Enabled: false
Style/TrivialAccessors:
Enabled: false
Style/UnlessElse:
Enabled: true
2020-03-05 11:03:39 +01:00
Style/RedundantCapitalW:
2018-10-01 14:03:44 +02:00
Enabled: true
2020-03-05 11:03:39 +01:00
Style/RedundantInterpolation:
2018-10-01 14:03:05 +02:00
Enabled: true
2020-03-05 11:03:39 +01:00
Style/RedundantPercentQ:
2018-10-01 14:01:31 +02:00
Enabled: true
Style/VariableInterpolation:
2018-10-01 14:00:48 +02:00
Enabled: true
Style/WhenThen:
Enabled: false
Style/WhileUntilDo:
2018-10-01 13:58:39 +02:00
Enabled: true
# Disabled because we don't want to use modifiers
Style/WhileUntilModifier:
Enabled: false
Style/WordArray:
2018-10-01 13:55:12 +02:00
Enabled: true
EnforcedStyle: brackets
Style/YodaCondition:
2018-10-01 13:53:55 +02:00
Enabled: true
Style/ZeroLengthPredicate:
2018-10-01 13:53:15 +02:00
Enabled: true