1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633 |
- # This configuration was generated by
- # `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
- # using RuboCop version 0.81.0.
- # 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.
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentationWidth.
- # SupportedStyles: with_first_argument, with_fixed_indentation
- Layout/ArgumentAlignment:
- Exclude:
- - 'config/application.rb'
- - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
- - 'test/integration/api_test/attachments_test.rb'
- - 'test/integration/api_test/groups_test.rb'
- - 'test/integration/api_test/issue_relations_test.rb'
- - 'test/integration/api_test/memberships_test.rb'
- - 'test/integration/api_test/projects_test.rb'
- - 'test/integration/api_test/wiki_pages_test.rb'
-
- # Cop supports --auto-correct.
- Layout/ClosingParenthesisIndentation:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: leading, trailing
- Layout/DotPosition:
- Enabled: false
-
- # Cop supports --auto-correct.
- Layout/EmptyLineAfterGuardClause:
- Enabled: false
-
- # Cop supports --auto-correct.
- Layout/EmptyLines:
- Exclude:
- - 'config/routes.rb'
- - 'db/migrate/001_setup.rb'
- - 'lib/redmine/sudo_mode.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: around, only_before
- Layout/EmptyLinesAroundAccessModifier:
- Exclude:
- - 'config/initializers/10-patches.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
- Layout/EmptyLinesAroundClassBody:
- 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'
- - 'lib/redmine/export/csv.rb'
- - 'lib/redmine/notifiable.rb'
- - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- - 'lib/redmine/scm/adapters/mercurial_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/ciphering_test.rb'
- - 'test/unit/lib/redmine/field_format/link_format_test.rb'
-
- # Cop supports --auto-correct.
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
- Exclude:
- - 'app/controllers/activities_controller.rb'
- - 'app/controllers/imports_controller.rb'
- - 'app/controllers/wiki_controller.rb'
- - 'test/functional/settings_controller_test.rb'
-
- # Cop supports --auto-correct.
- Layout/EmptyLinesAroundMethodBody:
- Exclude:
- - 'app/models/query.rb'
- - 'db/migrate/001_setup.rb'
- - 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
- - 'test/functional/journals_controller_test.rb'
- - 'test/functional/users_controller_test.rb'
- - 'test/integration/account_test.rb'
- - 'test/unit/attachment_test.rb'
- - 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
- - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
- - 'test/unit/lib/redmine/unified_diff_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
- Layout/EmptyLinesAroundModuleBody:
- Exclude:
- - 'app/helpers/attachments_helper.rb'
- - 'app/helpers/custom_fields_helper.rb'
- - 'app/helpers/email_addresses_helper.rb'
- - 'app/helpers/gantt_helper.rb'
- - 'app/helpers/issues_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'
- - 'lib/redmine/mime_type.rb'
- - 'lib/redmine/plugin.rb'
- - 'lib/redmine/search.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
- Layout/ExtraSpacing:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentationWidth.
- # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
- Layout/FirstArgumentIndentation:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentationWidth.
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
- Layout/FirstArrayElementIndentation:
- Exclude:
- - 'lib/redmine/nested_set/issue_nested_set.rb'
- - 'lib/redmine/nested_set/project_nested_set.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- - 'test/functional/auth_sources_controller_test.rb'
- - 'test/functional/repositories_mercurial_controller_test.rb'
- - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
- - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentationWidth.
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
- Layout/FirstHashElementIndentation:
- Enabled: false
-
- # Cop supports --auto-correct.
- # 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:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: Width, IgnoredPatterns.
- Layout/IndentationWidth:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: symmetrical, new_line, same_line
- Layout/MultilineArrayBraceLayout:
- Exclude:
- - 'app/helpers/settings_helper.rb'
- - 'app/helpers/users_helper.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: symmetrical, new_line, same_line
- Layout/MultilineHashBraceLayout:
- Exclude:
- - 'app/controllers/context_menus_controller.rb'
- - 'lib/redmine/access_keys.rb'
- - 'lib/redmine/helpers/time_report.rb'
- - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- - 'lib/redmine/scm/adapters/subversion_adapter.rb'
- - 'test/functional/documents_controller_test.rb'
- - 'test/functional/imports_controller_test.rb'
- - 'test/functional/issues_controller_transaction_test.rb'
- - 'test/functional/my_controller_test.rb'
- - 'test/functional/queries_controller_test.rb'
- - 'test/functional/timelog_controller_test.rb'
- - 'test/helpers/application_helper_test.rb'
- - 'test/integration/api_test/api_test.rb'
- - 'test/integration/api_test/memberships_test.rb'
- - 'test/integration/api_test/time_entries_test.rb'
- - 'test/unit/time_entry_test.rb'
- - 'test/unit/version_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: symmetrical, new_line, same_line
- Layout/MultilineMethodCallBraceLayout:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentationWidth.
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
- Layout/MultilineMethodCallIndentation:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentationWidth.
- # SupportedStyles: aligned, indented
- Layout/MultilineOperationIndentation:
- Enabled: false
-
- # Cop supports --auto-correct.
- Layout/RescueEnsureAlignment:
- Exclude:
- - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
-
- # Cop supports --auto-correct.
- Layout/SpaceAfterComma:
- Enabled: false
-
- # Cop supports --auto-correct.
- Layout/SpaceAfterNot:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/models/repository/cvs.rb'
- - 'app/models/repository/git.rb'
- - 'lib/redmine/codeset_util.rb'
- - 'test/functional/account_controller_test.rb'
- - 'test/functional/documents_controller_test.rb'
- - 'test/functional/issues_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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: space, no_space
- Layout/SpaceAroundEqualsInParameterDefault:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
- # SupportedStylesForExponentOperator: space, no_space
- Layout/SpaceAroundOperators:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowForAlignment.
- Layout/SpaceBeforeFirstArg:
- Exclude:
- - 'test/helpers/issues_helper_test.rb'
- - 'test/helpers/search_helper_test.rb'
- - 'test/unit/lib/redmine/menu_manager_test.rb'
-
- # Cop supports --auto-correct.
- Layout/SpaceBeforeSemicolon:
- Exclude:
- - 'app/models/user_preference.rb'
- - 'config/initializers/10-patches.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: require_no_space, require_space
- Layout/SpaceInLambdaLiteral:
- Exclude:
- - 'app/helpers/application_helper.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
- # SupportedStyles: space, no_space, compact
- # SupportedStylesForEmptyBrackets: space, no_space
- Layout/SpaceInsideArrayLiteralBrackets:
- Exclude:
- - 'app/controllers/projects_controller.rb'
- - 'app/helpers/timelog_helper.rb'
- - 'app/models/query.rb'
- - 'lib/diff.rb'
- - 'lib/redmine/i18n.rb'
- - 'test/unit/mailer_localisation_test.rb'
- - 'test/unit/mailer_test.rb'
- - 'test/unit/search_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
- # SupportedStyles: space, no_space
- # SupportedStylesForEmptyBraces: space, no_space
- Layout/SpaceInsideBlockBraces:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
- # SupportedStyles: space, no_space, compact
- # SupportedStylesForEmptyBraces: space, no_space
- Layout/SpaceInsideHashLiteralBraces:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: space, no_space
- Layout/SpaceInsideParens:
- Exclude:
- - 'app/helpers/issues_helper.rb'
- - 'app/models/auth_source_ldap.rb'
- - 'app/models/repository/cvs.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/scm/adapters/git_adapter.rb'
- - '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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: space, no_space
- Layout/SpaceInsideStringInterpolation:
- Exclude:
- - 'app/helpers/application_helper.rb'
- - 'app/helpers/workflows_helper.rb'
- - 'app/models/issue_query.rb'
- - 'app/models/mail_handler.rb'
- - 'lib/redmine/core_ext/string/inflections.rb'
- - 'test/integration/admin_test.rb'
-
- Lint/AmbiguousBlockAssociation:
- Enabled: false
-
- Lint/AmbiguousOperator:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/helpers/application_helper.rb'
- - 'test/unit/custom_field_test.rb'
- - 'test/unit/member_test.rb'
-
- Lint/AmbiguousRegexpLiteral:
- Enabled: false
-
- # Configuration parameters: AllowSafeAssignment.
- Lint/AssignmentInCondition:
- Enabled: false
-
- # Cop supports --auto-correct.
- Lint/DeprecatedClassMethods:
- Exclude:
- - 'Gemfile'
- - 'app/models/import.rb'
- - 'config/application.rb'
- - 'config/boot.rb'
- - 'config/routes.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/thumbnail.rb'
- - 'lib/redmine/utils.rb'
- - 'test/functional/issues_controller_test.rb'
- - 'test/unit/attachment_test.rb'
- - 'test/unit/issue_import_test.rb'
-
- Lint/EmptyWhen:
- Exclude:
- - 'app/controllers/issues_controller.rb'
- - 'app/controllers/wiki_controller.rb'
-
- Lint/InterpolationCheck:
- Exclude:
- - 'app/models/user.rb'
-
- # Cop supports --auto-correct.
- Lint/LiteralInInterpolation:
- Exclude:
- - 'test/unit/mail_handler_test.rb'
-
- Lint/Loop:
- Exclude:
- - 'lib/redmine/helpers/gantt.rb'
-
- # Cop supports --auto-correct.
- Lint/NonDeterministicRequireOrder:
- Exclude:
- - 'lib/redmine/core_ext.rb'
-
- 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'
-
- # Cop supports --auto-correct.
- Lint/RedundantStringCoercion:
- Exclude:
- - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
- - 'test/functional/repositories_filesystem_controller_test.rb'
- - 'test/functional/repositories_git_controller_test.rb'
- - 'test/functional/repositories_mercurial_controller_test.rb'
-
- # Cop supports --auto-correct.
- Lint/SendWithMixinArgument:
- Exclude:
- - 'lib/redmine/acts/positioned.rb'
- - 'test/object_helpers.rb'
-
- Lint/ShadowingOuterLocalVariable:
- Enabled: false
-
- # Configuration parameters: AllowComments.
- Lint/SuppressedException:
- Exclude:
- - 'app/controllers/activities_controller.rb'
- - 'app/models/import.rb'
- - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/scm/adapters/subversion_adapter.rb'
-
- # Cop supports --auto-correct.
- Lint/UnifiedInteger:
- Exclude:
- - 'test/unit/query_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
- Lint/UnusedBlockArgument:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
- Lint/UnusedMethodArgument:
- Enabled: false
-
- Lint/UselessAssignment:
- Enabled: false
-
- # Configuration parameters: CheckForMethodsWithNoSideEffects.
- Lint/Void:
- Exclude:
- - 'app/models/query.rb'
- - 'app/models/time_entry.rb'
- - 'app/models/wiki_content_version.rb'
- - 'lib/redmine/unified_diff.rb'
-
- Naming/ConstantName:
- Exclude:
- - 'app/models/document_category.rb'
- - 'app/models/issue_priority.rb'
- - 'app/models/time_entry_activity.rb'
- - 'lib/redmine/helpers/gantt.rb'
-
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
- # 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'
- - 'lib/redmine/search.rb'
-
- # Configuration parameters: EnforcedStyle, IgnoredPatterns.
- # SupportedStyles: snake_case, camelCase
- Naming/MethodName:
- 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'
-
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
- # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
- Naming/MethodParameterName:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: PreferredName.
- Naming/RescuedExceptionsVariableName:
- Exclude:
- - 'app/models/user.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
-
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: snake_case, camelCase
- Naming/VariableName:
- Exclude:
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: snake_case, normalcase, non_integer
- 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'
-
- Performance/FixedSize:
- Exclude:
- - 'test/integration/api_test/issues_test.rb'
- - 'test/integration/attachments_test.rb'
-
- # Cop supports --auto-correct.
- Performance/RedundantMatch:
- Exclude:
- - 'app/models/issue_relation.rb'
- - 'lib/redmine/wiki_formatting/textile/formatter.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: MaxKeyValuePairs.
- Performance/RedundantMerge:
- Exclude:
- - 'app/controllers/issues_controller.rb'
- - 'app/helpers/application_helper.rb'
- - 'app/helpers/avatars_helper.rb'
- - 'app/helpers/custom_fields_helper.rb'
- - 'app/helpers/workflows_helper.rb'
- - 'app/models/auth_source_ldap.rb'
- - 'app/models/principal.rb'
- - 'lib/redmine/access_control.rb'
- - 'test/functional/imports_controller_test.rb'
- - 'test/unit/issue_import_test.rb'
- - 'test/unit/time_entry_import_test.rb'
-
- # Cop supports --auto-correct.
- Performance/StringReplacement:
- Exclude:
- - 'app/helpers/application_helper.rb'
- - 'app/helpers/imports_helper.rb'
- - 'app/helpers/settings_helper.rb'
- - 'lib/redmine/core_ext/string/conversions.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- - 'test/functional/repositories_cvs_controller_test.rb'
- - 'test/functional/repositories_git_controller_test.rb'
- - 'test/helpers/application_helper_test.rb'
- - 'test/integration/repositories_git_test.rb'
- - 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb'
- - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
- - 'test/unit/repository_cvs_test.rb'
- - 'test/unit/repository_git_test.rb'
-
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/ActiveRecordOverride:
- Exclude:
- - 'app/models/email_address.rb'
- - 'app/models/issue.rb'
- - 'app/models/journal.rb'
- - 'app/models/member.rb'
-
- # Cop supports --auto-correct.
- Rails/ApplicationController:
- Exclude:
- - 'app/controllers/mail_handler_controller.rb'
- - 'app/controllers/sys_controller.rb'
- - 'test/unit/lib/redmine/hook_test.rb'
-
- # Cop supports --auto-correct.
- Rails/ApplicationMailer:
- Exclude:
- - 'app/models/mail_handler.rb'
- - 'app/models/mailer.rb'
-
- # Cop supports --auto-correct.
- Rails/ApplicationRecord:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: Include.
- # Include: **/test/**/*
- Rails/AssertNot:
- Enabled: false
-
- # Cop supports --auto-correct.
- # 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/repository/git.rb'
- - 'app/models/role.rb'
- - 'lib/redmine/field_format.rb'
- - 'lib/redmine/wiki_formatting/macros.rb'
-
- # Configuration parameters: Include.
- # Include: db/migrate/*.rb
- Rails/CreateTableWithTimestamps:
- Enabled: false
-
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: strict, flexible
- Rails/Date:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforceForPrefixed.
- Rails/Delegate:
- Exclude:
- - 'app/models/changeset.rb'
- - 'app/models/custom_field.rb'
- - 'app/models/custom_field_enumeration.rb'
- - 'app/models/custom_field_value.rb'
- - 'app/models/custom_value.rb'
- - 'app/models/group.rb'
- - 'app/models/message.rb'
- - 'app/models/repository.rb'
- - 'app/models/repository/git.rb'
- - 'app/models/time_entry_activity.rb'
- - 'app/models/wiki_content.rb'
- - 'app/models/wiki_content_version.rb'
- - 'lib/redmine/menu_manager.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: Whitelist.
- # Whitelist: find_by_sql
- Rails/DynamicFindBy:
- Enabled: false
-
- # Configuration parameters: Include.
- # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
- Rails/Exit:
- Exclude:
- - 'lib/**/*.rake'
- - 'config/environment.rb'
- - 'config/initializers/10-patches.rb'
- - 'config/routes.rb'
-
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: slashes, arguments
- Rails/FilePath:
- Exclude:
- - 'app/models/attachment.rb'
- - 'app/models/import.rb'
- - 'app/models/setting.rb'
- - 'config/environment.rb'
- - 'config/initializers/00-core_plugins.rb'
- - 'config/initializers/10-patches.rb'
- - 'lib/redmine/configuration.rb'
- - 'lib/redmine/plugin.rb'
- - 'lib/redmine/version.rb'
- - 'test/application_system_test_case.rb'
- - 'test/functional/custom_fields_controller_test.rb'
- - 'test/functional/settings_controller_test.rb'
- - 'test/test_helper.rb'
- - 'test/unit/lib/redmine/configuration_test.rb'
- - 'test/unit/lib/redmine/i18n_test.rb'
- - 'test/unit/lib/redmine/plugin_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/FindBy:
- Exclude:
- - 'app/models/attachment.rb'
- - 'app/models/enumeration.rb'
- - 'app/models/issue_import.rb'
- - 'app/models/repository.rb'
- - 'app/models/repository/cvs.rb'
- - 'app/models/repository/git.rb'
- - 'app/models/repository/mercurial.rb'
- - 'app/models/time_entry_query.rb'
- - 'app/models/user.rb'
- - 'app/models/wiki.rb'
- - 'app/models/wiki_content_version.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- 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'
- - 'app/models/project.rb'
- - 'app/models/time_entry_activity.rb'
- - 'app/models/tracker.rb'
- - 'app/models/wiki.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: numeric, symbolic
- Rails/HttpStatus:
- Exclude:
- - 'app/controllers/mail_handler_controller.rb'
- - 'app/controllers/sys_controller.rb'
- - 'app/controllers/watchers_controller.rb'
-
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/InverseOf:
- 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'
-
- # Configuration parameters: Include.
- # Include: app/controllers/**/*.rb
- Rails/LexicallyScopedActionFilter:
- Exclude:
- - 'app/controllers/projects_controller.rb'
-
- # Cop supports --auto-correct.
- Rails/LinkToBlank:
- Exclude:
- - 'app/helpers/avatars_helper.rb'
-
- # Configuration parameters: Include.
- # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
- Rails/Output:
- Exclude:
- - 'app/models/mail_handler.rb'
- - 'config/routes.rb'
- - 'lib/redmine/unified_diff.rb'
-
- Rails/OutputSafety:
- Enabled: false
-
- # Cop supports --auto-correct.
- 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'
-
- # Cop supports --auto-correct.
- Rails/Presence:
- Exclude:
- - 'app/controllers/activities_controller.rb'
- - 'app/helpers/application_helper.rb'
- - 'app/models/repository.rb'
- - 'lib/redmine/codeset_util.rb'
- - '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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
- Rails/Present:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/ReadWriteAttribute:
- Exclude:
- - 'app/models/attachment.rb'
- - 'app/models/auth_source_ldap.rb'
- - 'app/models/changeset.rb'
- - 'app/models/custom_field.rb'
- - 'app/models/email_address.rb'
- - 'app/models/issue.rb'
- - 'app/models/journal_detail.rb'
- - 'app/models/message.rb'
- - 'app/models/query.rb'
- - 'app/models/repository.rb'
- - 'app/models/repository/git.rb'
- - 'app/models/role.rb'
- - 'app/models/setting.rb'
- - 'app/models/time_entry.rb'
- - 'app/models/user.rb'
- - 'app/models/user_preference.rb'
- - 'app/models/wiki_page.rb'
-
- Rails/ReflectionClassName:
- Exclude:
- - 'lib/redmine/nested_set/issue_nested_set.rb'
- - 'lib/redmine/nested_set/project_nested_set.rb'
-
- # Cop supports --auto-correct.
- # 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'
- - 'test/unit/mail_handler_test.rb'
-
- # Configuration parameters: Blacklist, Whitelist.
- # Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
- Rails/SkipsModelValidations:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: strict, flexible
- Rails/TimeZone:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/Validation:
- Enabled: false
-
- Security/Eval:
- Exclude:
- - 'app/helpers/attachments_helper.rb'
- - 'app/models/user.rb'
- - 'config/initializers/00-core_plugins.rb'
-
- Security/Open:
- Exclude:
- - 'app/models/version.rb'
-
- # Cop supports --auto-correct.
- Security/YAMLLoad:
- Exclude:
- - 'Gemfile'
- - 'app/models/setting.rb'
- - 'lib/redmine/configuration.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: prefer_alias, prefer_alias_method
- Style/Alias:
- 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'
- - 'lib/redmine/menu_manager.rb'
- - 'lib/redmine/plugin.rb'
- - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
- - 'lib/redmine/wiki_formatting/textile/formatter.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: always, conditionals
- Style/AndOr:
- Exclude:
- - 'app/controllers/account_controller.rb'
- - 'app/controllers/application_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'
- - '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.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: percent_q, bare_percent
- Style/BarePercentLiterals:
- Exclude:
- - 'test/integration/api_test/api_test.rb'
-
- # Cop supports --auto-correct.
- Style/BlockComments:
- Exclude:
- - 'lib/diff.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
- # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
- # FunctionalMethods: let, let!, subject, watch
- # IgnoredMethods: lambda, proc, it
- Style/BlockDelimiters:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: AutoCorrect, EnforcedStyle.
- # SupportedStyles: nested, compact
- Style/ClassAndModuleChildren:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/ClassMethods:
- Exclude:
- - 'lib/diff.rb'
-
- Style/ClassVars:
- Exclude:
- - 'app/models/attachment.rb'
- - 'config/initializers/10-patches.rb'
- - 'lib/redmine/activity.rb'
- - '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/wiki_formatting.rb'
- - 'lib/redmine/wiki_formatting/macros.rb'
- - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
- - 'test/helpers/activities_helper_test.rb'
-
- # Cop supports --auto-correct.
- Style/ColonMethodCall:
- Exclude:
- - 'Gemfile'
- - 'app/controllers/admin_controller.rb'
- - 'app/models/setting.rb'
- - 'lib/redmine/configuration.rb'
- - 'lib/redmine/export/pdf.rb'
- - 'lib/redmine/wiki_formatting.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- - 'test/test_helper.rb'
- - 'test/unit/default_data_test.rb'
- - 'test/unit/lib/redmine/export/pdf_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
- # SupportedStyles: assign_to_condition, assign_inside_condition
- Style/ConditionalAssignment:
- Enabled: false
-
- Style/Documentation:
- Enabled: false
-
- Style/DoubleNegation:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/helpers/application_helper.rb'
- - 'app/models/attachment.rb'
- - 'app/models/issue_import.rb'
- - 'app/models/mailer.rb'
- - 'app/models/query.rb'
- - 'app/models/user.rb'
- - 'lib/redmine/sudo_mode.rb'
-
- # Cop supports --auto-correct.
- Style/EachWithObject:
- 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'
- - 'config/initializers/10-patches.rb'
- - 'lib/redmine/acts/positioned.rb'
- - 'lib/redmine/configuration.rb'
- - 'lib/redmine/i18n.rb'
- - 'lib/redmine/mime_type.rb'
- - 'lib/redmine/my_page.rb'
- - 'lib/redmine/sort_criteria.rb'
- - 'test/test_helper.rb'
-
- # Cop supports --auto-correct.
- Style/EmptyCaseCondition:
- Exclude:
- - 'app/models/auth_source_ldap.rb'
- - 'app/models/issue_priority.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: empty, nil, both
- Style/EmptyElse:
- Exclude:
- - 'app/models/mail_handler.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: compact, expanded
- Style/EmptyMethod:
- Enabled: false
-
- Style/EvalWithLocation:
- Exclude:
- - 'app/helpers/attachments_helper.rb'
-
- # Cop supports --auto-correct.
- Style/ExpandPathArguments:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: each, for
- Style/For:
- Exclude:
- - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
- - 'lib/redmine/export/pdf/wiki_pdf_helper.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: format, sprintf, percent
- Style/FormatString:
- Exclude:
- - 'app/models/query.rb'
- - 'config/initializers/10-patches.rb'
- - 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
- - 'lib/redmine/export/csv.rb'
- - 'lib/redmine/helpers/gantt.rb'
- - 'lib/redmine/i18n.rb'
- - 'lib/redmine/info.rb'
-
- # Configuration parameters: AllowedVariables.
- Style/GlobalVars:
- Exclude:
- - 'test/test_helper.rb'
-
- # Configuration parameters: MinBodyLength.
- Style/GuardClause:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/HashEachMethods:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/controllers/groups_controller.rb'
- - 'app/models/mailer.rb'
- - 'app/models/role.rb'
- - 'test/functional/issues_custom_fields_visibility_test.rb'
- - 'test/unit/auth_source_ldap_test.rb'
-
- # Configuration parameters: AllowIfModifier.
- Style/IfInsideElse:
- 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'
- - 'lib/redmine/menu_manager.rb'
- - 'lib/redmine/pop3.rb'
- - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
- - 'lib/redmine/views/builders/structure.rb'
-
- # Cop supports --auto-correct.
- Style/IfUnlessModifier:
- Enabled: false
-
- Style/IfUnlessModifierOfIfUnless:
- Exclude:
- - 'app/models/attachment.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: InverseMethods, InverseBlocks.
- Style/InverseMethods:
- Exclude:
- - 'app/controllers/roles_controller.rb'
- - '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'
- - '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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: line_count_dependent, lambda, literal
- Style/Lambda:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/LineEndConcatenation:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: IgnoredMethods.
- Style/MethodCallWithoutArgsParentheses:
- Exclude:
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
- Style/MethodDefParentheses:
- Exclude:
- - 'lib/redmine/menu_manager.rb'
-
- Style/MethodMissingSuper:
- Exclude:
- - 'lib/redmine/views/builders/structure.rb'
-
- Style/MissingRespondToMissing:
- Exclude:
- - 'lib/redmine/views/builders/structure.rb'
-
- Style/MixinUsage:
- Exclude:
- - 'test/test_helper.rb'
-
- # Cop supports --auto-correct.
- Style/MultilineIfModifier:
- Exclude:
- - 'app/helpers/application_helper.rb'
- - '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/repository/bazaar.rb'
- - 'app/models/time_entry_query.rb'
- - 'app/views/common/feed.atom.builder'
- - 'lib/redmine/access_keys.rb'
- - 'lib/redmine/helpers/gantt.rb'
- - 'lib/redmine/wiki_formatting.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- Style/MultilineTernaryOperator:
- Exclude:
- - 'app/controllers/workflows_controller.rb'
- - 'app/helpers/settings_helper.rb'
- - 'app/models/issue_query.rb'
- - 'lib/redmine/ciphering.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
-
- Style/MultipleComparison:
- Exclude:
- - 'app/helpers/application_helper.rb'
- - 'app/helpers/workflows_helper.rb'
- - 'app/models/import.rb'
- - 'app/models/version.rb'
- - 'app/models/wiki_page.rb'
- - 'app/models/workflow_transition.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: literals, strict
- Style/MutableConstant:
- Enabled: false
-
- # Cop supports --auto-correct.
- # 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/diff.rb'
- - 'lib/redmine/codeset_util.rb'
- - 'lib/redmine/thumbnail.rb'
-
- # Cop supports --auto-correct.
- Style/NegatedWhile:
- Exclude:
- - 'app/helpers/application_helper.rb'
-
- # Cop supports --auto-correct.
- # 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'
- - 'test/unit/mail_handler_test.rb'
-
- Style/NestedTernaryOperator:
- Exclude:
- - 'app/helpers/queries_helper.rb'
- - 'app/models/journal.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, MinBodyLength.
- # SupportedStyles: skip_modifier_ifs, always
- Style/Next:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/Not:
- Exclude:
- - 'db/migrate/096_add_commit_access_permission.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedOctalStyle.
- # SupportedOctalStyles: zero_with_o, zero_only
- Style/NumericLiteralPrefix:
- Exclude:
- - 'test/unit/user_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: Strict.
- Style/NumericLiterals:
- MinDigits: 9
-
- # Cop supports --auto-correct.
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
- # SupportedStyles: predicate, comparison
- Style/NumericPredicate:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/OrAssignment:
- Exclude:
- - 'app/helpers/sort_helper.rb'
- - 'app/models/repository/cvs.rb'
- - 'app/models/user.rb'
- - 'lib/redmine/helpers/diff.rb'
-
- # Cop supports --auto-correct.
- Style/ParallelAssignment:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
- Style/ParenthesesAroundCondition:
- Exclude:
- - 'app/models/repository/subversion.rb'
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/scm/adapters/git_adapter.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: PreferredDelimiters.
- Style/PercentLiteralDelimiters:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/PerlBackrefs:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: short, verbose
- Style/PreferredHashMethods:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/Proc:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: compact, exploded
- Style/RaiseArgs:
- Exclude:
- - 'app/models/auth_source_ldap.rb'
- - 'app/models/issue_query.rb'
- - 'app/models/mailer.rb'
- - 'app/models/query.rb'
- - 'app/models/tracker.rb'
- - 'app/models/user.rb'
- - 'app/models/workflow_rule.rb'
- - 'lib/redmine/access_control.rb'
- - 'lib/redmine/default_data/loader.rb'
- - 'lib/redmine/plugin.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- - 'lib/redmine/sort_criteria.rb'
-
- # Cop supports --auto-correct.
- Style/RedundantCondition:
- Exclude:
- - 'app/controllers/messages_controller.rb'
- - 'app/controllers/previews_controller.rb'
- - 'app/models/issue.rb'
-
- # Cop supports --auto-correct.
- Style/RedundantConditional:
- Exclude:
- - 'app/controllers/workflows_controller.rb'
- - 'app/helpers/application_helper.rb'
- - 'app/models/enumeration.rb'
- - 'lib/redmine/field_format.rb'
-
- # Cop supports --auto-correct.
- 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'
- - 'lib/redmine/helpers/time_report.rb'
- - 'lib/redmine/scm/adapters/subversion_adapter.rb'
- - 'lib/redmine/wiki_formatting.rb'
- - 'test/functional/versions_controller_test.rb'
- - 'test/functional/watchers_controller_test.rb'
-
- # Cop supports --auto-correct.
- Style/RedundantParentheses:
- Exclude:
- - 'app/controllers/search_controller.rb'
- - 'app/models/enumeration.rb'
- - 'app/models/principal.rb'
- - 'app/models/query.rb'
- - 'app/models/repository/cvs.rb'
- - 'app/models/version.rb'
- - 'lib/redmine/field_format.rb'
- - 'lib/redmine/helpers/gantt.rb'
- - 'lib/redmine/platform.rb'
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- - 'test/unit/attachment_test.rb'
- - 'test/unit/lib/redmine/export/pdf_test.rb'
- - 'test/unit/project_test.rb'
- - 'test/unit/user_test.rb'
- - 'test/unit/version_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowMultipleReturnValues.
- Style/RedundantReturn:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/RedundantSelf:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/RedundantSort:
- Exclude:
- - 'app/models/import.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'test/functional/issues_controller_test.rb'
- - 'test/unit/member_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
- # SupportedStyles: slashes, percent_r, mixed
- Style/RegexpLiteral:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/RescueModifier:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/controllers/attachments_controller.rb'
- - 'app/controllers/imports_controller.rb'
- - 'app/controllers/watchers_controller.rb'
- - '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'
- - 'lib/redmine/search.rb'
- - 'lib/redmine/wiki_formatting.rb'
- - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: implicit, explicit
- Style/RescueStandardError:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
- # AllowedMethods: present?, blank?, presence, try, try!
- Style/SafeNavigation:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/SelfAssignment:
- Exclude:
- - 'app/controllers/repositories_controller.rb'
- - 'app/helpers/application_helper.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'
- - 'lib/redmine/helpers/time_report.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowAsExpressionSeparator.
- Style/Semicolon:
- Exclude:
- - 'app/controllers/account_controller.rb'
- - 'app/controllers/context_menus_controller.rb'
- - 'app/controllers/journals_controller.rb'
- - 'app/controllers/messages_controller.rb'
- - 'app/controllers/repositories_controller.rb'
- - 'app/controllers/search_controller.rb'
- - 'app/models/issue.rb'
- - 'app/models/issue_query.rb'
- - 'app/models/journal.rb'
- - 'app/models/mail_handler.rb'
- - 'app/models/project.rb'
- - 'app/models/query.rb'
- - 'app/models/tracker.rb'
- - 'lib/redmine/configuration.rb'
- - 'lib/redmine/i18n.rb'
- - 'lib/redmine/scm/adapters/git_adapter.rb'
- - 'lib/redmine/sort_criteria.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowIfMethodIsEmpty.
- Style/SingleLineMethods:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: .
- # SupportedStyles: use_perl_names, use_english_names
- Style/SpecialGlobalVars:
- EnforcedStyle: use_perl_names
-
- # Cop supports --auto-correct.
- Style/StderrPuts:
- Exclude:
- - 'config/environment.rb'
- - 'config/initializers/10-patches.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
- # SupportedStyles: single_quotes, double_quotes
- Style/StringLiterals:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: single_quotes, double_quotes
- Style/StringLiteralsInInterpolation:
- Exclude:
- - 'app/models/issue_query.rb'
- - 'config/environment.rb'
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/wiki_formatting.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- - 'test/unit/member_test.rb'
-
- Style/StructInheritance:
- Exclude:
- - 'lib/redmine/notifiable.rb'
- - 'lib/redmine/sudo_mode.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: MinSize.
- # SupportedStyles: percent, brackets
- Style/SymbolArray:
- EnforcedStyle: brackets
-
- # Cop supports --auto-correct.
- # Configuration parameters: IgnoredMethods.
- # IgnoredMethods: respond_to, define_method
- Style/SymbolProc:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
- # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
- Style/TernaryParentheses:
- Enabled: false
-
- # 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:
- - 'app/models/issue.rb'
- - 'app/models/journal.rb'
- - 'app/models/query.rb'
- - 'lib/redmine/access_control.rb'
- - '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'
-
- # Cop supports --auto-correct.
- Style/UnlessElse:
- Exclude:
- - 'app/controllers/auth_sources_controller.rb'
- - 'app/controllers/trackers_controller.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/unified_diff.rb'
-
- # Cop supports --auto-correct.
- Style/VariableInterpolation:
- Exclude:
- - 'lib/redmine/configuration.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
- # SupportedStyles: percent, brackets
- Style/WordArray:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/ZeroLengthPredicate:
- Exclude:
- - 'app/models/import.rb'
- - 'app/models/mail_handler.rb'
- - 'app/models/user.rb'
- - 'lib/redmine/field_format.rb'
- - '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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
- # URISchemes: http, https
- Layout/LineLength:
- Max: 461
|