2019-06-19 02:49:28 +02:00
|
|
|
# This configuration was generated by
|
2019-10-23 15:32:17 +02:00
|
|
|
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
|
2022-11-14 10:57:24 +01:00
|
|
|
# using RuboCop version 1.39.0.
|
2019-06-19 02:49:28 +02:00
|
|
|
# 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.
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-05-18 04:42:16 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
|
|
Layout/ArgumentAlignment:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-17 14:30:32 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: leading, trailing
|
|
|
|
Layout/DotPosition:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/EmptyLineAfterGuardClause:
|
2020-12-06 01:21:09 +01:00
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/101_populate_changesets_user_id.rb'
|
|
|
|
- 'lib/redmine/default_data/loader.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/safe_attributes.rb'
|
|
|
|
- 'lib/redmine/string_array_diff/diff.rb'
|
|
|
|
- 'lib/redmine/string_array_diff/diffable.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-12-06 01:31:36 +01:00
|
|
|
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
|
|
Layout/EmptyLineBetweenDefs:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/10-patches.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/EmptyLines:
|
2019-10-01 05:18:39 +02:00
|
|
|
Exclude:
|
|
|
|
- 'config/routes.rb'
|
|
|
|
- 'db/migrate/001_setup.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 02:47:03 +02:00
|
|
|
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
|
|
|
# AllowedMethods: alias_method, public, protected, private
|
|
|
|
Layout/EmptyLinesAroundAttributeAccessor:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/issue.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'lib/redmine/sudo_mode.rb'
|
|
|
|
- 'test/unit/lib/redmine/safe_attributes_test.rb'
|
2020-10-23 02:47:03 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
|
|
Layout/EmptyLinesAroundClassBody:
|
2019-11-21 11:46:25 +01:00
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/001_setup.rb'
|
|
|
|
- 'db/migrate/007_create_journals.rb'
|
|
|
|
- 'db/migrate/20110223180953_salt_user_passwords.rb'
|
|
|
|
- 'db/migrate/20131215104612_store_relation_type_in_journal_details.rb'
|
|
|
|
- 'db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/notifiable.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/html_parser.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/markdown/html_parser.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/html_parser.rb'
|
|
|
|
- 'test/integration/api_test/api_routing_test.rb'
|
|
|
|
- 'test/integration/lib/redmine/themes_test.rb'
|
|
|
|
- 'test/integration/routing/activities_test.rb'
|
|
|
|
- 'test/integration/routing/repositories_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/field_format/link_format_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/activities_controller.rb'
|
|
|
|
- 'app/controllers/imports_controller.rb'
|
|
|
|
- 'app/controllers/wiki_controller.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/settings_controller_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/EmptyLinesAroundMethodBody:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'db/migrate/001_setup.rb'
|
|
|
|
- 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/journals_controller_test.rb'
|
|
|
|
- 'test/functional/users_controller_test.rb'
|
|
|
|
- 'test/integration/account_test.rb'
|
|
|
|
- 'test/unit/attachment_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
|
|
Layout/EmptyLinesAroundModuleBody:
|
2019-11-21 13:45:45 +01:00
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/attachments_helper.rb'
|
|
|
|
- 'app/helpers/custom_fields_helper.rb'
|
|
|
|
- 'app/helpers/email_addresses_helper.rb'
|
|
|
|
- 'app/helpers/journals_helper.rb'
|
|
|
|
- 'app/helpers/reports_helper.rb'
|
|
|
|
- 'app/helpers/routes_helper.rb'
|
|
|
|
- 'app/helpers/timelog_helper.rb'
|
|
|
|
- 'app/helpers/trackers_helper.rb'
|
|
|
|
- 'app/helpers/versions_helper.rb'
|
|
|
|
- 'app/helpers/watchers_helper.rb'
|
|
|
|
- 'lib/redmine/access_control.rb'
|
|
|
|
- 'lib/redmine/activity.rb'
|
|
|
|
- 'lib/redmine/codeset_util.rb'
|
|
|
|
- 'lib/redmine/configuration.rb'
|
|
|
|
- 'lib/redmine/helpers/calendar.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/mime_type.rb'
|
|
|
|
- 'lib/redmine/plugin.rb'
|
|
|
|
- 'lib/redmine/search.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
|
|
Layout/ExtraSpacing:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
|
|
Layout/FirstArgumentIndentation:
|
|
|
|
Exclude:
|
|
|
|
- 'test/application_system_test_case.rb'
|
|
|
|
- 'test/unit/auth_source_ldap_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/helpers/gantt_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb'
|
|
|
|
- 'test/unit/repository_cvs_test.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-11-29 08:36:15 +01:00
|
|
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
|
|
# SupportedColonStyles: key, separator, table
|
|
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
|
|
Layout/HashAlignment:
|
2019-06-19 02:49:28 +02:00
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-05-01 07:51:51 +02:00
|
|
|
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/IndentationWidth:
|
2020-10-23 02:30:33 +02:00
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/20110902000000_create_changeset_parents.rb'
|
|
|
|
- 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
|
|
|
|
- 'db/migrate/20120115143126_set_default_repositories.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
|
|
|
Layout/LeadingCommentSpace:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
2021-12-10 06:46:19 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-10 06:46:19 +01:00
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented
|
|
|
|
Layout/LineEndStringConcatenationIndentation:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2021-12-10 06:46:19 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
|
|
Layout/MultilineMethodCallBraceLayout:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
|
|
Layout/MultilineMethodCallIndentation:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
|
|
# SupportedStyles: aligned, indented
|
|
|
|
Layout/MultilineOperationIndentation:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/SpaceAfterComma:
|
2020-12-06 01:21:09 +01:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/projects_controller.rb'
|
|
|
|
- 'lib/redmine/configuration.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/helpers/time_report.rb'
|
|
|
|
- 'lib/redmine/imap.rb'
|
|
|
|
- 'lib/redmine/pop3.rb'
|
|
|
|
- 'lib/redmine/project_jump_box.rb'
|
|
|
|
- 'lib/redmine/safe_attributes.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/sort_criteria.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
- 'test/functional/imports_controller_test.rb'
|
|
|
|
- 'test/integration/layout_test.rb'
|
|
|
|
- 'test/system/timelog_test.rb'
|
|
|
|
- 'test/unit/attachment_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/field_format/version_field_format_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/SpaceAfterNot:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
- 'app/models/repository/cvs.rb'
|
|
|
|
- 'app/models/repository/git.rb'
|
|
|
|
- 'lib/redmine/codeset_util.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/account_controller_test.rb'
|
|
|
|
- 'test/functional/documents_controller_test.rb'
|
|
|
|
- 'test/functional/repositories_git_controller_test.rb'
|
|
|
|
- 'test/functional/timelog_controller_test.rb'
|
|
|
|
- 'test/functional/workflows_controller_test.rb'
|
|
|
|
- 'test/unit/attachment_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
|
|
|
- 'test/unit/project_copy_test.rb'
|
|
|
|
- 'test/unit/project_test.rb'
|
|
|
|
- 'test/unit/query_test.rb'
|
|
|
|
- 'test/unit/role_test.rb'
|
|
|
|
- 'test/unit/user_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-12-26 07:33:32 +01:00
|
|
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
|
|
|
# SupportedStylesForExponentOperator: space, no_space
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/SpaceAroundOperators:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: AllowForAlignment.
|
|
|
|
Layout/SpaceBeforeFirstArg:
|
|
|
|
Exclude:
|
|
|
|
- 'test/helpers/issues_helper_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/menu_manager_test.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
|
|
# SupportedStyles: space, no_space, compact
|
|
|
|
# SupportedStylesForEmptyBrackets: space, no_space
|
|
|
|
Layout/SpaceInsideArrayLiteralBrackets:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/query.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/string_array_diff/diff.rb'
|
|
|
|
- 'test/unit/mailer_localisation_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
2021-12-10 06:46:19 +01:00
|
|
|
# SupportedStyles: space, compact, no_space
|
2019-06-19 02:49:28 +02:00
|
|
|
Layout/SpaceInsideParens:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/issues_helper.rb'
|
|
|
|
- 'app/models/auth_source_ldap.rb'
|
|
|
|
- 'app/models/repository/cvs.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/sudo_mode.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/formatter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
- 'test/unit/changeset_test.rb'
|
|
|
|
- 'test/unit/issue_subtasking_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
Layout/SpaceInsideStringInterpolation:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/workflows_helper.rb'
|
|
|
|
- 'app/models/issue_query.rb'
|
|
|
|
- 'app/models/mail_handler.rb'
|
|
|
|
- 'lib/redmine/core_ext/string/inflections.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/integration/admin_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-08-05 03:33:14 +02:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
2019-06-19 02:49:28 +02:00
|
|
|
Lint/AmbiguousBlockAssociation:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Lint/AmbiguousOperator:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/unit/custom_field_test.rb'
|
|
|
|
- 'test/unit/member_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-10 06:46:19 +01:00
|
|
|
Lint/AmbiguousOperatorPrecedence:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Lint/AmbiguousRegexpLiteral:
|
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
|
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
|
|
Lint/AssignmentInCondition:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-01-16 07:38:30 +01:00
|
|
|
Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/helpers/calendar.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
2020-12-06 01:31:36 +01:00
|
|
|
Lint/DuplicateBranch:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/queries_helper.rb'
|
|
|
|
- 'app/models/issue.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/sudo_mode.rb'
|
2020-12-06 01:31:36 +01:00
|
|
|
|
|
|
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
|
|
|
Lint/EmptyBlock:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/issues_controller.rb'
|
|
|
|
- 'app/models/auth_source_ldap.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'test/helpers/application_helper_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/plugin_test.rb'
|
2020-12-06 01:31:36 +01:00
|
|
|
|
2020-10-23 02:47:03 +02:00
|
|
|
Lint/FloatComparison:
|
2019-06-19 02:49:28 +02:00
|
|
|
Exclude:
|
2020-10-23 02:47:03 +02:00
|
|
|
- 'app/models/time_entry.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/system/timelog_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
Lint/InterpolationCheck:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
Lint/Loop:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
|
|
|
|
2020-10-23 02:47:03 +02:00
|
|
|
Lint/MissingSuper:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/query.rb'
|
2021-12-10 06:30:54 +01:00
|
|
|
- 'lib/redmine/diff_table.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/syntax_highlighting.rb'
|
|
|
|
- 'lib/redmine/twofa/base.rb'
|
|
|
|
- 'lib/redmine/unified_diff.rb'
|
|
|
|
- 'lib/redmine/views/builders/structure.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/html_parser.rb'
|
2020-10-23 02:47:03 +02:00
|
|
|
|
|
|
|
Lint/MixedRegexpCaptureTypes:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-12-26 07:33:32 +01:00
|
|
|
Lint/NonDeterministicRequireOrder:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/core_ext.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/twofa.rb'
|
|
|
|
|
|
|
|
Lint/OutOfRangeRegexpRef:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Lint/ParenthesesAsGroupedExpression:
|
|
|
|
Exclude:
|
|
|
|
- 'test/functional/my_controller_test.rb'
|
|
|
|
- 'test/functional/settings_controller_test.rb'
|
|
|
|
- 'test/functional/users_controller_test.rb'
|
|
|
|
- 'test/unit/attachment_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-11-29 08:36:15 +01:00
|
|
|
Lint/RedundantStringCoercion:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/repositories_filesystem_controller_test.rb'
|
|
|
|
- 'test/functional/repositories_git_controller_test.rb'
|
2019-10-01 05:18:39 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Lint/SendWithMixinArgument:
|
2021-12-11 03:04:40 +01:00
|
|
|
Exclude:
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/object_helpers.rb'
|
|
|
|
|
|
|
|
Lint/ShadowingOuterLocalVariable:
|
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2021-03-25 02:08:38 +01:00
|
|
|
# Configuration parameters: AllowComments, AllowNil.
|
2019-11-29 08:36:15 +01:00
|
|
|
Lint/SuppressedException:
|
2019-06-19 02:49:28 +02:00
|
|
|
Exclude:
|
2019-11-29 08:36:15 +01:00
|
|
|
- 'app/controllers/activities_controller.rb'
|
|
|
|
- 'app/models/import.rb'
|
|
|
|
- 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
|
|
Lint/UnusedBlockArgument:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-04-05 07:45:22 +02:00
|
|
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
2019-06-19 02:49:28 +02:00
|
|
|
Lint/UnusedMethodArgument:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
|
|
|
Lint/UselessAccessModifier:
|
2021-12-11 03:04:40 +01:00
|
|
|
Exclude:
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/repositories_git_controller_test.rb'
|
|
|
|
|
|
|
|
Lint/UselessAssignment:
|
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
|
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
|
|
Lint/Void:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/time_entry.rb'
|
|
|
|
- 'app/models/wiki_content_version.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/unified_diff.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
|
|
|
Naming/ConstantName:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/document_category.rb'
|
|
|
|
- 'app/models/issue_priority.rb'
|
|
|
|
- 'app/models/time_entry_activity.rb'
|
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
|
|
|
|
2021-12-10 06:46:19 +01:00
|
|
|
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
|
|
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
2019-06-19 02:49:28 +02:00
|
|
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
|
|
Naming/FileName:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/00-core_plugins.rb'
|
|
|
|
- 'config/initializers/10-patches.rb'
|
|
|
|
- 'config/initializers/20-mime_types.rb'
|
|
|
|
- 'config/initializers/30-redmine.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/email_addresses_controller.rb'
|
|
|
|
- 'app/controllers/users_controller.rb'
|
|
|
|
- 'app/controllers/workflows_controller.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/role.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
|
|
|
- 'lib/redmine/helpers/calendar.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/search.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-05-01 07:51:51 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowedPatterns, IgnoredPatterns.
|
2019-06-19 02:49:28 +02:00
|
|
|
# SupportedStyles: snake_case, camelCase
|
|
|
|
Naming/MethodName:
|
2021-12-11 06:34:51 +01:00
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/export/pdf.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
- 'test/helpers/application_helper_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2019-11-29 08:36:15 +01:00
|
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
2022-11-14 10:57:24 +01:00
|
|
|
# AllowedNames: as, at, by, db, id, if, in, io, ip, of, on, os, pp, to
|
2019-11-29 08:36:15 +01:00
|
|
|
Naming/MethodParameterName:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-11-29 08:36:15 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: PreferredName.
|
|
|
|
Naming/RescuedExceptionsVariableName:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/user.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
|
2021-12-11 06:34:51 +01:00
|
|
|
# SupportedStyles: snake_case, camelCase
|
|
|
|
Naming/VariableName:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
2021-12-11 06:34:51 +01:00
|
|
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
|
|
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
|
|
|
Naming/VariableNumber:
|
|
|
|
Exclude:
|
|
|
|
- 'test/functional/versions_controller_test.rb'
|
|
|
|
- 'test/helpers/application_helper_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
|
|
|
- 'test/unit/project_test.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-11 06:34:51 +01:00
|
|
|
Performance/AncestorsInclude:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/document_category_test.rb'
|
|
|
|
- 'test/unit/issue_priority_test.rb'
|
|
|
|
- 'test/unit/time_entry_activity_test.rb'
|
2020-10-24 04:19:29 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-12-06 02:42:56 +01:00
|
|
|
Performance/BlockGivenWithExplicitBlock:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/account_controller.rb'
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/models/mailer.rb'
|
|
|
|
- 'app/models/user.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'lib/redmine/views/builders.rb'
|
|
|
|
- 'lib/redmine/views/builders/structure.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/macros.rb'
|
2020-12-06 02:42:56 +01:00
|
|
|
|
2020-10-24 04:19:29 +02:00
|
|
|
# Configuration parameters: MinSize.
|
|
|
|
Performance/CollectionLiteralInLoop:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/imports_helper.rb'
|
|
|
|
- 'app/helpers/queries_helper.rb'
|
|
|
|
- 'app/helpers/settings_helper.rb'
|
|
|
|
- 'app/helpers/timelog_helper.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/workflow_transition.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/helpers/time_report.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
- 'test/functional/issues_custom_fields_visibility_test.rb'
|
|
|
|
- 'test/functional/repositories_git_controller_test.rb'
|
|
|
|
- 'test/functional/repositories_mercurial_controller_test.rb'
|
|
|
|
- 'test/functional/timelog_custom_fields_visibility_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
|
|
|
|
- 'test/unit/repository_git_test.rb'
|
|
|
|
- 'test/unit/repository_mercurial_test.rb'
|
2020-10-24 04:19:29 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-12-06 02:42:56 +01:00
|
|
|
Performance/ConstantRegexp:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/changeset.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/formatter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
|
|
|
Performance/FixedSize:
|
|
|
|
Exclude:
|
|
|
|
- 'test/integration/api_test/issues_test.rb'
|
|
|
|
- 'test/integration/attachments_test.rb'
|
2019-08-18 16:40:47 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-04-01 19:05:00 +02:00
|
|
|
Performance/RedundantEqualityComparisonBlock:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/integration/api_test/issues_test.rb'
|
2021-04-01 19:05:00 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-08-18 16:40:47 +02:00
|
|
|
Performance/RedundantMatch:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/issue_relation.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/wiki_formatting/textile/formatter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Performance/RedundantSplitRegexpArgument:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-11 06:34:51 +01:00
|
|
|
Performance/StringInclude:
|
|
|
|
Exclude:
|
|
|
|
- 'test/functional/versions_controller_test.rb'
|
|
|
|
- 'test/integration/sessions_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
|
2020-10-24 04:19:29 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2022-01-18 16:39:09 +01:00
|
|
|
# Configuration parameters: OnlySumOrWithInitialValue.
|
2020-10-24 04:19:29 +02:00
|
|
|
Performance/Sum:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/issues_helper.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 03:30:53 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/ActiveRecordCallbacksOrder:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/attachment.rb'
|
|
|
|
- 'app/models/change.rb'
|
|
|
|
- 'app/models/changeset.rb'
|
|
|
|
- 'app/models/enumeration.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/issue_status.rb'
|
|
|
|
- 'app/models/member_role.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/models/version.rb'
|
|
|
|
- 'app/models/wiki_page.rb'
|
|
|
|
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/ActiveRecordOverride:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/email_address.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/member.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-11-29 08:57:22 +01:00
|
|
|
Rails/ApplicationController:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/mail_handler_controller.rb'
|
|
|
|
- 'app/controllers/sys_controller.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/unit/lib/redmine/hook_test.rb'
|
2019-11-29 08:57:22 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-11-29 08:57:22 +01:00
|
|
|
Rails/ApplicationMailer:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/mail_handler.rb'
|
|
|
|
- 'app/models/mailer.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
Rails/ApplicationRecord:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: **/test/**/*
|
|
|
|
Rails/AssertNot:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
|
|
|
|
Rails/Blank:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
- 'app/controllers/context_menus_controller.rb'
|
|
|
|
- 'app/controllers/repositories_controller.rb'
|
|
|
|
- 'app/controllers/watchers_controller.rb'
|
|
|
|
- 'app/helpers/queries_helper.rb'
|
|
|
|
- 'app/helpers/repositories_helper.rb'
|
|
|
|
- 'app/models/mailer.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/role.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/wiki_formatting/macros.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Rails/ContentTag:
|
2021-12-11 06:43:36 +01:00
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/wiki_formatting/markdown/formatter.rb'
|
2020-10-23 03:30:53 +02:00
|
|
|
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: db/migrate/*.rb
|
|
|
|
Rails/CreateTableWithTimestamps:
|
|
|
|
Enabled: false
|
|
|
|
|
2021-06-22 07:10:53 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowToTime.
|
2019-06-19 02:49:28 +02:00
|
|
|
# SupportedStyles: strict, flexible
|
|
|
|
Rails/Date:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-03-20 08:05:56 +01:00
|
|
|
Rails/DuplicateScope:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/enumeration.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-10-23 03:30:53 +02:00
|
|
|
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
|
2022-10-29 10:06:14 +02:00
|
|
|
# Whitelist: find_by_sql, find_by_token_for
|
|
|
|
# AllowedMethods: find_by_sql, find_by_token_for
|
|
|
|
# AllowedReceivers: Gem::Specification, page
|
2019-06-19 02:49:28 +02:00
|
|
|
Rails/DynamicFindBy:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-06-22 07:10:53 +02:00
|
|
|
Rails/EagerEvaluationLogMessage:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
|
|
|
|
Rails/Exit:
|
|
|
|
Exclude:
|
|
|
|
- 'config/environment.rb'
|
|
|
|
- 'config/initializers/10-patches.rb'
|
|
|
|
- 'config/routes.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-10-29 10:06:14 +02:00
|
|
|
# Configuration parameters: Include, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
2019-06-19 02:49:28 +02:00
|
|
|
# Include: app/models/**/*.rb
|
2022-10-29 10:06:14 +02:00
|
|
|
# AllowedMethods: order, limit, select, lock
|
2020-12-09 05:14:42 +01:00
|
|
|
# IgnoredMethods: order, limit, select, lock
|
2019-06-19 02:49:28 +02:00
|
|
|
Rails/FindEach:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/auth_source.rb'
|
|
|
|
- 'app/models/group.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/issue_status.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'app/models/watcher.rb'
|
|
|
|
- 'app/models/wiki_page.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/changeset.rb'
|
|
|
|
- 'app/models/custom_field.rb'
|
|
|
|
- 'app/models/group.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/issue_custom_field.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/role.rb'
|
|
|
|
- 'app/models/tracker.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasManyOrHasOneDependent:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/auth_source.rb'
|
|
|
|
- 'app/models/document_category.rb'
|
|
|
|
- 'app/models/issue_priority.rb'
|
|
|
|
- 'app/models/issue_status.rb'
|
2021-12-11 06:43:36 +01:00
|
|
|
- 'app/models/principal.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
- 'app/models/project.rb'
|
2021-12-11 06:43:36 +01:00
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'app/models/repository/mercurial.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
- 'app/models/time_entry_activity.rb'
|
|
|
|
- 'app/models/tracker.rb'
|
2021-12-11 06:43:36 +01:00
|
|
|
- 'app/models/user.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
- 'app/models/wiki.rb'
|
2021-12-11 06:43:36 +01:00
|
|
|
- 'app/models/wiki_page.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: numeric, symbolic
|
|
|
|
Rails/HttpStatus:
|
|
|
|
Exclude:
|
2021-06-22 07:10:53 +02:00
|
|
|
- 'app/controllers/attachments_controller.rb'
|
|
|
|
- 'app/controllers/boards_controller.rb'
|
|
|
|
- 'app/controllers/custom_fields_controller.rb'
|
|
|
|
- 'app/controllers/enumerations_controller.rb'
|
|
|
|
- 'app/controllers/issue_relations_controller.rb'
|
|
|
|
- 'app/controllers/issue_statuses_controller.rb'
|
|
|
|
- 'app/controllers/issues_controller.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
- 'app/controllers/mail_handler_controller.rb'
|
2021-06-22 07:10:53 +02:00
|
|
|
- 'app/controllers/members_controller.rb'
|
|
|
|
- 'app/controllers/my_controller.rb'
|
|
|
|
- 'app/controllers/repositories_controller.rb'
|
|
|
|
- 'app/controllers/roles_controller.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
- 'app/controllers/sys_controller.rb'
|
2021-06-22 07:10:53 +02:00
|
|
|
- 'app/controllers/timelog_controller.rb'
|
|
|
|
- 'app/controllers/trackers_controller.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
- 'app/controllers/watchers_controller.rb'
|
|
|
|
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: spec/**/*.rb, test/**/*.rb
|
|
|
|
Rails/I18nLocaleAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'test/helpers/application_helper_test.rb'
|
|
|
|
- 'test/helpers/custom_fields_helper_test.rb'
|
|
|
|
- 'test/test_helper.rb'
|
|
|
|
- 'test/unit/lib/redmine/field_format/user_field_format_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/i18n_test.rb'
|
|
|
|
- 'test/unit/query_test.rb'
|
|
|
|
- 'test/unit/role_test.rb'
|
|
|
|
|
2022-03-20 08:05:56 +01:00
|
|
|
Rails/I18nLocaleTexts:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/mailer.rb'
|
|
|
|
|
2022-01-18 16:39:09 +01:00
|
|
|
# Configuration parameters: IgnoreScopes, Include.
|
2019-06-19 02:49:28 +02:00
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/InverseOf:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/models/board.rb'
|
|
|
|
- 'app/models/custom_field.rb'
|
|
|
|
- 'app/models/document_category.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/issue_category.rb'
|
|
|
|
- 'app/models/issue_priority.rb'
|
|
|
|
- 'app/models/issue_status.rb'
|
|
|
|
- 'app/models/journal.rb'
|
|
|
|
- 'app/models/member.rb'
|
|
|
|
- 'app/models/news.rb'
|
|
|
|
- 'app/models/principal.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'app/models/repository/mercurial.rb'
|
|
|
|
- 'app/models/time_entry_activity.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/models/version.rb'
|
|
|
|
- 'app/models/wiki.rb'
|
|
|
|
- 'app/models/wiki_page.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
2022-06-30 11:42:33 +02:00
|
|
|
# Include: app/controllers/**/*.rb, app/mailers/**/*.rb
|
2019-06-19 02:49:28 +02:00
|
|
|
Rails/LexicallyScopedActionFilter:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/projects_controller.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Rails/LinkToBlank:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/avatars_helper.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 03:30:53 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: config/routes.rb, config/routes/**/*.rb
|
|
|
|
Rails/MatchRoute:
|
|
|
|
Exclude:
|
|
|
|
- 'config/routes.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-10-23 03:30:53 +02:00
|
|
|
Rails/NegateInclude:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2020-10-23 03:30:53 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
|
|
|
Rails/Output:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/mail_handler.rb'
|
|
|
|
- 'config/routes.rb'
|
2021-10-24 12:05:03 +02:00
|
|
|
- 'lib/redmine/diff.rb'
|
2021-12-10 06:30:54 +01:00
|
|
|
- 'lib/redmine/diff_table.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
|
|
|
Rails/OutputSafety:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Rails/PluralizationGrammar:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/helpers/time_report.rb'
|
|
|
|
- 'test/functional/gantts_controller_test.rb'
|
|
|
|
- 'test/unit/mailer_test.rb'
|
|
|
|
- 'test/unit/query_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Rails/Presence:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/activities_controller.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'lib/redmine/codeset_util.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/i18n.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
|
|
|
|
- 'lib/redmine/sort_criteria.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
|
|
|
Rails/Present:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/ReadWriteAttribute:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/models/auth_source_ldap.rb'
|
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'app/models/repository/git.rb'
|
|
|
|
- 'app/models/user_preference.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 03:30:53 +02:00
|
|
|
Rails/RedundantForeignKey:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/changeset.rb'
|
|
|
|
- 'app/models/custom_field.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/role.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:43:36 +01:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: spec/**/*.rb, test/**/*.rb
|
|
|
|
Rails/RedundantTravelBack:
|
|
|
|
Exclude:
|
|
|
|
- 'test/integration/sudo_mode_test.rb'
|
|
|
|
- 'test/system/sudo_mode_test.rb'
|
|
|
|
|
2021-12-11 06:34:51 +01:00
|
|
|
Rails/ReflectionClassName:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/nested_set/issue_nested_set.rb'
|
|
|
|
- 'lib/redmine/nested_set/project_nested_set.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: EnforcedStyle, Include.
|
|
|
|
# SupportedStyles: assert_not, refute
|
|
|
|
# Include: **/test/**/*
|
|
|
|
Rails/RefuteMethods:
|
|
|
|
Exclude:
|
|
|
|
- 'test/functional/projects_controller_test.rb'
|
|
|
|
- 'test/functional/wiki_controller_test.rb'
|
|
|
|
- 'test/integration/account_test.rb'
|
|
|
|
- 'test/integration/api_test/my_test.rb'
|
|
|
|
- 'test/unit/attachment_test.rb'
|
|
|
|
- 'test/unit/custom_field_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/project_jump_box_test.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: conservative, aggressive
|
|
|
|
Rails/ShortI18n:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/issue_test.rb'
|
|
|
|
- 'test/unit/member_test.rb'
|
|
|
|
- 'test/unit/repository_test.rb'
|
|
|
|
- 'test/unit/time_entry_test.rb'
|
|
|
|
- 'test/unit/user_test.rb'
|
|
|
|
- 'test/unit/version_test.rb'
|
|
|
|
- 'test/unit/wiki_page_test.rb'
|
|
|
|
|
2020-10-23 03:30:53 +02:00
|
|
|
# Configuration parameters: ForbiddenMethods, AllowedMethods.
|
|
|
|
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
|
2019-06-19 02:49:28 +02:00
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: strict, flexible
|
|
|
|
Rails/TimeZone:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: Include.
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/Validation:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-12-09 05:14:42 +01:00
|
|
|
Rails/WhereEquals:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/group.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'db/migrate/101_populate_changesets_user_id.rb'
|
|
|
|
- 'db/migrate/20090614091200_fix_messages_sticky_null.rb'
|
|
|
|
- 'db/migrate/20090704172350_populate_users_type.rb'
|
|
|
|
- 'db/migrate/20101104182107_add_unique_index_on_members.rb'
|
|
|
|
- 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
|
|
|
|
- 'db/migrate/20120115143126_set_default_repositories.rb'
|
|
|
|
- 'db/migrate/20120422150750_change_repositories_to_full_sti.rb'
|
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/issues_controller_test.rb'
|
2020-12-09 05:14:42 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 03:30:53 +02:00
|
|
|
Rails/WhereNot:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/import.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'db/migrate/20130710182539_add_queries_visibility.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/unit/issue_test.rb'
|
|
|
|
- 'test/unit/project_test.rb'
|
|
|
|
- 'test/unit/user_test.rb'
|
2020-10-23 03:30:53 +02:00
|
|
|
|
2019-06-19 02:49:28 +02:00
|
|
|
Security/Eval:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/attachments_helper.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'config/initializers/00-core_plugins.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-10 06:46:19 +01:00
|
|
|
Security/IoMethods:
|
|
|
|
Exclude:
|
|
|
|
- 'Gemfile'
|
|
|
|
- 'app/models/attachment.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/mail_handler_controller_test.rb'
|
|
|
|
- 'test/unit/mail_handler_test.rb'
|
2021-12-10 06:46:19 +01:00
|
|
|
|
2019-06-19 02:49:28 +02:00
|
|
|
Security/Open:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/version.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
Security/YAMLLoad:
|
|
|
|
Exclude:
|
|
|
|
- 'Gemfile'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'lib/redmine/configuration.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 02:47:03 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: separated, grouped
|
|
|
|
Style/AccessorGrouping:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/user.rb'
|
2021-10-24 12:05:03 +02:00
|
|
|
- 'lib/redmine/diff.rb'
|
2021-12-10 06:30:54 +01:00
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
2020-10-23 02:47:03 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
|
|
Style/Alias:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/repositories_controller.rb'
|
|
|
|
- 'app/models/custom_field_enumeration.rb'
|
|
|
|
- 'app/models/enumeration.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/issue_category.rb'
|
|
|
|
- 'app/models/issue_query.rb'
|
|
|
|
- 'app/models/issue_status.rb'
|
|
|
|
- 'app/models/member.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/models/version.rb'
|
|
|
|
- 'config/initializers/10-patches.rb'
|
|
|
|
- 'lib/redmine/export/pdf.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/menu_manager.rb'
|
|
|
|
- 'lib/redmine/plugin.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/markdown/formatter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/formatter.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: always, conditionals
|
|
|
|
Style/AndOr:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/account_controller.rb'
|
|
|
|
- 'app/controllers/calendars_controller.rb'
|
|
|
|
- 'app/helpers/repositories_helper.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'db/migrate/022_serialize_possibles_values.rb'
|
|
|
|
- 'lib/redmine/export/pdf.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: percent_q, bare_percent
|
|
|
|
Style/BarePercentLiterals:
|
|
|
|
Exclude:
|
|
|
|
- 'test/integration/api_test/api_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/CaseLikeIf:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/wiki_controller.rb'
|
|
|
|
- 'app/helpers/members_helper.rb'
|
|
|
|
- 'app/models/issue_query.rb'
|
|
|
|
- 'app/models/journal.rb'
|
|
|
|
- 'app/models/repository/cvs.rb'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'app/models/time_entry.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/models/workflow_transition.rb'
|
|
|
|
- 'lib/redmine/access_control.rb'
|
2021-12-10 06:30:54 +01:00
|
|
|
- 'lib/redmine/diff_table.rb'
|
2020-10-23 02:47:03 +02:00
|
|
|
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/i18n.rb'
|
|
|
|
- 'lib/redmine/plugin.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
2020-10-23 02:47:03 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-10-23 02:47:03 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
2019-06-19 02:49:28 +02:00
|
|
|
# SupportedStyles: nested, compact
|
|
|
|
Style/ClassAndModuleChildren:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-08-05 03:33:14 +02:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
|
|
|
# AllowedMethods: ==, equal?, eql?
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/ClassEqualityComparison:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/principal.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Style/ClassMethods:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/string_array_diff/diff.rb'
|
|
|
|
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/ClassVars:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/models/attachment.rb'
|
|
|
|
- 'config/initializers/10-patches.rb'
|
|
|
|
- 'lib/redmine/activity.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/hook.rb'
|
|
|
|
- 'lib/redmine/i18n.rb'
|
|
|
|
- 'lib/redmine/menu_manager.rb'
|
|
|
|
- 'lib/redmine/my_page.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
|
|
- 'lib/redmine/search.rb'
|
|
|
|
- 'lib/redmine/themes.rb'
|
|
|
|
- 'lib/redmine/twofa.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/macros.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/markdown/formatter.rb'
|
|
|
|
- 'test/helpers/activities_helper_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-12-06 01:31:36 +01:00
|
|
|
Style/CollectionCompact:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/issues_controller.rb'
|
|
|
|
- 'app/controllers/projects_controller.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/sudo_mode.rb'
|
2020-12-06 01:31:36 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/ColonMethodCall:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/admin_controller.rb'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'lib/redmine/configuration.rb'
|
|
|
|
- 'lib/redmine/export/pdf.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/wiki_formatting.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
- 'test/unit/default_data_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/CombinableLoops:
|
|
|
|
Exclude:
|
2021-10-21 08:30:52 +02:00
|
|
|
- 'app/models/wiki_annotate.rb'
|
2020-10-23 02:47:03 +02:00
|
|
|
- 'lib/redmine/default_data/loader.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
|
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
|
|
Style/ConditionalAssignment:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-12-06 01:31:36 +01:00
|
|
|
Style/DocumentDynamicEvalDefinition:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/attachments_helper.rb'
|
|
|
|
|
2021-03-25 02:08:38 +01:00
|
|
|
# Configuration parameters: AllowedConstants.
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-10-23 02:47:03 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: allowed_in_returns, forbidden
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/DoubleNegation:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/issue_import.rb'
|
|
|
|
- 'app/models/mailer.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/EachWithObject:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/repositories_controller.rb'
|
|
|
|
- 'app/helpers/queries_helper.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/issue_import.rb'
|
|
|
|
- 'app/models/journal.rb'
|
|
|
|
- 'app/models/mail_handler.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'app/models/time_entry_import.rb'
|
|
|
|
- 'app/models/workflow_permission.rb'
|
|
|
|
- 'lib/redmine/acts/positioned.rb'
|
|
|
|
- 'lib/redmine/configuration.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/i18n.rb'
|
|
|
|
- 'lib/redmine/mime_type.rb'
|
|
|
|
- 'lib/redmine/my_page.rb'
|
|
|
|
- 'lib/redmine/sort_criteria.rb'
|
|
|
|
- 'test/test_helper.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/EmptyCaseCondition:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/auth_source_ldap.rb'
|
|
|
|
- 'app/models/issue_priority.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-07-21 15:03:11 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowComments.
|
2019-06-19 02:49:28 +02:00
|
|
|
# SupportedStyles: empty, nil, both
|
|
|
|
Style/EmptyElse:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/mail_handler.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: compact, expanded
|
|
|
|
Style/EmptyMethod:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/EvalWithLocation:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/attachments_helper.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/ExpandPathArguments:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/ExplicitBlockArgument:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/board.rb'
|
|
|
|
- 'lib/redmine/activity/fetcher.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/menu_manager.rb'
|
|
|
|
- 'lib/redmine/plugin.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
|
|
- 'test/test_helper.rb'
|
2020-10-23 02:47:03 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: format, sprintf, percent
|
|
|
|
Style/FormatString:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
|
|
|
|
- 'lib/redmine/export/csv.rb'
|
2019-08-14 06:28:05 +02:00
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/i18n.rb'
|
|
|
|
- 'lib/redmine/info.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedVariables.
|
|
|
|
Style/GlobalVars:
|
|
|
|
Exclude:
|
|
|
|
- 'test/test_helper.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-11-02 02:02:59 +01:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-05-01 07:51:51 +02:00
|
|
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 02:47:03 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: braces, no_braces
|
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/enumerations_controller.rb'
|
|
|
|
- 'app/models/board.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-06-06 05:39:54 +02:00
|
|
|
# Configuration parameters: AllowedReceivers.
|
2020-02-19 14:45:34 +01:00
|
|
|
Style/HashEachMethods:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/groups_controller.rb'
|
|
|
|
- 'app/models/mailer.rb'
|
|
|
|
- 'app/models/role.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/functional/issues_custom_fields_visibility_test.rb'
|
|
|
|
- 'test/unit/auth_source_ldap_test.rb'
|
2020-02-19 14:45:34 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-27 01:37:09 +02:00
|
|
|
# Configuration parameters: AllowIfModifier.
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/IfInsideElse:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/account_controller.rb'
|
|
|
|
- 'app/controllers/activities_controller.rb'
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/helpers/issues_helper.rb'
|
|
|
|
- 'app/models/custom_field.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/version.rb'
|
|
|
|
- 'config/initializers/10-patches.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/menu_manager.rb'
|
|
|
|
- 'lib/redmine/pop3.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
|
|
|
- 'lib/redmine/views/builders/structure.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/IfUnlessModifierOfIfUnless:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/attachment.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-02-07 07:01:47 +01:00
|
|
|
# Configuration parameters: AllowedMethods.
|
|
|
|
# AllowedMethods: nonzero?
|
|
|
|
Style/IfWithBooleanLiteralBranches:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/workflows_controller.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/models/enumeration.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: InverseMethods, InverseBlocks.
|
|
|
|
Style/InverseMethods:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/helpers/issues_helper.rb'
|
|
|
|
- 'app/helpers/repositories_helper.rb'
|
|
|
|
- 'app/models/document.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/member.rb'
|
|
|
|
- 'app/models/message.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/tracker.rb'
|
|
|
|
- 'app/models/version.rb'
|
|
|
|
- 'app/models/wiki_content.rb'
|
|
|
|
- 'db/migrate/096_add_commit_access_permission.rb'
|
|
|
|
- 'lib/redmine/default_data/loader.rb'
|
|
|
|
- 'lib/redmine/helpers/diff.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
- 'test/unit/issue_test.rb'
|
|
|
|
- 'test/unit/query_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: line_count_dependent, lambda, literal
|
|
|
|
Style/Lambda:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/LineEndConcatenation:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-08-05 03:33:14 +02:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
2021-12-11 06:34:51 +01:00
|
|
|
Style/MethodCallWithoutArgsParentheses:
|
2019-06-19 02:49:28 +02:00
|
|
|
Exclude:
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
|
|
|
|
Style/MissingRespondToMissing:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/views/builders/structure.rb'
|
|
|
|
|
|
|
|
Style/MixinUsage:
|
|
|
|
Exclude:
|
|
|
|
- 'test/test_helper.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/MultilineIfModifier:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/attachments_helper.rb'
|
|
|
|
- 'app/helpers/custom_fields_helper.rb'
|
|
|
|
- 'app/helpers/projects_helper.rb'
|
|
|
|
- 'app/helpers/reports_helper.rb'
|
|
|
|
- 'app/helpers/repositories_helper.rb'
|
|
|
|
- 'app/helpers/search_helper.rb'
|
|
|
|
- 'app/models/issue_query.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/time_entry_query.rb'
|
|
|
|
- 'app/views/common/feed.atom.builder'
|
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/wiki_formatting/links_helper.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/MultilineTernaryOperator:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/ciphering.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-10 06:46:19 +01:00
|
|
|
# Configuration parameters: AllowMethodComparison.
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/MultipleComparison:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/models/version.rb'
|
|
|
|
- 'app/models/wiki_page.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: literals, strict
|
|
|
|
Style/MutableConstant:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: both, prefix, postfix
|
|
|
|
Style/NegatedIf:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
- 'app/controllers/messages_controller.rb'
|
|
|
|
- 'app/helpers/repositories_helper.rb'
|
|
|
|
- 'app/models/attachment.rb'
|
|
|
|
- 'app/models/auth_source_ldap.rb'
|
|
|
|
- 'app/models/custom_field.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/repository/cvs.rb'
|
|
|
|
- 'lib/redmine/codeset_util.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/string_array_diff/diff.rb'
|
|
|
|
- 'lib/redmine/thumbnail.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/NegatedWhile:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: AllowedMethods.
|
|
|
|
# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
|
|
|
Style/NestedParenthesizedCalls:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/views/labelled_form_builder.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/NestedTernaryOperator:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/queries_helper.rb'
|
|
|
|
- 'app/models/journal.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
|
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
|
|
Style/Next:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/Not:
|
|
|
|
Exclude:
|
|
|
|
- 'db/migrate/096_add_commit_access_permission.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: EnforcedOctalStyle.
|
|
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
|
|
Style/NumericLiteralPrefix:
|
|
|
|
Exclude:
|
|
|
|
- 'test/unit/user_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-08-13 07:51:50 +02:00
|
|
|
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/NumericLiterals:
|
2021-12-11 06:34:51 +01:00
|
|
|
MinDigits: 9
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2022-08-05 03:33:14 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
2019-06-19 02:49:28 +02:00
|
|
|
# SupportedStyles: predicate, comparison
|
|
|
|
Style/NumericPredicate:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-10-23 02:47:03 +02:00
|
|
|
# Configuration parameters: AllowedMethods.
|
|
|
|
# AllowedMethods: respond_to_missing?
|
|
|
|
Style/OptionalBooleanParameter:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2020-10-23 02:47:03 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/OrAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/sort_helper.rb'
|
|
|
|
- 'app/models/repository/cvs.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'lib/redmine/helpers/diff.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/ParallelAssignment:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
|
|
|
Style/ParenthesesAroundCondition:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/repository/subversion.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: PreferredDelimiters.
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/PerlBackrefs:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: short, verbose
|
|
|
|
Style/PreferredHashMethods:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/Proc:
|
2021-01-16 07:27:29 +01:00
|
|
|
Exclude:
|
|
|
|
- 'app/models/attachment.rb'
|
|
|
|
- 'app/models/document.rb'
|
|
|
|
- 'app/models/email_address.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/journal.rb'
|
|
|
|
- 'app/models/message.rb'
|
|
|
|
- 'app/models/news.rb'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'app/models/time_entry.rb'
|
|
|
|
- 'app/models/token.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'app/models/wiki_content_version.rb'
|
|
|
|
- 'config/initializers/10-patches.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/preparation.rb'
|
|
|
|
- 'test/integration/lib/redmine/menu_manager_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/menu_manager/menu_item_test.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: same_as_string_literals, single_quotes, double_quotes
|
|
|
|
Style/QuotedSymbols:
|
|
|
|
Exclude:
|
|
|
|
- 'test/functional/timelog_controller_test.rb'
|
|
|
|
- 'test/unit/lib/redmine/i18n_test.rb'
|
2021-06-06 05:39:54 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020-12-06 01:31:36 +01:00
|
|
|
# Configuration parameters: Methods.
|
|
|
|
Style/RedundantArgument:
|
|
|
|
Exclude:
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
|
|
- 'test/functional/projects_controller_test.rb'
|
|
|
|
- 'test/unit/issue_test.rb'
|
2020-12-06 01:31:36 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/RedundantAssignment:
|
2019-06-19 02:49:28 +02:00
|
|
|
Exclude:
|
2020-10-23 02:47:03 +02:00
|
|
|
- 'app/models/mail_handler.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
- 'app/models/query.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/markdown/formatter.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-03-25 02:08:38 +01:00
|
|
|
Style/RedundantBegin:
|
|
|
|
Exclude:
|
2021-04-01 19:05:00 +02:00
|
|
|
- 'app/controllers/issues_controller.rb'
|
|
|
|
- 'app/models/auth_source.rb'
|
2021-03-25 02:08:38 +01:00
|
|
|
- 'app/models/member.rb'
|
2021-04-01 19:05:00 +02:00
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
- 'lib/redmine/codeset_util.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/unit/issue_nested_set_concurrency_test.rb'
|
|
|
|
- 'test/unit/project_nested_set_concurrency_test.rb'
|
|
|
|
- 'test/unit/query_test.rb'
|
2021-03-25 02:08:38 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-10-31 10:18:39 +01:00
|
|
|
Style/RedundantCondition:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/messages_controller.rb'
|
|
|
|
- 'app/controllers/previews_controller.rb'
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/RedundantConditional:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/workflows_controller.rb'
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
- 'app/models/enumeration.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-10-31 10:18:39 +01:00
|
|
|
Style/RedundantInterpolation:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/my_helper.rb'
|
|
|
|
- 'app/helpers/queries_helper.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/views/common/feed.atom.builder'
|
|
|
|
- 'app/views/journals/index.builder'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/helpers/time_report.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/links_helper.rb'
|
|
|
|
- 'test/functional/versions_controller_test.rb'
|
|
|
|
- 'test/functional/watchers_controller_test.rb'
|
2019-10-31 10:18:39 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/RedundantParentheses:
|
2019-10-23 15:32:17 +02:00
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/search_controller.rb'
|
|
|
|
- 'app/models/enumeration.rb'
|
|
|
|
- 'app/models/principal.rb'
|
|
|
|
- 'app/models/repository/cvs.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/platform.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'test/unit/project_test.rb'
|
|
|
|
- 'test/unit/user_test.rb'
|
|
|
|
- 'test/unit/version_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/RedundantRegexpCharacterClass:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/RedundantRegexpEscape:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2020-10-23 02:47:03 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
|
|
Style/RedundantReturn:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/RedundantSelf:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-11 06:34:51 +01:00
|
|
|
Style/RedundantSelfAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/menu_manager.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2021-12-11 06:34:51 +01:00
|
|
|
Style/RedundantSelfAssignmentBranch:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-10-31 10:18:39 +01:00
|
|
|
Style/RedundantSort:
|
|
|
|
Exclude:
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'test/functional/issues_controller_test.rb'
|
|
|
|
- 'test/unit/member_test.rb'
|
2019-10-31 10:18:39 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
|
|
Style/RegexpLiteral:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/RescueModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/avatars_helper.rb'
|
|
|
|
- 'app/models/custom_field.rb'
|
|
|
|
- 'app/models/import.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/repository.rb'
|
|
|
|
- 'lib/redmine/export/csv.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/search.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting.rb'
|
|
|
|
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: implicit, explicit
|
|
|
|
Style/RescueStandardError:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2022-04-10 09:34:52 +02:00
|
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
2019-11-29 08:36:15 +01:00
|
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/SafeNavigation:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-10 06:46:19 +01:00
|
|
|
Style/SelectByRegexp:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/user.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'test/application_system_test_case.rb'
|
2021-12-10 06:46:19 +01:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/SelfAssignment:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/repositories_controller.rb'
|
|
|
|
- 'app/helpers/reports_helper.rb'
|
|
|
|
- 'app/models/auth_source_ldap.rb'
|
|
|
|
- 'app/models/project.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'app/models/repository/cvs.rb'
|
|
|
|
- 'lib/redmine/helpers/calendar.rb'
|
|
|
|
- 'lib/redmine/helpers/gantt.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/helpers/time_report.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
|
|
Style/SingleLineMethods:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-10 06:46:19 +01:00
|
|
|
# Configuration parameters: RequireEnglish.
|
2022-05-01 07:51:51 +02:00
|
|
|
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/SpecialGlobalVars:
|
|
|
|
EnforcedStyle: use_perl_names
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/StderrPuts:
|
|
|
|
Exclude:
|
|
|
|
- 'config/environment.rb'
|
|
|
|
- 'config/initializers/10-patches.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-03-25 02:08:38 +01:00
|
|
|
Style/StringChars:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-10 06:46:19 +01:00
|
|
|
# Configuration parameters: Mode.
|
2020-10-23 02:47:03 +02:00
|
|
|
Style/StringConcatenation:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiterals:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/issue_query.rb'
|
|
|
|
- 'config/environment.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/links_helper.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
|
|
- 'test/unit/member_test.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2021-12-11 06:34:51 +01:00
|
|
|
Style/StructInheritance:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/notifiable.rb'
|
|
|
|
- 'lib/redmine/sudo_mode.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: MinSize.
|
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/SymbolArray:
|
|
|
|
EnforcedStyle: brackets
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2022-08-05 03:33:14 +02:00
|
|
|
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
|
2022-10-29 10:06:14 +02:00
|
|
|
# AllowedMethods: define_method, mail, respond_to
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/SymbolProc:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-12-26 07:33:32 +01:00
|
|
|
# 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
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/TrivialAccessors:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/issue.rb'
|
|
|
|
- 'app/models/journal.rb'
|
|
|
|
- 'app/models/query.rb'
|
|
|
|
- 'lib/redmine/access_control.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
|
|
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/UnlessElse:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/auth_sources_controller.rb'
|
|
|
|
- 'app/controllers/trackers_controller.rb'
|
2021-10-24 12:05:03 +02:00
|
|
|
- 'lib/redmine/diff_table.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/VariableInterpolation:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/redmine/configuration.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2019-06-19 02:49:28 +02:00
|
|
|
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
2021-12-11 06:34:51 +01:00
|
|
|
Enabled: false
|
2019-06-19 02:49:28 +02:00
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2019-06-19 02:49:28 +02:00
|
|
|
Style/ZeroLengthPredicate:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/import.rb'
|
|
|
|
- 'app/models/mail_handler.rb'
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
- 'lib/redmine/field_format.rb'
|
2021-12-11 06:34:51 +01:00
|
|
|
- 'lib/redmine/unified_diff.rb'
|
|
|
|
- 'lib/redmine/wiki_formatting/macros.rb'
|
|
|
|
- 'test/functional/custom_fields_controller_test.rb'
|
|
|
|
- 'test/object_helpers.rb'
|
|
|
|
- 'test/unit/activity_test.rb'
|
|
|
|
- 'test/unit/custom_field_test.rb'
|
|
|
|
|
2022-06-14 04:57:19 +02:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2022-05-01 07:51:51 +02:00
|
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
|
2021-12-11 06:34:51 +01:00
|
|
|
# URISchemes: http, https
|
|
|
|
Layout/LineLength:
|
|
|
|
Max: 194
|