# This configuration was generated by # `rubocop --auto-gen-config` # on 2017-07-17 11:19:24 +0930 using RuboCop version 0.49.1. # 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: 17 # Cop supports --auto-correct. # Configuration parameters: Include, TreatCommentsAsGroupSeparators. # Include: **/Gemfile, **/gems.rb Bundler/OrderedGems: Exclude: - 'Gemfile' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: with_first_parameter, with_fixed_indentation Layout/AlignParameters: Exclude: - 'app/views/leads/index.xls.builder' - 'spec/views/leads/_sidebar_show.haml_spec.rb' # Offense count: 28 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth. # SupportedStyles: case, end Layout/CaseIndentation: Exclude: - 'app/helpers/application_helper.rb' - 'app/helpers/leads_helper.rb' - 'app/models/polymorphic/task.rb' - 'spec/controllers/tasks_controller_spec.rb' # Offense count: 27 # Cop supports --auto-correct. Layout/ClosingParenthesisIndentation: Exclude: - 'app/helpers/admin/application_helper.rb' - 'app/helpers/application_helper.rb' - 'app/helpers/leads_helper.rb' - 'app/models/fields/custom_field.rb' - 'lib/fat_free_crm/gem_ext/rails/engine.rb' - 'spec/models/entities/contact_spec.rb' - 'spec/models/entities/opportunity_spec.rb' - 'spec/models/polymorphic/version_spec.rb' - 'spec/views/comments/edit.js.haml_spec.rb' # Offense count: 3 # Cop supports --auto-correct. Layout/EmptyLineAfterMagicComment: Exclude: - 'db/schema.rb' - 'fat_free_crm.gemspec' - 'spec/models/polymorphic/task_spec.rb' # Offense count: 1 # Cop supports --auto-correct. Layout/EmptyLinesAroundExceptionHandlingKeywords: Exclude: - 'app/controllers/comments_controller.rb' # Offense count: 105 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. Layout/ExtraSpacing: Enabled: false # Offense count: 9 # 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: - 'lib/fat_free_crm/mail_processor/base.rb' - 'spec/models/entities/contact_spec.rb' - 'spec/models/entities/opportunity_spec.rb' # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent Layout/IndentHeredoc: Exclude: - 'spec/lib/mail_processor/sample_emails/dropbox.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineArrayBraceLayout: Exclude: - 'app/helpers/accounts_helper.rb' - 'config/initializers/views.rb' # Offense count: 20 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: symmetrical, new_line, same_line Layout/MultilineMethodCallBraceLayout: Exclude: - 'app/helpers/admin/application_helper.rb' - 'app/helpers/application_helper.rb' - 'app/helpers/leads_helper.rb' - 'app/models/fields/custom_field.rb' - 'lib/fat_free_crm/gem_ext/rails/engine.rb' - 'lib/fat_free_crm/mail_processor/base.rb' - 'spec/models/polymorphic/version_spec.rb' - 'spec/views/comments/edit.js.haml_spec.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: aligned, indented, indented_relative_to_receiver Layout/MultilineMethodCallIndentation: Exclude: - 'lib/development_tasks/license.rake' - 'lib/fat_free_crm/gem_ext/rails/engine.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Layout/SpaceAroundOperators: Exclude: - 'app/views/application/show.atom.builder' - 'app/views/application/show.rss.builder' - 'app/views/campaigns/index.xls.builder' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. Layout/SpaceBeforeFirstArg: Exclude: - 'app/views/home/index.atom.builder' # Offense count: 20 # Configuration parameters: AllowSafeAssignment. Lint/AssignmentInCondition: Enabled: false # Offense count: 23 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect. # SupportedStylesAlignWith: keyword, variable, start_of_line Lint/EndAlignment: Enabled: false # Offense count: 2 Lint/HandleExceptions: Exclude: - 'config/environments/test.rb' - 'lib/fat_free_crm/gem_dependencies.rb' # Offense count: 4 Lint/ImplicitStringConcatenation: Exclude: - 'db/migrate/20121221033947_fix_country_mapping.rb' - 'lib/tasks/ffcrm/update_data.rake' # Offense count: 4 Lint/IneffectiveAccessModifier: Exclude: - 'db/migrate/20100928030620_remove_uuid.rb' - 'lib/gravatar_image_tag.rb' # Offense count: 3 Lint/RescueException: Exclude: - 'lib/fat_free_crm/mail_processor/base.rb' - 'lib/tasks/ffcrm/update_data.rake' # Offense count: 1 Lint/ScriptPermission: Exclude: - 'Rakefile' # Offense count: 4 # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. Lint/UselessAccessModifier: Exclude: - 'app/models/fields/field.rb' - 'app/models/users/user.rb' - 'db/migrate/20100928030620_remove_uuid.rb' - 'lib/gravatar_image_tag.rb' # Offense count: 3 Lint/UselessAssignment: Exclude: - 'app/helpers/application_helper.rb' - 'app/views/home/index.atom.builder' # Offense count: 131 Metrics/AbcSize: Max: 55 # Offense count: 292 # Configuration parameters: CountComments, ExcludedMethods. Metrics/BlockLength: Max: 775 # Offense count: 3 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 4 # Offense count: 15 # Configuration parameters: CountComments. Metrics/ClassLength: Max: 195 # Offense count: 29 Metrics/CyclomaticComplexity: Max: 13 # Offense count: 103 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 38 # Offense count: 2 # Configuration parameters: CountComments. Metrics/ModuleLength: Max: 391 # Offense count: 28 Metrics/PerceivedComplexity: Max: 15 # Offense count: 3 # Cop supports --auto-correct. Performance/CompareWithBlock: Exclude: - 'app/views/application/index.atom.builder' - 'app/views/application/show.atom.builder' - 'app/views/home/index.atom.builder' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect. Performance/StartWith: Exclude: - 'app/helpers/versions_helper.rb' # Offense count: 1 Security/Eval: Exclude: - 'lib/development_tasks/gem.rake' # Offense count: 1 Security/MarshalLoad: Exclude: - 'app/models/users/preference.rb' # Offense count: 4 # Cop supports --auto-correct. Security/YAMLLoad: Exclude: - 'app/models/setting.rb' - 'db/migrate/20120405080727_change_subscribed_users_to_set.rb' - 'db/migrate/20120405080742_change_further_subscribed_users_to_set.rb' - 'lib/tasks/ffcrm/config.rake' # Offense count: 12 Style/AccessorMethodName: Exclude: - 'app/controllers/application_controller.rb' - 'app/controllers/entities/accounts_controller.rb' - 'app/controllers/entities/campaigns_controller.rb' - 'app/controllers/entities/contacts_controller.rb' - 'app/controllers/entities/leads_controller.rb' - 'app/helpers/application_helper.rb' - 'app/inputs/date_pair_input.rb' - 'db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb' - 'spec/controllers/entities/accounts_controller_spec.rb' - 'spec/controllers/entities/campaigns_controller_spec.rb' - 'spec/controllers/entities/opportunities_controller_spec.rb' - 'spec/support/macros.rb' # Offense count: 12 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'app/controllers/authentications_controller.rb' - 'app/controllers/entities/accounts_controller.rb' - 'app/controllers/entities/campaigns_controller.rb' - 'app/controllers/entities/contacts_controller.rb' - 'app/controllers/entities/leads_controller.rb' - 'app/controllers/entities/opportunities_controller.rb' - 'app/models/entities/contact.rb' - 'app/models/entities/lead.rb' - 'app/models/users/user.rb' - 'lib/fat_free_crm/core_ext/string.rb' - 'spec/support/auth_macros.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: always, conditionals Style/AndOr: Exclude: - 'config/unicorn.rb' - 'lib/fat_free_crm/mail_processor/base.rb' # Offense count: 8 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods. # SupportedStyles: line_count_based, semantic, braces_for_chaining # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object # FunctionalMethods: let, let!, subject, watch # IgnoredMethods: lambda, proc, it Style/BlockDelimiters: Exclude: - 'spec/models/entities/contact_spec.rb' - 'spec/models/entities/opportunity_spec.rb' # Offense count: 1 Style/CaseEquality: Exclude: - 'app/models/fields/field.rb' # Offense count: 18 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Enabled: false # Offense count: 19 Style/ClassVars: Exclude: - 'app/models/fields/field.rb' - 'app/models/observers/lead_observer.rb' - 'app/models/observers/opportunity_observer.rb' - 'app/models/observers/task_observer.rb' - 'app/models/setting.rb' - 'db/migrate/20100928030620_remove_uuid.rb' - 'lib/fat_free_crm/callback.rb' - 'lib/fat_free_crm/i18n.rb' - 'lib/fat_free_crm/mail_processor/dropbox.rb' - 'lib/fat_free_crm/tabs.rb' - 'lib/fat_free_crm/view_factory.rb' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'app/controllers/application_controller.rb' - 'app/controllers/entities/contacts_controller.rb' - 'app/controllers/entities/opportunities_controller.rb' - 'app/controllers/lists_controller.rb' - 'app/controllers/tasks_controller.rb' - 'app/helpers/application_helper.rb' - 'app/helpers/opportunities_helper.rb' - 'app/models/entities/contact.rb' - 'lib/fat_free_crm/permissions.rb' - 'spec/spec_helper.rb' - 'spec/support/macros.rb' # Offense count: 126 Style/Documentation: Enabled: false # Offense count: 3 Style/DoubleNegation: Exclude: - 'app/helpers/application_helper.rb' - 'app/models/polymorphic/task.rb' - 'lib/gravatar_image_tag.rb' # Offense count: 1 # Cop supports --auto-correct. Style/EmptyCaseCondition: Exclude: - 'app/models/polymorphic/task.rb' # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: compact, expanded Style/EmptyMethod: Exclude: - 'app/controllers/admin/fields_controller.rb' - 'app/controllers/admin/settings_controller.rb' - 'app/controllers/admin/tags_controller.rb' - 'app/controllers/entities_controller.rb' - 'db/migrate/20120216042541_is_paranoid_to_paper_trail.rb' - 'db/migrate/20120316045804_activities_to_versions.rb' - 'db/migrate/20121221033947_fix_country_mapping.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: format, sprintf, percent Style/FormatString: Exclude: - 'spec/factories/shared_factories.rb' # Offense count: 29 # Configuration parameters: SupportedStyles. # SupportedStyles: annotated, template Style/FormatStringToken: EnforcedStyle: template # Offense count: 486 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: when_needed, always, never Style/FrozenStringLiteralComment: Enabled: false # Offense count: 3 # Configuration parameters: AllowedVariables. Style/GlobalVars: Exclude: - 'db/migrate/20100928030598_create_sessions.rb' - 'db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb' # Offense count: 44 # Configuration parameters: MinBodyLength. Style/GuardClause: Enabled: false # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys Style/HashSyntax: Exclude: - 'app/views/application/index.rss.builder' - 'app/views/application/show.rss.builder' - 'app/views/home/index.atom.builder' - 'app/views/home/index.rss.builder' # Offense count: 2 Style/IdenticalConditionalBranches: Exclude: - 'app/helpers/application_helper.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: InverseMethods, InverseBlocks. Style/InverseMethods: Exclude: - 'app/models/entities/account.rb' - 'app/models/entities/campaign.rb' - 'app/models/entities/contact.rb' - 'app/models/entities/lead.rb' - 'app/models/entities/opportunity.rb' # Offense count: 16 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: line_count_dependent, lambda, literal Style/Lambda: Exclude: - 'app/models/entities/account.rb' - 'app/models/entities/campaign.rb' - 'app/models/entities/contact.rb' - 'app/models/entities/lead.rb' - 'app/models/entities/opportunity.rb' - 'app/models/polymorphic/task.rb' - 'app/models/users/user.rb' # Offense count: 2 Style/MethodMissing: Exclude: - 'app/models/setting.rb' - 'lib/fat_free_crm/fields.rb' # Offense count: 2 Style/MultilineBlockChain: Exclude: - 'lib/fat_free_crm/core_ext/string.rb' - 'lib/tasks/ffcrm/demo.rake' # Offense count: 2 # Cop supports --auto-correct. Style/MultilineIfModifier: Exclude: - 'app/views/application/index.atom.builder' - 'app/views/application/show.atom.builder' # Offense count: 2 Style/MultilineTernaryOperator: Exclude: - 'app/models/users/authentication.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles. # SupportedStyles: skip_modifier_ifs, always Style/Next: Exclude: - 'app/helpers/application_helper.rb' - 'db/migrate/20120316045804_activities_to_versions.rb' - 'db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb' - 'lib/tasks/ffcrm/missing_translations.rake' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: Strict. Style/NumericLiterals: MinDigits: 15 # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'app/helpers/admin/users_helper.rb' - 'app/helpers/application_helper.rb' - 'app/helpers/campaigns_helper.rb' - 'app/helpers/tasks_helper.rb' - 'app/models/fields/custom_field.rb' - 'app/models/polymorphic/task.rb' - 'app/models/users/user.rb' - 'lib/tasks/ffcrm/demo.rake' # Offense count: 190 # Cop supports --auto-correct. # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Enabled: false # Offense count: 4 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? Style/PredicateName: Exclude: - 'spec/**/*' - 'app/inputs/date_time_input.rb' - 'app/models/users/user.rb' - 'lib/fat_free_crm/fields.rb' - 'lib/fat_free_crm/mail_processor/base.rb' # Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'app/controllers/entities/contacts_controller.rb' - 'app/controllers/entities/opportunities_controller.rb' - 'app/helpers/application_helper.rb' - 'app/models/list.rb' - 'lib/development_tasks/license.rake' - 'lib/fat_free_crm/core_ext/string.rb' - 'lib/fat_free_crm/mail_processor/dropbox.rb' - 'spec/helpers/application_helper_spec.rb' - 'spec/helpers/users_helper_spec.rb' - 'spec/lib/mail_processor/dropbox_spec.rb' - 'spec/views/contacts/update.js.haml_spec.rb' - 'spec/views/opportunities/update.js.haml_spec.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: ConvertCodeThatCanStartToReturnNil. Style/SafeNavigation: Exclude: - 'app/controllers/tasks_controller.rb' - 'app/models/observers/opportunity_observer.rb' - 'db/migrate/20100928030618_add_admin_to_users.rb' # Offense count: 9 # Cop supports --auto-correct. # Configuration parameters: AllowAsExpressionSeparator. Style/Semicolon: Exclude: - 'app/controllers/application_controller.rb' - 'app/controllers/entities/leads_controller.rb' - 'lib/fat_free_crm/permissions.rb' - 'lib/tasks/ffcrm/setup.rake' - 'spec/models/fields/custom_field_date_pair_spec.rb' - 'spec/models/fields/custom_field_spec.rb' - 'spec/support/macros.rb' # Offense count: 2 # 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: - 'spec/support/auth_macros.rb' # Offense count: 6 # Cop supports --auto-correct. Style/UnneededInterpolation: Exclude: - 'app/views/accounts/index.xls.builder' - 'app/views/campaigns/index.xls.builder' - 'app/views/contacts/index.xls.builder' - 'app/views/leads/index.xls.builder' - 'app/views/opportunities/index.xls.builder' - 'app/views/tasks/index.xls.builder' # Offense count: 12 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: snake_case, normalcase, non_integer Style/VariableNumber: Exclude: - 'spec/controllers/home_controller_spec.rb' # Offense count: 18 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles, WordRegex. # SupportedStyles: percent, brackets Style/WordArray: EnforcedStyle: percent MinSize: 5