968 lines
31 KiB
YAML
968 lines
31 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2020-12-22 17:24:13 UTC using RuboCop version 1.6.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: 35
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Layout/LineLength:
|
|
Max: 614
|
|
|
|
# Offense count: 4
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
Lint/AssignmentInCondition:
|
|
Exclude:
|
|
- 'app/services/redmine_hooks/update_mirrors.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/patches/grack_auth_patch.rb'
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 14
|
|
# Configuration parameters: AllowedMethods.
|
|
# AllowedMethods: enums
|
|
Lint/ConstantDefinitionInBlock:
|
|
Exclude:
|
|
- 'spec/helpers/gitolite_public_keys_helper_spec.rb'
|
|
- 'spec/lib/redmine_git_hosting/config_spec.rb'
|
|
- 'spec/models/gitolite_public_key_spec.rb'
|
|
- 'spec/models/repository_deployment_credential_spec.rb'
|
|
- 'spec/models/repository_mirror_spec.rb'
|
|
- 'spec/models/repository_xitolite_spec.rb'
|
|
- 'spec/support/flat_organization.rb'
|
|
- 'spec/support/hierarchical_organisation.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
|
Lint/EmptyBlock:
|
|
Exclude:
|
|
- 'spec/factories/member.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/Loop:
|
|
Exclude:
|
|
- 'app/use_cases/gitolite_public_keys/generate_identifier.rb'
|
|
|
|
# Offense count: 5
|
|
Lint/MissingSuper:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/error.rb'
|
|
- '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: 2
|
|
# Cop supports --auto-correct.
|
|
Lint/NonDeterministicRequireOrder:
|
|
Exclude:
|
|
- 'spec/root_spec_helper.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/NonLocalExitFromIterator:
|
|
Exclude:
|
|
- 'app/workers/githosting_shell_worker.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/RedundantStringCoercion:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/recycle_bin/deletable_item.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/RescueException:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/gitolite_hooks.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Lint/SendWithMixinArgument:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/patches/projects_controller_patch.rb'
|
|
- 'lib/redmine_git_hosting/patches/repositories_controller_patch.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/ToJSON:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/git_access_status.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
Lint/UnusedBlockArgument:
|
|
Exclude:
|
|
- 'app/reports/repository_contributors_stats.rb'
|
|
|
|
# Offense count: 10
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
|
Lint/UnusedMethodArgument:
|
|
Exclude:
|
|
- 'app/services/redmine_hooks/base.rb'
|
|
- 'app/use_cases/repository_protected_branches/member_manager.rb'
|
|
- 'lib/redmine_git_hosting/cache/memcached.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_config_tests.rb'
|
|
- 'lib/redmine_git_hosting/console_logger.rb'
|
|
- 'lib/redmine_git_hosting/mirror_keys_installer.rb'
|
|
- 'spec/support/crud_controller_spec/helpers.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/UriEscapeUnescape:
|
|
Exclude:
|
|
- 'contrib/hooks/post-receive/lib/git_hosting_http_helper.rb'
|
|
|
|
# Offense count: 37
|
|
Lint/UselessAssignment:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
|
|
Metrics/ParameterLists:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 7
|
|
Naming/AccessorMethodName:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/paths.rb'
|
|
- 'contrib/hooks/post-receive/lib/git_hosting_custom_hook.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: 5
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
Naming/MemoizedInstanceVariableName:
|
|
Exclude:
|
|
- 'app/reports/repository_contributors_stats.rb'
|
|
- '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: 3
|
|
# 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'
|
|
- 'app/models/gitolite_public_key.rb'
|
|
- 'lib/redmine_git_hosting/patches/grack_auth_patch.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredName.
|
|
Naming/RescuedExceptionsVariableName:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/gitolite_hooks.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Performance/BlockGivenWithExplicitBlock:
|
|
Exclude:
|
|
- 'app/use_cases/repository_protected_branches/member_manager.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_config_tests.rb'
|
|
- 'lib/redmine_git_hosting/console_logger.rb'
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 31
|
|
Performance/ChainArrayAllocation:
|
|
Exclude:
|
|
- 'app/forms/plugin_settings_form.rb'
|
|
- '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/project_patch.rb'
|
|
- 'lib/redmine_git_hosting/patches/projects_controller_patch.rb'
|
|
- 'lib/redmine_git_hosting/patches/user_patch.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Performance/CompareWithBlock:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/patches/project_patch.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Performance/Detect:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/ssh_keys/base.rb'
|
|
- 'lib/redmine_git_hosting/plugins/gitolite_plugin.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Performance/RedundantBlockCall:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Performance/RedundantMatch:
|
|
Exclude:
|
|
- 'app/use_cases/repositories/build_payload.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_config_tests.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Performance/RegexpMatch:
|
|
Exclude:
|
|
- 'app/use_cases/repositories/build_payload.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_config_tests.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_infos.rb'
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Performance/ReverseEach:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/projects/common.rb'
|
|
- 'lib/redmine_git_hosting/patches/projects_controller_patch.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Performance/SortReverse:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/recycle_bin/item_base.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect.
|
|
Performance/StringInclude:
|
|
Exclude:
|
|
- 'app/use_cases/repositories/build_payload.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: strict, flexible
|
|
Rails/Date:
|
|
Exclude:
|
|
- 'app/reports/report_helper.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforceForPrefixed.
|
|
Rails/Delegate:
|
|
Exclude:
|
|
- 'app/models/repository/xitolite.rb'
|
|
- 'lib/redmine_git_hosting/cache.rb'
|
|
- 'lib/redmine_git_hosting/recycle_bin.rb'
|
|
|
|
# Offense count: 45
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
|
|
# Whitelist: find_by_sql
|
|
# AllowedMethods: find_by_sql
|
|
# AllowedReceivers: Gem::Specification
|
|
Rails/DynamicFindBy:
|
|
Enabled: false
|
|
|
|
# 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: 3
|
|
# Cop supports --auto-correct.
|
|
Rails/NegateInclude:
|
|
Exclude:
|
|
- 'app/use_cases/repository_protected_branches/member_manager.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/global/disable_rw_access.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/global/enable_rw_access.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Include.
|
|
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
|
Rails/Output:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/config/base.rb'
|
|
|
|
# Offense count: 5
|
|
Rails/OutputSafety:
|
|
Exclude:
|
|
- 'app/helpers/gitolite_plugin_settings_helper.rb'
|
|
- 'app/presenters/repository_presenter.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Rails/Pluck:
|
|
Exclude:
|
|
- 'app/reports/repository_contributors_stats.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Rails/Presence:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
|
Rails/Present:
|
|
Exclude:
|
|
- 'app/use_cases/repository_mirrors/push.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/repositories/delete_repository.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include.
|
|
# Include: **/Rakefile, **/*.rake
|
|
Rails/RakeEnvironment:
|
|
Exclude:
|
|
- 'lib/tasks/redmine_git_hosting.rake'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: strict, flexible
|
|
Rails/TimeZone:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/cache/abstract_cache.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: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/Validation:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/validations.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Rails/WhereEquals:
|
|
Exclude:
|
|
- 'app/reports/repository_commits_stats.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Security/YAMLLoad:
|
|
Exclude:
|
|
- 'spec/support/global_helpers.rb'
|
|
|
|
# Offense count: 23
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: separated, grouped
|
|
Style/AccessorGrouping:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/error.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/repositories/base.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/ssh_keys/base.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_params/global_params.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_params/mailer_params.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/base.rb'
|
|
- 'lib/redmine_git_hosting/recycle_bin/item_base.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
Style/Alias:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/git_access_status.rb'
|
|
|
|
# Offense count: 9
|
|
# Configuration parameters: AllowedChars.
|
|
Style/AsciiComments:
|
|
Exclude:
|
|
- 'app/models/gitolite_public_key.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowOnConstant.
|
|
Style/CaseEquality:
|
|
Exclude:
|
|
- 'app/helpers/repository_mirrors_helper.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Style/CaseLikeIf:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_infos.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: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
# IgnoredMethods: ==, equal?, eql?
|
|
Style/ClassEqualityComparison:
|
|
Exclude:
|
|
- 'app/models/protected_branches_member.rb'
|
|
- 'app/models/repository_protected_branche.rb'
|
|
- 'app/use_cases/repository_protected_branches/member_manager.rb'
|
|
- 'lib/redmine_git_hosting/patches/project_patch.rb'
|
|
|
|
# Offense count: 3
|
|
Style/ClassVars:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/ColonMethodCall:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/config/gitolite_access.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
|
|
# SupportedStyles: backticks, percent_x, mixed
|
|
Style/CommandLiteral:
|
|
Exclude:
|
|
- 'contrib/hooks/post-receive/lib/git_hosting_config.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_base.rb'
|
|
- 'lib/tasks/ci_tools.rake'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Keywords.
|
|
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
|
|
Style/CommentAnnotation:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/cache.rb'
|
|
- 'lib/redmine_git_hosting/patches/grack_git_patch.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
Style/ConditionalAssignment:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/config/gitolite_access.rb'
|
|
- 'lib/redmine_git_hosting/patches/repositories_controller_patch.rb'
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
- 'spec/support/global_helpers.rb'
|
|
|
|
# Offense count: 3
|
|
Style/DocumentDynamicEvalDefinition:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/EachWithObject:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/validations.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty, nil, both
|
|
Style/EmptyElse:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/config/gitolite_infos.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: compact, expanded
|
|
Style/EmptyMethod:
|
|
Exclude:
|
|
- 'lib/hrack/lib/hrack/server.rb'
|
|
|
|
# Offense count: 3
|
|
Style/EvalWithLocation:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 16
|
|
# Configuration parameters: MinBodyLength.
|
|
Style/GuardClause:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/validations.rb'
|
|
- 'app/services/redmine_hooks/github_issues_sync.rb'
|
|
- 'app/use_cases/repository_protected_branches/member_manager.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/git_access.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrapper.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/base.rb'
|
|
- 'lib/redmine_git_hosting/patches/grack_auth_patch.rb'
|
|
- 'lib/redmine_git_hosting/patches/project_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: 2
|
|
Style/IdenticalConditionalBranches:
|
|
Exclude:
|
|
- 'lib/tasks/migration_tools.rake'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Style/IfUnlessModifier:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/validations.rb'
|
|
- 'lib/hrack/lib/hrack/server.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/global/enable_rw_access.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/IfUnlessModifierOfIfUnless:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/plugins/extenders/readme_creator.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: InverseMethods, InverseBlocks.
|
|
Style/InverseMethods:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/cache/memcached.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
Style/MethodCallWithoutArgsParentheses:
|
|
Exclude:
|
|
- 'lib/hrack/lib/hrack/server.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: 3
|
|
# Cop supports --auto-correct.
|
|
Style/MultilineIfModifier:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/config.rb'
|
|
- 'lib/redmine_git_hosting/plugins/extenders/readme_creator.rb'
|
|
|
|
# Offense count: 30
|
|
# Cop supports --auto-correct.
|
|
Style/MultilineWhenThen:
|
|
Exclude:
|
|
- 'db/migrate/20130807223227_migrate_parameters.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
Style/MultipleComparison:
|
|
Exclude:
|
|
- 'contrib/hooks/post-receive/lib/git_hosting_custom_hook.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/patches/grack_git_patch.rb'
|
|
- 'spec/support/flat_organization.rb'
|
|
- 'spec/support/hierarchical_organisation.rb'
|
|
|
|
# Offense count: 15
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: literals, strict
|
|
Style/MutableConstant:
|
|
Exclude:
|
|
- 'app/models/repository_git_config_key/git_config.rb'
|
|
- 'lib/hrack/lib/hrack/server.rb'
|
|
- 'lib/redmine_git_hosting/config.rb'
|
|
- 'lib/redmine_git_hosting/patches/repositories_controller_patch.rb'
|
|
- 'lib/redmine_git_hosting/recycle_bin/item_base.rb'
|
|
- 'lib/redmine_git_hosting/utils/git.rb'
|
|
- 'lib/redmine_git_hosting/validators.rb'
|
|
- 'spec/helpers/gitolite_public_keys_helper_spec.rb'
|
|
- 'spec/models/repository_deployment_credential_spec.rb'
|
|
- 'spec/models/repository_mirror_spec.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: both, prefix, postfix
|
|
Style/NegatedIf:
|
|
Exclude:
|
|
- 'app/reports/repository_contributors_stats.rb'
|
|
- 'app/use_cases/repositories/build_payload.rb'
|
|
- 'lib/hrack/lib/hrack/server.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
|
|
|
|
# Offense count: 23
|
|
# Cop supports --auto-correct.
|
|
Style/NegatedIfElseCondition:
|
|
Exclude:
|
|
- 'contrib/hooks/post-receive/lib/git_hosting_http_helper.rb'
|
|
- 'db/migrate/20091119162426_set_mirror_role_permissions.rb'
|
|
- 'db/migrate/20120521000010_set_post_receive_url_role_permissions.rb'
|
|
- 'db/migrate/20120803043256_create_deployment_credentials.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_base.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_config_tests.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/repositories/add_repository.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/repositories/move_repository.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/repositories/update_repository.rb'
|
|
- 'lib/redmine_git_hosting/plugins/extenders/git_annex_creator.rb'
|
|
- 'lib/redmine_git_hosting/recycle_bin/deletable_item.rb'
|
|
- 'lib/redmine_git_hosting/utils/http.rb'
|
|
- 'lib/tasks/migration_tools.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/NegatedWhile:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/NestedTernaryOperator:
|
|
Exclude:
|
|
- 'app/reports/report_helper.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
Style/Next:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/config/base.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IncludeSemanticChanges.
|
|
Style/NonNilCheck:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/gitolite_params/mailer_params.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedOctalStyle.
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
Style/NumericLiteralPrefix:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/config/gitolite_config_tests.rb'
|
|
- 'lib/redmine_git_hosting/plugins/extenders/readme_creator.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IgnoredMethods.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: AllowedMethods.
|
|
# AllowedMethods: respond_to_missing?
|
|
Style/OptionalBooleanParameter:
|
|
Exclude:
|
|
- 'app/helpers/git_hosting_helper.rb'
|
|
- 'lib/redmine_git_hosting/commands/sudo.rb'
|
|
- 'lib/redmine_git_hosting/config/base.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_access.rb'
|
|
- 'lib/redmine_git_hosting/git_access.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
|
Style/ParenthesesAroundCondition:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 13
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredDelimiters.
|
|
Style/PercentLiteralDelimiters:
|
|
Exclude:
|
|
- 'contrib/hooks/post-receive/lib/git_hosting_config.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_base.rb'
|
|
- 'lib/tasks/ci_tools.rake'
|
|
- 'spec/models/repository_mirror_spec.rb'
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
Style/PerlBackrefs:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowedCompactTypes.
|
|
# SupportedStyles: compact, exploded
|
|
Style/RaiseArgs:
|
|
EnforcedStyle: exploded
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Methods.
|
|
Style/RedundantArgument:
|
|
Exclude:
|
|
- 'app/models/gitolite_public_key.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/commands/git.rb'
|
|
- 'lib/redmine_git_hosting/commands/sudo.rb'
|
|
- 'lib/redmine_git_hosting/utils/crypto.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantAssignment:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/utils/crypto.rb'
|
|
- 'lib/redmine_git_hosting/utils/ssh.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantBegin:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_config_tests.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_infos.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrapper.rb'
|
|
- 'lib/redmine_git_hosting/recycle_bin/restorable_item.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantInterpolation:
|
|
Exclude:
|
|
- 'app/use_cases/repository_mirrors/push.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantParentheses:
|
|
Exclude:
|
|
- 'contrib/hooks/post-receive/lib/git_hosting_config.rb'
|
|
- 'lib/redmine_git_hosting/config/base.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_base.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantRegexpCharacterClass:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/validators.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantRegexpEscape:
|
|
Exclude:
|
|
- 'db/migrate/20111220055819_add_settings_to_plugin_2.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/utils/crypto.rb'
|
|
- 'lib/redmine_git_hosting/validators.rb'
|
|
|
|
# Offense count: 13
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
Style/RedundantReturn:
|
|
Exclude:
|
|
- 'app/use_cases/repository_mirrors/push.rb'
|
|
- 'lib/hrack/lib/hrack/server.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_wrappers/global/disable_rw_access.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSelf:
|
|
Exclude:
|
|
- 'lib/hrack/lib/hrack/server.rb'
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
Style/RegexpLiteral:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/cache.rb'
|
|
- 'app/reports/repository_contributors_stats.rb'
|
|
- 'app/use_cases/repositories/build_payload.rb'
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_access.rb'
|
|
- 'lib/redmine_git_hosting/patches/grack_auth_patch.rb'
|
|
- 'lib/redmine_git_hosting/patches/repositories_controller_patch.rb'
|
|
- 'lib/redmine_git_hosting/recycle_bin/item_base.rb'
|
|
- 'lib/redmine_git_hosting/utils/crypto.rb'
|
|
- 'lib/redmine_git_hosting/utils/git.rb'
|
|
- 'lib/redmine_git_hosting/validators.rb'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
Style/RescueModifier:
|
|
Exclude:
|
|
- 'app/models/gitolite_public_key.rb'
|
|
- 'app/models/repository_mirror.rb'
|
|
- 'lib/redmine_git_hosting/commands/sudo.rb'
|
|
- 'lib/redmine_git_hosting/config/base.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_base.rb'
|
|
- 'lib/redmine_git_hosting/config/gitolite_storage.rb'
|
|
|
|
# Offense count: 37
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: implicit, explicit
|
|
Style/RescueStandardError:
|
|
Enabled: false
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
Style/Semicolon:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/patches/repositories_controller_patch.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowModifier.
|
|
Style/SoleNestedConditional:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/patches/project_patch.rb'
|
|
- 'lib/redmine_git_hosting/patches/repositories_controller_patch.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: 18
|
|
# Cop supports --auto-correct.
|
|
Style/StringConcatenation:
|
|
Exclude:
|
|
- 'app/helpers/repository_deployment_credentials_helper.rb'
|
|
- 'app/models/gitolite_public_key.rb'
|
|
- 'app/use_cases/repository_mirrors/push.rb'
|
|
- 'lib/redmine_git_hosting/cache.rb'
|
|
- 'lib/redmine_git_hosting/cache/memcached.rb'
|
|
- 'lib/redmine_git_hosting/commands/sudo.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_handlers/repositories/move_repository.rb'
|
|
- 'lib/redmine_git_hosting/hooks.rb'
|
|
- 'lib/redmine_git_hosting/mirror_keys_installer.rb'
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
- 'spec/lib/redmine_git_hosting/config_spec.rb'
|
|
- 'spec/lib/redmine_git_hosting/utils/git_spec.rb'
|
|
- 'spec/models/repository_git_config_key/git_config_spec.rb'
|
|
- 'spec/models/repository_git_config_key/option_spec.rb'
|
|
- 'spec/services/redmine_hooks/call_webservices_spec.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiterals:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/validations.rb'
|
|
- 'app/use_cases/repository_mirrors/push.rb'
|
|
- 'lib/redmine_git_hosting/commands/sudo.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiteralsInInterpolation:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/utils/exec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: .
|
|
# SupportedStyles: percent, brackets
|
|
Style/SymbolArray:
|
|
EnforcedStyle: percent
|
|
MinSize: 3
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
# IgnoredMethods: respond_to, define_method
|
|
Style/SymbolProc:
|
|
Exclude:
|
|
- 'app/models/concerns/gitolitable/users.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
Style/TernaryParentheses:
|
|
Exclude:
|
|
- 'lib/redmine/scm/adapters/xitolite_adapter.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
|
|
# AllowedMethods: 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/redmine/scm/adapters/xitolite_adapter.rb'
|
|
- 'lib/redmine_git_hosting/gitolite_hooks.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/WhileUntilModifier:
|
|
Exclude:
|
|
- 'lib/redmine_git_hosting/shell_redirector.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: WordRegex.
|
|
# SupportedStyles: percent, brackets
|
|
Style/WordArray:
|
|
EnforcedStyle: percent
|
|
MinSize: 3
|