123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851 |
- # This configuration was generated by
- # `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
- # using RuboCop version 1.15.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:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: leading, trailing
- Layout/DotPosition:
- Enabled: false
-
- # Cop supports --auto-correct.
- Layout/EmptyLineAfterGuardClause:
- Exclude:
- - 'db/migrate/101_populate_changesets_user_id.rb'
- - 'lib/diff.rb'
- - 'lib/redmine/default_data/loader.rb'
- - 'lib/redmine/safe_attributes.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
- Layout/EmptyLineBetweenDefs:
- Exclude:
- - 'config/initializers/10-patches.rb'
-
- # Cop supports --auto-correct.
- Layout/EmptyLines:
- Exclude:
- - 'config/routes.rb'
- - 'db/migrate/001_setup.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowAliasSyntax, AllowedMethods.
- # AllowedMethods: alias_method, public, protected, private
- Layout/EmptyLinesAroundAttributeAccessor:
- Exclude:
- - 'app/models/issue.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/sudo_mode.rb'
- - 'test/unit/lib/redmine/safe_attributes_test.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/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'
-
- # 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'
-
- # 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/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:
- 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'
-
- # 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:
- 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'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- - 'test/mocks/open_id_authentication_mock.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/SpaceAfterComma:
- Exclude:
- - 'app/controllers/projects_controller.rb'
- - 'lib/redmine/configuration.rb'
- - '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'
-
- # 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/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: 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/unit/lib/redmine/menu_manager_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
- # SupportedStyles: space, no_space, compact
- # SupportedStylesForEmptyBrackets: space, no_space
- Layout/SpaceInsideArrayLiteralBrackets:
- Exclude:
- - 'app/models/query.rb'
- - 'lib/diff.rb'
- - 'test/unit/mailer_localisation_test.rb'
-
- # 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/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/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'
-
- # Configuration parameters: IgnoredMethods.
- Lint/AmbiguousBlockAssociation:
- Enabled: false
-
- # Cop supports --auto-correct.
- Lint/AmbiguousOperator:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/helpers/application_helper.rb'
- - 'test/unit/custom_field_test.rb'
- - 'test/unit/member_test.rb'
-
- # Cop supports --auto-correct.
- Lint/AmbiguousRegexpLiteral:
- Enabled: false
-
- # Configuration parameters: AllowSafeAssignment.
- Lint/AssignmentInCondition:
- Enabled: false
-
- Lint/BinaryOperatorWithIdenticalOperands:
- Exclude:
- - 'lib/redmine/helpers/calendar.rb'
-
- # 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'
-
- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
- Lint/DuplicateBranch:
- Exclude:
- - 'app/helpers/queries_helper.rb'
- - 'app/models/issue.rb'
- - 'lib/redmine/sudo_mode.rb'
-
- # Configuration parameters: AllowComments, AllowEmptyLambdas.
- Lint/EmptyBlock:
- Exclude:
- - 'app/controllers/issues_controller.rb'
- - 'app/models/auth_source_ldap.rb'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'test/helpers/application_helper_test.rb'
- - 'test/unit/lib/redmine/plugin_test.rb'
-
- Lint/FloatComparison:
- Exclude:
- - 'app/models/time_entry.rb'
- - 'test/system/timelog_test.rb'
-
- # Cop supports --auto-correct.
- Lint/InterpolationCheck:
- Exclude:
- - 'app/models/user.rb'
-
- # Cop supports --auto-correct.
- Lint/Loop:
- Exclude:
- - 'lib/redmine/helpers/gantt.rb'
-
- Lint/MissingSuper:
- Exclude:
- - 'app/models/query.rb'
- - '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'
-
- Lint/MixedRegexpCaptureTypes:
- Exclude:
- - 'app/helpers/application_helper.rb'
-
- # Cop supports --auto-correct.
- Lint/NonDeterministicRequireOrder:
- Exclude:
- - 'lib/redmine/core_ext.rb'
-
- Lint/OutOfRangeRegexpRef:
- Exclude:
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- 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'
-
- # Cop supports --auto-correct.
- Lint/SendWithMixinArgument:
- Exclude:
- - 'lib/redmine/acts/positioned.rb'
- - 'test/object_helpers.rb'
-
- Lint/ShadowingOuterLocalVariable:
- Enabled: false
-
- # Configuration parameters: AllowComments, AllowNil.
- 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.
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
- Lint/UnusedBlockArgument:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
- Lint/UnusedMethodArgument:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
- Lint/UselessAccessModifier:
- Exclude:
- - 'test/functional/repositories_git_controller_test.rb'
-
- 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, CheckDefinitionPathHierarchy, 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: at, by, db, id, in, io, ip, of, on, os, pp, to
- 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, AllowedIdentifiers.
- # SupportedStyles: snake_case, camelCase
- Naming/VariableName:
- Exclude:
- - 'lib/redmine/scm/adapters/cvs_adapter.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
- # 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'
-
- # Cop supports --auto-correct.
- Performance/AncestorsInclude:
- Exclude:
- - 'test/unit/document_category_test.rb'
- - 'test/unit/issue_priority_test.rb'
- - 'test/unit/time_entry_activity_test.rb'
-
- # Cop supports --auto-correct.
- 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'
- - 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/views/builders.rb'
- - 'lib/redmine/views/builders/structure.rb'
- - 'lib/redmine/wiki_formatting/macros.rb'
-
- # 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'
- - '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'
-
- # Cop supports --auto-correct.
- Performance/ConstantRegexp:
- Exclude:
- - 'app/models/changeset.rb'
- - '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'
-
- # Cop supports --auto-correct.
- Performance/RedundantEqualityComparisonBlock:
- Exclude:
- - 'app/models/query.rb'
- - 'app/models/setting.rb'
- - 'lib/redmine/field_format.rb'
- - 'test/integration/api_test/issues_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.
- Performance/RedundantSplitRegexpArgument:
- Exclude:
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: AutoCorrect.
- 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'
-
- # Cop supports --auto-correct.
- Performance/Sum:
- Exclude:
- - 'app/helpers/issues_helper.rb'
-
- # Cop supports --auto-correct.
- # 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'
-
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/ActiveRecordOverride:
- Exclude:
- - 'app/models/email_address.rb'
- - 'app/models/issue.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'
-
- # Cop supports --auto-correct.
- Rails/ContentTag:
- Enabled: false
-
- # 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, AllowedMethods, AllowedReceivers.
- # Whitelist: find_by_sql
- # AllowedMethods: find_by_sql
- # AllowedReceivers: Gem::Specification
- Rails/DynamicFindBy:
- Enabled: false
-
- # Configuration parameters: Include.
- # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
- Rails/Exit:
- Exclude:
- - '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/twofa.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/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, IgnoredMethods.
- # Include: app/models/**/*.rb
- # IgnoredMethods: order, limit, select, lock
- 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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: Include.
- # Include: config/routes.rb, config/routes/**/*.rb
- Rails/MatchRoute:
- Exclude:
- - 'config/routes.rb'
-
- # Cop supports --auto-correct.
- Rails/NegateInclude:
- Enabled: false
-
- # 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/Pluck:
- Exclude:
- - 'app/helpers/versions_helper.rb'
- - 'test/unit/query_test.rb'
-
- # 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'
-
- # Cop supports --auto-correct.
- Rails/RedundantForeignKey:
- Exclude:
- - 'app/models/changeset.rb'
- - 'app/models/custom_field.rb'
- - 'app/models/query.rb'
- - 'app/models/role.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'
-
- # Cop supports --auto-correct.
- # 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'
-
- # 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
- 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
-
- # Cop supports --auto-correct.
- 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'
- - 'test/functional/issues_controller_test.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: exists, where
- Rails/WhereExists:
- Exclude:
- - 'app/controllers/issues_controller.rb'
- - 'app/models/issue.rb'
- - 'app/models/project.rb'
- - 'app/models/user.rb'
- - 'app/models/watcher.rb'
- - 'lib/redmine/default_data/loader.rb'
- - 'test/functional/workflows_controller_test.rb'
- - 'test/unit/document_category_test.rb'
- - 'test/unit/enumeration_test.rb'
- - 'test/unit/issue_status_test.rb'
- - 'test/unit/project_test.rb'
- - 'test/unit/workflow_transition_test.rb'
-
- # Cop supports --auto-correct.
- Rails/WhereNot:
- Exclude:
- - 'app/models/import.rb'
- - 'app/models/user.rb'
- - 'db/migrate/20130710182539_add_queries_visibility.rb'
- - 'test/unit/issue_test.rb'
- - 'test/unit/project_test.rb'
- - 'test/unit/user_test.rb'
-
- 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: separated, grouped
- Style/AccessorGrouping:
- Exclude:
- - 'app/models/user.rb'
- - 'lib/redmine/helpers/gantt.rb'
- - 'lib/redmine/unified_diff.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/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/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'
- - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
- - 'lib/redmine/field_format.rb'
- - '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'
- - 'lib/redmine/unified_diff.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: nested, compact
- Style/ClassAndModuleChildren:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: IgnoredMethods.
- # IgnoredMethods: ==, equal?, eql?
- Style/ClassEqualityComparison:
- Exclude:
- - 'app/models/principal.rb'
-
- # 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/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'
-
- # Cop supports --auto-correct.
- Style/CollectionCompact:
- Exclude:
- - 'app/controllers/issues_controller.rb'
- - 'app/controllers/projects_controller.rb'
- - 'lib/redmine/sudo_mode.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/unit/default_data_test.rb'
- - 'test/unit/lib/redmine/export/pdf_test.rb'
-
- Style/CombinableLoops:
- Exclude:
- - 'app/models/wiki_page.rb'
- - 'lib/redmine/default_data/loader.rb'
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
- # SupportedStyles: assign_to_condition, assign_inside_condition
- Style/ConditionalAssignment:
- Enabled: false
-
- Style/DocumentDynamicEvalDefinition:
- Exclude:
- - 'app/helpers/attachments_helper.rb'
-
- # Configuration parameters: AllowedConstants.
- Style/Documentation:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: allowed_in_returns, forbidden
- Style/DoubleNegation:
- Exclude:
- - '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
-
- # Cop supports --auto-correct.
- Style/EvalWithLocation:
- Exclude:
- - 'app/helpers/attachments_helper.rb'
-
- # Cop supports --auto-correct.
- Style/ExpandPathArguments:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/ExplicitBlockArgument:
- Exclude:
- - 'app/models/board.rb'
- - 'lib/redmine/activity/fetcher.rb'
- - 'lib/redmine/menu_manager.rb'
- - 'lib/redmine/plugin.rb'
- - 'lib/redmine/scm/adapters/subversion_adapter.rb'
- - 'test/test_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.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: braces, no_braces
- Style/HashAsLastArrayItem:
- Exclude:
- - 'app/controllers/enumerations_controller.rb'
- - 'app/models/board.rb'
-
- # 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'
-
- # Cop supports --auto-correct.
- # 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
-
- # Cop supports --auto-correct.
- Style/IfUnlessModifierOfIfUnless:
- Exclude:
- - 'app/models/attachment.rb'
-
- # Cop supports --auto-correct.
- # 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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: InverseMethods, InverseBlocks.
- Style/InverseMethods:
- 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'
- - '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'
-
- 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/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'
- - 'lib/redmine/wiki_formatting.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-
- # Cop supports --auto-correct.
- Style/MultilineTernaryOperator:
- Exclude:
- - 'lib/redmine/ciphering.rb'
- - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
-
- # Cop supports --auto-correct.
- Style/MultipleComparison:
- Exclude:
- - 'app/helpers/application_helper.rb'
- - 'app/models/version.rb'
- - 'app/models/wiki_page.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'
-
- # Cop supports --auto-correct.
- 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: EnforcedStyle, IgnoredMethods.
- # SupportedStyles: predicate, comparison
- Style/NumericPredicate:
- Enabled: false
-
- # Configuration parameters: AllowedMethods.
- # AllowedMethods: respond_to_missing?
- Style/OptionalBooleanParameter:
- 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:
- 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'
- - 'lib/redmine.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'
-
- # Cop supports --auto-correct.
- # Configuration parameters: Methods.
- Style/RedundantArgument:
- Exclude:
- - 'app/controllers/account_controller.rb'
- - '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'
-
- # Cop supports --auto-correct.
- Style/RedundantAssignment:
- Exclude:
- - 'app/models/mail_handler.rb'
- - 'app/models/query.rb'
- - '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'
-
- # Cop supports --auto-correct.
- Style/RedundantBegin:
- Exclude:
- - 'app/controllers/issues_controller.rb'
- - 'app/models/auth_source.rb'
- - 'app/models/member.rb'
- - 'app/models/repository.rb'
- - 'app/models/setting.rb'
- - 'lib/redmine/codeset_util.rb'
- - 'lib/redmine/plugin.rb'
- - 'test/unit/issue_nested_set_concurrency_test.rb'
- - 'test/unit/project_nested_set_concurrency_test.rb'
- - 'test/unit/query_test.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/repository/cvs.rb'
- - 'lib/redmine/field_format.rb'
- - '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'
-
- # Cop supports --auto-correct.
- Style/RedundantRegexpCharacterClass:
- Exclude:
- - 'app/helpers/application_helper.rb'
-
- # Cop supports --auto-correct.
- Style/RedundantRegexpEscape:
- Enabled: false
-
- # Cop supports --auto-correct.
- # Configuration parameters: AllowMultipleReturnValues.
- Style/RedundantReturn:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/RedundantSelf:
- Enabled: false
-
- # Cop supports --auto-correct.
- Style/RedundantSelfAssignment:
- Exclude:
- - 'lib/redmine/menu_manager.rb'
-
- # 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/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/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/models/journal.rb'
- - 'app/models/mail_handler.rb'
- - 'app/models/query.rb'
- - 'lib/redmine/configuration.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: AllowModifier.
- Style/SoleNestedConditional:
- Exclude:
- - 'app/controllers/application_controller.rb'
- - 'app/controllers/journals_controller.rb'
- - 'app/controllers/wiki_controller.rb'
- - 'app/models/board.rb'
- - 'app/models/changeset.rb'
- - 'app/models/issue.rb'
- - 'app/models/issue_import.rb'
- - 'app/models/issue_relation.rb'
- - 'app/models/mail_handler.rb'
- - 'app/models/principal.rb'
- - 'app/models/project.rb'
- - 'app/models/query.rb'
- - 'app/models/time_entry.rb'
- - 'app/models/user_import.rb'
- - 'app/models/version.rb'
- - 'app/models/watcher.rb'
- - 'app/models/wiki_page.rb'
- - 'lib/redmine/core_ext/active_record.rb'
-
- # 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.
- Style/StringChars:
- Exclude:
- - 'app/models/user.rb'
-
- # Cop supports --auto-correct.
- Style/StringConcatenation:
- Enabled: false
-
- # 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'
-
- # Cop supports --auto-correct.
- 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: AllowMethodsWithArguments, 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: 194
|