jbox-web/redmine_git_hosting

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-08-03 12:28:02 UTC using RuboCop version 1.18.4.
# 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.
Lint/Loop:
  Exclude:
    - 'app/use_cases/gitolite_public_keys/generate_identifier.rb'

# Offense count: 4
Lint/MissingSuper:
  Exclude:
    - 'lib/redmine_git_hosting/gitolite_wrappers/base.rb'
    - 'lib/redmine_git_hosting/plugins/extenders/base_extender.rb'
    - 'lib/redmine_git_hosting/plugins/gitolite_plugin.rb'
    - 'lib/redmine_git_hosting/plugins/sweepers/base_sweeper.rb'

# Offense count: 1
Lint/NonLocalExitFromIterator:
  Exclude:
    - 'app/workers/githosting_shell_worker.rb'

# Offense count: 1
# Configuration parameters: Max, CountKeywordArgs.
Metrics/ParameterLists:
  MaxOptionalParameters: 4

# Offense count: 6
Naming/AccessorMethodName:
  Exclude:
    - 'app/models/concerns/gitolitable/paths.rb'
    - 'lib/redmine_git_hosting/gitolite_params/mailer_params.rb'
    - 'lib/redmine_git_hosting/recycle_bin/manager.rb'
    - 'lib/redmine_git_hosting/redmine_plugin_loader.rb'
    - 'spec/support/global_helpers.rb'

# Offense count: 3
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
  Exclude:
    - 'lib/redmine_git_hosting/shell_redirector.rb'

# Offense count: 4
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
  Exclude:
    - 'lib/redmine_git_hosting/config/gitolite_base.rb'
    - 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
    - 'lib/redmine_git_hosting/redmine_plugin_loader.rb'

# Offense count: 2
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
  Exclude:
    - 'app/models/concerns/gitolitable/validations.rb'
    - 'lib/redmine_git_hosting/patches/grack_auth_patch.rb'

# Offense count: 26
Performance/ChainArrayAllocation:
  Exclude:
    - 'app/models/concerns/gitolitable/notifications.rb'
    - 'app/models/concerns/gitolitable/users.rb'
    - 'app/models/repository_protected_branche.rb'
    - 'app/use_cases/repository_protected_branches/member_manager.rb'
    - 'db/migrate/20150823030100_migrate_protected_branches_users.rb'
    - 'lib/redmine_git_hosting/gitolite_wrappers/projects/common.rb'
    - 'lib/redmine_git_hosting/gitolite_wrappers/projects/move_repositories.rb'
    - 'lib/redmine_git_hosting/gitolite_wrappers/projects/move_repositories_tree.rb'
    - 'lib/redmine_git_hosting/gitolite_wrappers/projects/update_projects.rb'
    - 'lib/redmine_git_hosting/patches/changeset_patch.rb'
    - 'lib/redmine_git_hosting/patches/projects_controller_patch.rb'
    - 'lib/redmine_git_hosting/patches/user_patch.rb'
    - 'lib/redmine_git_hosting/recycle_bin/item_base.rb'

# Offense count: 1
# Cop supports --auto-correct.
Performance/RangeInclude:
  Exclude:
    - 'app/helpers/repository_mirrors_helper.rb'

# Offense count: 9
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
  Exclude:
    - 'app/models/repository/xitolite.rb'
    - 'app/models/repository_protected_branche.rb'

# Offense count: 2
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
  Exclude:
    - 'lib/redmine_git_hosting/config/base.rb'
    - 'lib/redmine_git_hosting/console_logger.rb'

# Offense count: 2
Rails/OutputSafety:
  Exclude:
    - 'app/helpers/gitolite_plugin_settings_helper.rb'
    - 'app/presenters/repository_presenter.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
  Exclude:
    - 'lib/redmine/scm/adapters/xitolite_adapter.rb'
    - 'lib/redmine_git_hosting/plugins/extenders/readme_creator.rb'

# Offense count: 2
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/UniqueValidationWithoutIndex:
  Exclude:
    - 'app/models/gitolite_public_key.rb'
    - 'app/models/repository_protected_branche.rb'

# Offense count: 3
# Cop supports --auto-correct.
Style/CaseLikeIf:
  Exclude:
    - 'lib/redmine/scm/adapters/xitolite_adapter.rb'
    - 'lib/redmine_git_hosting/plugins/sweepers/repository_deletor.rb'
    - 'lib/redmine_git_hosting/shell_redirector.rb'

# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Exclude:
    - 'app/models/repository/xitolite.rb'
    - 'app/models/repository_git_config_key/git_config.rb'
    - 'app/models/repository_git_config_key/option.rb'
    - 'lib/redmine_git_hosting/plugins/extenders/base_extender.rb'
    - 'lib/redmine_git_hosting/plugins/extenders/branch_updater.rb'
    - 'lib/redmine_git_hosting/plugins/extenders/config_key_deletor.rb'
    - 'lib/redmine_git_hosting/plugins/extenders/git_annex_creator.rb'
    - 'lib/redmine_git_hosting/plugins/extenders/readme_creator.rb'
    - 'lib/redmine_git_hosting/plugins/gitolite_plugin.rb'
    - 'lib/redmine_git_hosting/plugins/sweepers/base_sweeper.rb'
    - 'lib/redmine_git_hosting/plugins/sweepers/repository_deletor.rb'

# Offense count: 3
Style/ClassVars:
  Exclude:
    - 'lib/redmine/scm/adapters/xitolite_adapter.rb'

# Offense count: 3
Style/DocumentDynamicEvalDefinition:
  Exclude:
    - 'lib/redmine_git_hosting/shell_redirector.rb'

# Offense count: 8
# Configuration parameters: MinBodyLength.
Style/GuardClause:
  Exclude:
    - 'app/models/concerns/gitolitable/validations.rb'
    - 'app/services/redmine_hooks/github_issues_sync.rb'
    - 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
    - 'lib/redmine_git_hosting/patches/grack_auth_patch.rb'
    - 'lib/redmine_git_hosting/patches/projects_controller_patch.rb'
    - 'lib/redmine_git_hosting/patches/setting_patch.rb'
    - 'lib/redmine_git_hosting/validators.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, AllowParenthesesInStringInterpolation, EnforcedStyle.
# SupportedStyles: require_parentheses, omit_parentheses
Style/MethodCallWithArgsParentheses:
  Exclude:
    - 'db/migrate/20120904060609_update_multi_repo_per_project.rb'

# Offense count: 1
Style/MissingRespondToMissing:
  Exclude:
    - 'lib/redmine_git_hosting/shell_redirector.rb'

# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, Autocorrect.
# SupportedStyles: module_function, extend_self, forbidden
Style/ModuleFunction:
  Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
  Exclude:
    - 'app/models/repository_git_config_key/git_config.rb'
    - 'lib/redmine_git_hosting/patches/repositories_controller_patch.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'lib/redmine_git_hosting/config/base.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
  Exclude:
    - 'lib/redmine_git_hosting/shell_redirector.rb'

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'app/helpers/repository_deployment_credentials_helper.rb'
    - 'app/use_cases/repository_mirrors/push.rb'
    - 'lib/redmine_git_hosting/commands/sudo.rb'
    - 'lib/redmine_git_hosting/mirror_keys_installer.rb'