# This configuration was generated by # `rubocop --auto-gen-config` # on 2017-11-08 21:07:14 -0800 using RuboCop version 0.51.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: 2 # Cop supports --auto-correct. # Configuration parameters: Include, TreatCommentsAsGroupSeparators. # Include: **/Gemfile, **/gems.rb Bundler/OrderedGems: Exclude: - 'Gemfile' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: Include, TreatCommentsAsGroupSeparators. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'comfortable_mexican_sofa.gemspec' # Offense count: 39 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles, IndentationWidth. # SupportedStyles: outdent, indent Layout/AccessModifierIndentation: EnforcedStyle: outdent # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles. # SupportedHashRocketStyles: key, separator, table # SupportedColonStyles: key, separator, table # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit Layout/AlignHash: Exclude: - 'db/upgrade_migrations/05_upgrade_to_1_4_0.rb' # Offense count: 64 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: with_first_parameter, with_fixed_indentation Layout/AlignParameters: Enabled: false # Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth. # SupportedStyles: case, end Layout/CaseIndentation: Exclude: - 'app/controllers/comfy/admin/cms/files_controller.rb' - 'app/controllers/comfy/admin/cms/revisions_controller.rb' - 'lib/comfortable_mexican_sofa/content/params_parser.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: leading, trailing Layout/DotPosition: Exclude: - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb' # Offense count: 10 # Cop supports --auto-correct. Layout/ElseAlignment: Exclude: - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'app/controllers/comfy/admin/cms/revisions_controller.rb' - 'app/controllers/comfy/cms/base_controller.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb' - 'tmp/app/controllers/comfy/cms/base_controller.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLineAfterMagicComment: Exclude: - 'test/test_helper.rb' # Offense count: 20 # Cop supports --auto-correct. Layout/EmptyLines: Exclude: - 'comfortable_mexican_sofa.gemspec' - 'lib/comfortable_mexican_sofa/access_control/admin_authentication.rb' - 'lib/comfortable_mexican_sofa/seeds.rb' - 'lib/comfortable_mexican_sofa/seeds/file.rb' - 'lib/comfortable_mexican_sofa/seeds/layout.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'lib/comfortable_mexican_sofa/seeds/snippet.rb' - 'test/fixtures/generators/scaffold/model.rb' - 'test/integration/seeds_test.rb' - 'test/models/file_test.rb' - 'test/test_helper.rb' # Offense count: 14 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, no_empty_lines Layout/EmptyLinesAroundBlockBody: Exclude: - 'comfortable_mexican_sofa.gemspec' - 'config/cms_routes.rb' - 'config/initializers/comfortable_mexican_sofa.rb' - 'db/schema.rb' - 'lib/comfortable_mexican_sofa/form_builder.rb' - 'lib/comfortable_mexican_sofa/routes/cms_admin.rb' - 'lib/comfortable_mexican_sofa/seeds/file.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'test/fixtures/generators/cms/routes.rb' - 'test/fixtures/generators/scaffold/routes.rb' - 'tmp/config/routes.rb' # Offense count: 147 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines Layout/EmptyLinesAroundClassBody: Enabled: false # Offense count: 8 # Cop supports --auto-correct. Layout/EmptyLinesAroundExceptionHandlingKeywords: Exclude: - 'app/controllers/comfy/admin/cms/files_controller.rb' - 'app/controllers/comfy/admin/cms/revisions_controller.rb' - 'test/lib/seeds/files_test.rb' - 'test/lib/seeds/layouts_test.rb' - 'test/lib/seeds/pages_test.rb' - 'test/lib/seeds/snippets_test.rb' - 'test/models/layout_test.rb' - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb' # Offense count: 8 # Cop supports --auto-correct. Layout/EmptyLinesAroundMethodBody: Exclude: - 'app/models/comfy/cms/layout.rb' - 'db/migrate/01_create_cms.rb' - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb' - 'lib/comfortable_mexican_sofa/render_methods.rb' - 'lib/comfortable_mexican_sofa/routes/cms.rb' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines Layout/EmptyLinesAroundModuleBody: Exclude: - 'app/controllers/concerns/comfy/paginate.rb' - 'app/helpers/comfy/cms_helper.rb' - 'lib/comfortable_mexican_sofa/content/params_parser.rb' - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb' - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb' - 'lib/comfortable_mexican_sofa/render_methods.rb' - 'lib/comfortable_mexican_sofa/seeds.rb' - 'lib/comfortable_mexican_sofa/view_hooks.rb' # Offense count: 25 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. Layout/ExtraSpacing: Enabled: false # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses Layout/FirstParameterIndentation: Exclude: - 'test/models/page_test.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_brackets Layout/IndentArray: EnforcedStyle: consistent # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Layout/IndentHash: Exclude: - 'test/controllers/comfy/admin/cms/pages_controller_test.rb' - 'test/controllers/comfy/admin/cms/translations_controller_test.rb' - 'test/models/categorization_test.rb' - 'test/models/page_test.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: normal, rails Layout/IndentationConsistency: Exclude: - 'app/controllers/comfy/admin/cms/files_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb' # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'app/controllers/comfy/admin/cms/revisions_controller.rb' - 'app/controllers/comfy/cms/base_controller.rb' - 'lib/comfortable_mexican_sofa/content/tags/file.rb' - 'lib/comfortable_mexican_sofa/content/tags/files.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'test/integration/seeds_test.rb' - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb' - 'tmp/app/controllers/comfy/cms/base_controller.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineArrayBraceLayout: Exclude: - 'test/lib/revisions_test.rb' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineHashBraceLayout: Exclude: - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' - 'test/controllers/comfy/admin/cms/pages_controller_test.rb' - 'test/lib/revisions_test.rb' - 'test/models/page_test.rb' # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineMethodCallBraceLayout: Exclude: - 'test/controllers/comfy/admin/cms/revisions_controller_test.rb' - 'test/integration/render_cms_test.rb' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: aligned, indented, indented_relative_to_receiver Layout/MultilineMethodCallIndentation: Exclude: - 'app/controllers/comfy/admin/cms/files_controller.rb' - 'app/controllers/comfy/cms/assets_controller.rb' - 'lib/comfortable_mexican_sofa/seeds/file.rb' - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb' - 'tmp/app/controllers/comfy/cms/assets_controller.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: aligned, indented Layout/MultilineOperationIndentation: Exclude: - 'app/models/comfy/cms/layout.rb' - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb' - 'lib/comfortable_mexican_sofa/content/tags/snippet.rb' - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb' - 'lib/comfortable_mexican_sofa/seeds/file.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/SpaceAfterColon: Exclude: - 'test/controllers/comfy/admin/cms/files_controller_test.rb' - 'test/lib/revisions_test.rb' # Offense count: 30 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Layout/SpaceAroundOperators: Enabled: false # Offense count: 48 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, SupportedStylesForEmptyBraces. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceBeforeBlockBraces: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Layout/SpaceBeforeFirstArg: Exclude: - 'lib/comfortable_mexican_sofa.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: require_no_space, require_space Layout/SpaceInLambdaLiteral: Exclude: - 'app/models/comfy/cms/page.rb' - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb' # Offense count: 120 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideBlockBraces: Enabled: false # Offense count: 12 # Cop supports --auto-correct. Layout/SpaceInsideBrackets: Exclude: - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'app/models/comfy/cms/layout.rb' - 'app/models/comfy/cms/page.rb' - 'db/migrate/00_create_active_storage_tables.active_storage.rb' - 'lib/comfortable_mexican_sofa/content/params_parser.rb' - 'test/integration/i18n_test.rb' - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb' # Offense count: 241 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Enabled: false # Offense count: 38 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: final_newline, final_blank_line Layout/TrailingBlankLines: Enabled: false # Offense count: 40 # Cop supports --auto-correct. Layout/TrailingWhitespace: Exclude: - 'app/controllers/application_controller.rb' - 'db/upgrade_migrations/04_upgrade_to_1_3_0.rb' - 'db/upgrade_migrations/05_upgrade_to_1_4_0.rb' - 'db/upgrade_migrations/06_upgrade_to_1_5_0.rb' - 'db/upgrade_migrations/07_upgrade_to_1_6_0.rb' - 'db/upgrade_migrations/08_upgrade_to_1_12_0.rb' - 'lib/comfortable_mexican_sofa/error.rb' - 'lib/tasks/comfortable_mexican_sofa.rake' # Offense count: 10 Lint/AmbiguousBlockAssociation: Exclude: - 'test/controllers/comfy/admin/cms/pages_controller_test.rb' - 'test/lib/seeds/files_test.rb' - 'test/lib/seeds/pages_test.rb' - 'test/lib/seeds/snippets_test.rb' - 'test/models/layout_test.rb' - 'test/models/page_test.rb' # Offense count: 2 Lint/AmbiguousOperator: Exclude: - 'app/controllers/comfy/admin/cms/base_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb' # Offense count: 11 Lint/AmbiguousRegexpLiteral: Exclude: - 'app/models/comfy/cms/site.rb' - 'test/controllers/comfy/admin/cms/pages_controller_test.rb' - 'test/controllers/comfy/admin/cms/translations_controller_test.rb' - 'test/controllers/comfy/cms/content_controller_test.rb' - 'test/integration/view_hooks_test.rb' # Offense count: 12 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Exclude: - 'app/controllers/comfy/admin/cms/base_controller.rb' - 'app/models/comfy/cms/site.rb' - 'lib/comfortable_mexican_sofa/content/renderer.rb' - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb' - 'lib/comfortable_mexican_sofa/render_methods.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb' # Offense count: 1 Lint/BooleanSymbol: Exclude: - 'db/upgrade_migrations/07_upgrade_to_1_6_0.rb' # Offense count: 3 Lint/DuplicateMethods: Exclude: - 'lib/comfortable_mexican_sofa/content/block.rb' - 'lib/comfortable_mexican_sofa/content/tags/file_link.rb' - 'test/controllers/comfy/admin/cms/revisions_controller_test.rb' # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect. # SupportedStylesAlignWith: keyword, variable, start_of_line Lint/EndAlignment: Exclude: - 'app/controllers/comfy/admin/cms/files_controller.rb' - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'app/controllers/comfy/admin/cms/revisions_controller.rb' - 'app/controllers/comfy/cms/base_controller.rb' - 'lib/comfortable_mexican_sofa/content/params_parser.rb' - 'lib/comfortable_mexican_sofa/content/tags/file.rb' - 'lib/comfortable_mexican_sofa/content/tags/files.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb' - 'tmp/app/controllers/comfy/cms/base_controller.rb' # Offense count: 3 Lint/HandleExceptions: Exclude: - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'test/test_helper.rb' - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb' # Offense count: 1 Lint/IneffectiveAccessModifier: Exclude: - 'app/models/comfy/cms/site.rb' # Offense count: 3 Lint/NestedMethodDefinition: Exclude: - 'lib/comfortable_mexican_sofa/render_methods.rb' # Offense count: 1 Lint/RescueWithoutErrorClass: Exclude: - 'test/test_helper.rb' # Offense count: 5 Lint/ShadowingOuterLocalVariable: Exclude: - 'app/models/comfy/cms/site.rb' - 'lib/comfortable_mexican_sofa/render_methods.rb' - 'lib/comfortable_mexican_sofa/seeds/layout.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' # Offense count: 20 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. Lint/UnusedMethodArgument: Exclude: - 'lib/comfortable_mexican_sofa/content/tags/checkbox.rb' - 'lib/comfortable_mexican_sofa/content/tags/date.rb' - 'lib/comfortable_mexican_sofa/content/tags/datetime.rb' - 'lib/comfortable_mexican_sofa/content/tags/file.rb' - 'lib/comfortable_mexican_sofa/content/tags/files.rb' - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb' - 'lib/comfortable_mexican_sofa/content/tags/markdown.rb' - 'lib/comfortable_mexican_sofa/content/tags/number.rb' - 'lib/comfortable_mexican_sofa/content/tags/text.rb' - 'lib/comfortable_mexican_sofa/content/tags/textarea.rb' - 'lib/comfortable_mexican_sofa/content/tags/wysiwyg.rb' - 'lib/comfortable_mexican_sofa/seeds/layout.rb' - 'test/lib/content/renderer_test.rb' - 'test/test_helper.rb' # Offense count: 5 Lint/UselessAssignment: Exclude: - 'test/controllers/comfy/cms/content_controller_test.rb' - 'test/integration/render_cms_test.rb' - 'test/models/page_test.rb' # Offense count: 141 Metrics/AbcSize: Max: 95 # Offense count: 14 # Configuration parameters: CountComments, ExcludedMethods. Metrics/BlockLength: Max: 127 # Offense count: 23 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 487 # Offense count: 14 Metrics/CyclomaticComplexity: Max: 20 # Offense count: 653 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: Max: 187 # Offense count: 140 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 106 # Offense count: 1 # Configuration parameters: CountKeywordArgs. Metrics/ParameterLists: Max: 6 # Offense count: 6 Metrics/PerceivedComplexity: Max: 21 # Offense count: 1 Naming/ClassAndModuleCamelCase: Exclude: - 'db/upgrade_migrations/09_upgrade_to_2_0_0.rb' # Offense count: 1 # Configuration parameters: Blacklist. # Blacklist: END, (?-mix:EO[A-Z]{1}) Naming/HeredocDelimiterNaming: Exclude: - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' # Offense count: 16 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: snake_case, normalcase, non_integer Naming/VariableNumber: Exclude: - 'test/models/layout_test.rb' - 'test/models/page_test.rb' # Offense count: 1 # Cop supports --auto-correct. Performance/Casecmp: Exclude: - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb' # Offense count: 1 # Cop supports --auto-correct. Performance/RedundantMatch: Exclude: - 'app/models/comfy/cms/site.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: MaxKeyValuePairs. Performance/RedundantMerge: Exclude: - 'test/test_helper.rb' # Offense count: 4 # Cop supports --auto-correct. Security/YAMLLoad: Exclude: - 'lib/comfortable_mexican_sofa/seeds/file.rb' - 'lib/comfortable_mexican_sofa/seeds/layout.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'lib/comfortable_mexican_sofa/seeds/snippet.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'lib/comfortable_mexican_sofa.rb' # Offense count: 1 Style/AsciiComments: Exclude: - 'config/initializers/comfortable_mexican_sofa.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: percent_q, bare_percent Style/BarePercentLiterals: Exclude: - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: braces, no_braces, context_dependent Style/BracesAroundHashParameters: Exclude: - 'lib/comfortable_mexican_sofa/content/tags/file.rb' - 'lib/comfortable_mexican_sofa/content/tags/files.rb' # Offense count: 94 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Enabled: false # Offense count: 1 Style/ClassVars: Exclude: - 'lib/comfortable_mexican_sofa/view_hooks.rb' # Offense count: 8 # Cop supports --auto-correct. Style/ColonMethodCall: Exclude: - 'app/models/comfy/cms/page.rb' - 'test/models/page_test.rb' # Offense count: 2 Style/DateTime: Exclude: - 'test/models/page_test.rb' # Offense count: 94 Style/Documentation: Enabled: false # Offense count: 9 # Cop supports --auto-correct. Style/EachWithObject: Exclude: - 'app/controllers/comfy/admin/cms/revisions_controller.rb' - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb' - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb' # Offense count: 2 # Cop supports --auto-correct. Style/EmptyCaseCondition: Exclude: - 'lib/comfortable_mexican_sofa/content/params_parser.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: compact, expanded Style/EmptyMethod: Exclude: - 'test/integration/render_cms_test.rb' # Offense count: 6 # Cop supports --auto-correct. Style/Encoding: Exclude: - 'app/models/comfy/cms/layout.rb' - 'comfortable_mexican_sofa.gemspec' - 'config/initializers/comfortable_mexican_sofa.rb' - 'lib/comfortable_mexican_sofa/configuration.rb' - 'test/lib/configuration_test.rb' - 'test/test_helper.rb' # Offense count: 188 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: when_needed, always, never Style/FrozenStringLiteralComment: Enabled: false # Offense count: 22 # Configuration parameters: MinBodyLength. Style/GuardClause: Enabled: false # Offense count: 80 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys Style/HashSyntax: Enabled: false # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: MaxLineLength. Style/IfUnlessModifier: Exclude: - 'lib/comfortable_mexican_sofa/content/renderer.rb' - 'lib/comfortable_mexican_sofa/content/tags/asset.rb' - 'lib/comfortable_mexican_sofa/content/tags/partial.rb' - 'lib/comfortable_mexican_sofa/content/tags/template.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: line_count_dependent, lambda, literal Style/Lambda: Exclude: - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'app/models/comfy/cms/file.rb' - 'app/models/comfy/cms/page.rb' - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb' - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles. # SupportedStyles: call, braces Style/LambdaCall: EnforcedStyle: braces # Offense count: 1 Style/MultilineBlockChain: Exclude: - 'lib/comfortable_mexican_sofa/content/params_parser.rb' # Offense count: 1 # Cop supports --auto-correct. Style/MultilineIfModifier: Exclude: - 'app/models/comfy/cms/page.rb' # Offense count: 1 Style/MultilineTernaryOperator: Exclude: - 'app/models/comfy/cms/page.rb' # Offense count: 6 # Cop supports --auto-correct. Style/MutableConstant: Exclude: - 'app/models/comfy/cms/file.rb' - 'db/upgrade_migrations/08_upgrade_to_1_12_0.rb' - 'lib/comfortable_mexican_sofa/content/tags/helper.rb' - 'lib/comfortable_mexican_sofa/version.rb' - 'test/lib/seeds/layouts_test.rb' # Offense count: 11 # Cop supports --auto-correct. # Configuration parameters: Strict. Style/NumericLiterals: MinDigits: 9 # Offense count: 15 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'app/controllers/comfy/admin/cms/layouts_controller.rb' - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'app/controllers/comfy/admin/cms/sites_controller.rb' - 'app/controllers/comfy/admin/cms/snippets_controller.rb' - 'app/models/comfy/cms/layout.rb' - 'app/models/comfy/cms/page.rb' - 'lib/comfortable_mexican_sofa/content/renderer.rb' - 'tmp/app/controllers/comfy/admin/cms/layouts_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/sites_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/snippets_controller.rb' # Offense count: 2 # Cop supports --auto-correct. Style/ParallelAssignment: Exclude: - 'app/helpers/comfy/cms_helper.rb' - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' # Offense count: 16 # Cop supports --auto-correct. # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - 'app/controllers/comfy/admin/cms/base_controller.rb' - 'app/models/concerns/comfy/cms/with_fragments.rb' - 'db/upgrade_migrations/08_upgrade_to_1_12_0.rb' - 'lib/comfortable_mexican_sofa/content/tags/helper.rb' - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' - 'lib/comfortable_mexican_sofa/seeds.rb' - 'test/generators/scaffold_generator_test.rb' - 'test/integration/sites_test.rb' - 'test/lib/seeds/files_test.rb' - 'test/lib/seeds/pages_test.rb' - 'test/lib/seeds/snippets_test.rb' - 'test/models/site_test.rb' - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb' # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: compact, exploded Style/RaiseArgs: Exclude: - 'app/controllers/comfy/cms/base_controller.rb' - 'app/controllers/comfy/cms/content_controller.rb' - 'lib/comfortable_mexican_sofa/render_methods.rb' - 'tmp/app/controllers/comfy/cms/base_controller.rb' - 'tmp/app/controllers/comfy/cms/content_controller.rb' # Offense count: 1 # Cop supports --auto-correct. Style/RedundantConditional: Exclude: - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb' # Offense count: 2 # Cop supports --auto-correct. Style/RedundantParentheses: Exclude: - 'test/lib/content/renderer_test.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. Style/RedundantReturn: Exclude: - 'app/models/comfy/cms/layout.rb' - 'app/models/comfy/cms/page.rb' - 'app/models/comfy/cms/site.rb' - 'lib/comfortable_mexican_sofa/content/renderer.rb' - 'lib/comfortable_mexican_sofa/view_hooks.rb' # Offense count: 150 # Cop supports --auto-correct. Style/RedundantSelf: Enabled: false # Offense count: 11 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'app/controllers/comfy/cms/base_controller.rb' - 'app/models/comfy/cms/site.rb' - 'lib/comfortable_mexican_sofa/content/params_parser.rb' - 'lib/comfortable_mexican_sofa/render_methods.rb' - 'test/integration/sites_test.rb' - 'tmp/app/controllers/comfy/cms/base_controller.rb' # Offense count: 17 # Cop supports --auto-correct. # Configuration parameters: ConvertCodeThatCanStartToReturnNil. Style/SafeNavigation: Exclude: - 'app/controllers/comfy/admin/cms/base_controller.rb' - 'app/controllers/comfy/admin/cms/pages_controller.rb' - 'app/controllers/comfy/cms/base_controller.rb' - 'app/controllers/comfy/cms/content_controller.rb' - 'app/helpers/comfy/cms_helper.rb' - 'app/models/comfy/cms/fragment.rb' - 'lib/comfortable_mexican_sofa/content/tags/file.rb' - 'lib/comfortable_mexican_sofa/content/tags/file_link.rb' - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb' - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb' - 'tmp/app/controllers/comfy/cms/base_controller.rb' - 'tmp/app/controllers/comfy/cms/content_controller.rb' # Offense count: 1 # Cop supports --auto-correct. Style/SelfAssignment: Exclude: - 'lib/comfortable_mexican_sofa/content/tags/asset.rb' # Offense count: 14 # Cop supports --auto-correct. # Configuration parameters: AllowAsExpressionSeparator. Style/Semicolon: Exclude: - 'app/controllers/comfy/admin/cms/revisions_controller.rb' - 'test/models/page_test.rb' - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles. # SupportedStyles: use_perl_names, use_english_names Style/SpecialGlobalVars: EnforcedStyle: use_perl_names # Offense count: 1226 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Enabled: false # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: single_quotes, double_quotes Style/StringLiteralsInInterpolation: Exclude: - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb' # Offense count: 68 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: percent MinSize: 5 # Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: IgnoredMethods. # IgnoredMethods: respond_to, define_method Style/SymbolProc: Exclude: - 'app/models/comfy/cms/layout.rb' - 'app/models/concerns/comfy/cms/with_fragments.rb' - 'lib/comfortable_mexican_sofa/seeds/file.rb' - 'lib/comfortable_mexican_sofa/seeds/layout.rb' - 'lib/comfortable_mexican_sofa/seeds/page.rb' - 'lib/comfortable_mexican_sofa/seeds/snippet.rb' - 'lib/comfortable_mexican_sofa/view_hooks.rb' - 'test/controllers/comfy/admin/cms/pages_controller_test.rb' - 'test/lib/seeds/files_test.rb' - 'test/lib/seeds/pages_test.rb' - 'test/lib/seeds/snippets_test.rb' - 'test/models/layout_test.rb' - 'test/models/page_test.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma Style/TrailingCommaInArguments: Exclude: - 'test/controllers/comfy/cms/content_controller_test.rb' - 'test/fixtures/generators/scaffold/tests/model.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma Style/TrailingCommaInLiteral: Exclude: - 'test/controllers/comfy/admin/cms/files_controller_test.rb' - 'test/controllers/comfy/admin/cms/pages_controller_test.rb' - 'test/fixtures/generators/scaffold/tests/controller.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowNamedUnderscoreVariables. Style/TrailingUnderscoreVariable: Exclude: - 'lib/comfortable_mexican_sofa/content/params_parser.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist. # Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym Style/TrivialAccessors: Exclude: - 'lib/comfortable_mexican_sofa.rb' # Offense count: 1 # Cop supports --auto-correct. Style/WhileUntilDo: Exclude: - 'app/models/comfy/cms/page.rb' # Offense count: 14 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles, WordRegex. # SupportedStyles: percent, brackets Style/WordArray: EnforcedStyle: percent MinSize: 6 # Offense count: 1 # Cop supports --auto-correct. Style/ZeroLengthPredicate: Exclude: - 'lib/comfortable_mexican_sofa/content/renderer.rb'