fatfreecrm/fat_free_crm

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-02-02 11:21:41 +0300 using RuboCop version 0.52.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: 1
# Configuration parameters: Include.
# Include: **/Gemfile, **/gems.rb
Bundler/DuplicatedGem:
  Exclude:
    - 'Gemfile'

# Offense count: 1
# Cop supports --auto-correct.
Layout/EmptyLinesAroundArguments:
  Exclude:
    - 'lib/fat_free_crm/permissions.rb'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideArrayLiteralBrackets:
  Exclude:
    - 'db/seeds/fields.rb'

# Offense count: 20
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
  Enabled: false

# Offense count: 2
Lint/BooleanSymbol:
  Exclude:
    - 'config/initializers/ransack.rb'

# Offense count: 1
Lint/Debugger:
  Exclude:
    - 'app/controllers/entities/opportunities_controller.rb'

# Offense count: 1
Lint/DuplicateMethods:
  Exclude:
    - 'lib/gravatar_image_tag.rb'

# Offense count: 22
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleAlignWith, 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: 5
Lint/RescueException:
  Exclude:
    - 'lib/fat_free_crm/mail_processor/base.rb'
    - 'lib/tasks/ffcrm/update_data.rake'

# Offense count: 2
Lint/ReturnInVoidContext:
  Exclude:
    - 'app/models/setting.rb'
    - 'app/models/users/preference.rb'

# Offense count: 1
Lint/UriEscapeUnescape:
  Exclude:
    - 'lib/gravatar_image_tag.rb'

# 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: 57

# Offense count: 4
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
  Max: 4

# Offense count: 14
# Configuration parameters: CountComments.
Metrics/ClassLength:
  Max: 209

# Offense count: 29
Metrics/CyclomaticComplexity:
  Max: 14

# Offense count: 102
# Configuration parameters: CountComments.
Metrics/MethodLength:
  Max: 38

# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ModuleLength:
  Max: 382

# Offense count: 27
Metrics/PerceivedComplexity:
  Max: 15

# Offense count: 12
Naming/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: 1
# Configuration parameters: Blacklist.
# Blacklist: END, (?-mix:EO[A-Z]{1})
Naming/HeredocDelimiterNaming:
  Exclude:
    - 'app/controllers/passwords_controller.rb'

# Offense count: 5
# 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/inputs/date_time_input.rb'
    - 'app/models/entities/opportunity.rb'
    - 'app/models/users/user.rb'
    - 'lib/fat_free_crm/fields.rb'
    - 'lib/fat_free_crm/mail_processor/base.rb'

# Offense count: 12
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, normalcase, non_integer
Naming/VariableNumber:
  Exclude:
    - 'spec/controllers/home_controller_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Performance/HashEachMethods:
  Exclude:
    - 'app/controllers/entities/opportunities_controller.rb'
    - 'lib/fat_free_crm/errors.rb'

# 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: 1
Style/CaseEquality:
  Exclude:
    - 'app/models/fields/field.rb'

# Offense count: 18
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# 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: 2
Style/CommentedKeyword:
  Exclude:
    - 'app/models/users/authentication.rb'
    - 'db/migrate/20100928030617_drop_openid_tables.rb'

# Offense count: 4
Style/DoubleNegation:
  Exclude:
    - 'app/helpers/application_helper.rb'
    - 'app/models/entities/opportunity.rb'
    - 'app/models/polymorphic/task.rb'
    - 'lib/gravatar_image_tag.rb'

# Offense count: 1
Style/EvalWithLocation:
  Exclude:
    - 'lib/fat_free_crm/permissions.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: when_needed, always, never
Style/FrozenStringLiteralComment:
  Exclude:
    - 'db/schema.rb'

# 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: 46
# Configuration parameters: MinBodyLength.
Style/GuardClause:
  Enabled: false

# Offense count: 2
Style/IdenticalConditionalBranches:
  Exclude:
    - 'app/helpers/application_helper.rb'

# Offense count: 49
# Cop supports --auto-correct.
Style/IfUnlessModifier:
  Enabled: false

# Offense count: 16
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# 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: 1
Style/MixinUsage:
  Exclude:
    - 'spec/helpers/fields_helper_spec.rb'

# Offense count: 2
Style/MultilineBlockChain:
  Exclude:
    - 'lib/fat_free_crm/core_ext/string.rb'
    - 'lib/tasks/ffcrm/demo.rake'

# Offense count: 2
Style/MultilineTernaryOperator:
  Exclude:
    - 'app/models/users/authentication.rb'

# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# 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: 16
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, 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'
    - '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: 8
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
  Exclude:
    - '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: 1924
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
  Max: 390