# This configuration was generated by # `rubocop --auto-gen-config` # on 2019-03-26 12:32:08 -0300 using RuboCop version 0.66.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity. # SupportedStylesAlignWith: keyword, variable, start_of_line Layout/EndAlignment: Exclude: - 'app/models/post/image_uploader.rb' # Offense count: 1 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'app/controllers/invitadxs_controller.rb' # Offense count: 4 Lint/DuplicateMethods: Exclude: - 'app/models/post.rb' - 'app/models/site.rb' # Offense count: 1 Lint/HandleExceptions: Exclude: - 'app/controllers/posts_controller.rb' # Offense count: 1 Lint/NonLocalExitFromIterator: Exclude: - 'app/models/invitadx.rb' # Offense count: 1 Lint/ShadowingOuterLocalVariable: Exclude: - 'app/models/post.rb' # Offense count: 3 Lint/UnderscorePrefixedVariableName: Exclude: - 'app/models/post.rb' - 'app/models/post/template_field.rb' - 'app/models/site.rb' # Offense count: 2 Lint/UselessAssignment: Exclude: - 'app/models/invitadx.rb' - 'app/models/site.rb' # Offense count: 19 Metrics/AbcSize: Max: 58 # Offense count: 3 # Configuration parameters: CountComments, ExcludedMethods. # ExcludedMethods: refine Metrics/BlockLength: Max: 31 # Offense count: 3 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 379 Exclude: - 'app/models/post.rb' # Offense count: 6 Metrics/CyclomaticComplexity: Max: 18 # Offense count: 15 # Configuration parameters: CountComments, ExcludedMethods. Metrics/MethodLength: Max: 34 # Offense count: 5 Metrics/PerceivedComplexity: Max: 20 # Offense count: 1 # Configuration parameters: EnforcedStyleForLeadingUnderscores. # SupportedStylesForLeadingUnderscores: disallowed, required, optional Naming/MemoizedInstanceVariableName: Exclude: - 'app/models/post/image_uploader.rb' # Offense count: 1 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? # MethodDefinitionMacros: define_method, define_singleton_method Naming/PredicateName: Exclude: - 'spec/**/*' - 'app/models/post.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect. Performance/TimesMap: Exclude: - 'app/models/site.rb' - 'test/models/site_test.rb' # Offense count: 102 # Configuration parameters: AllowedChars. Style/AsciiComments: Exclude: - 'app/controllers/application_controller.rb' - 'app/controllers/i18n_controller.rb' - 'app/controllers/posts_controller.rb' - 'app/controllers/sites_controller.rb' - 'app/models/invitadx.rb' - 'app/models/jekyll_i18n.rb' - 'app/models/post.rb' - 'app/models/post/image_uploader.rb' - 'app/models/post/template_field.rb' - 'app/models/site.rb' - 'app/models/usuaria.rb' - 'app/policies/post_policy.rb' - 'config/routes.rb' - 'lib/warden/imap.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'app/models/post/image_uploader.rb' - 'config/initializers/commonmarker.rb' - 'config/initializers/warden.rb' - 'test/test_helper.rb' # Offense count: 25 Style/Documentation: Enabled: false # Offense count: 5 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'app/controllers/posts_controller.rb' - 'app/models/invitadx.rb' - 'app/models/post.rb' - 'lib/warden/email_and_password.rb' # Offense count: 7 # Cop supports --auto-correct. Style/IfUnlessModifier: Exclude: - 'app/models/invitadx.rb' - 'app/models/jekyll_i18n.rb' - 'app/models/post.rb' - 'bin/bundle' # Offense count: 2 Style/MixinUsage: Exclude: - 'bin/setup' - 'bin/update' # Offense count: 1 Style/OptionalArguments: Exclude: - 'app/models/site.rb' # Offense count: 66 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 190