You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.rubocop_todo.yml 49KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
  3. # using RuboCop version 0.81.0.
  4. # The point is for the user to remove these configuration records
  5. # one by one as the offenses are removed from the code base.
  6. # Note that changes in the inspected code, or installation of new
  7. # versions of RuboCop, may require this file to be generated again.
  8. # Cop supports --auto-correct.
  9. # Configuration parameters: EnforcedStyle, IndentationWidth.
  10. # SupportedStyles: with_first_argument, with_fixed_indentation
  11. Layout/ArgumentAlignment:
  12. Exclude:
  13. - 'config/application.rb'
  14. - 'test/integration/api_test/memberships_test.rb'
  15. - 'test/integration/api_test/projects_test.rb'
  16. - 'test/integration/api_test/wiki_pages_test.rb'
  17. # Cop supports --auto-correct.
  18. Layout/ClosingParenthesisIndentation:
  19. Enabled: false
  20. # Cop supports --auto-correct.
  21. # Configuration parameters: EnforcedStyle.
  22. # SupportedStyles: leading, trailing
  23. Layout/DotPosition:
  24. Enabled: false
  25. # Cop supports --auto-correct.
  26. Layout/EmptyLineAfterGuardClause:
  27. Enabled: false
  28. # Cop supports --auto-correct.
  29. Layout/EmptyLines:
  30. Exclude:
  31. - 'config/routes.rb'
  32. - 'db/migrate/001_setup.rb'
  33. - 'lib/redmine/sudo_mode.rb'
  34. # Cop supports --auto-correct.
  35. # Configuration parameters: EnforcedStyle.
  36. # SupportedStyles: around, only_before
  37. Layout/EmptyLinesAroundAccessModifier:
  38. Exclude:
  39. - 'config/initializers/10-patches.rb'
  40. # Cop supports --auto-correct.
  41. # Configuration parameters: EnforcedStyle.
  42. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
  43. Layout/EmptyLinesAroundClassBody:
  44. Exclude:
  45. - 'db/migrate/001_setup.rb'
  46. - 'db/migrate/007_create_journals.rb'
  47. - 'db/migrate/20110223180953_salt_user_passwords.rb'
  48. - 'db/migrate/20131215104612_store_relation_type_in_journal_details.rb'
  49. - 'db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb'
  50. - 'lib/redmine/notifiable.rb'
  51. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  52. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  53. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  54. - 'lib/redmine/wiki_formatting/html_parser.rb'
  55. - 'lib/redmine/wiki_formatting/markdown/html_parser.rb'
  56. - 'lib/redmine/wiki_formatting/textile/html_parser.rb'
  57. - 'test/integration/api_test/api_routing_test.rb'
  58. - 'test/integration/lib/redmine/themes_test.rb'
  59. - 'test/integration/routing/activities_test.rb'
  60. - 'test/integration/routing/repositories_test.rb'
  61. - 'test/unit/lib/redmine/ciphering_test.rb'
  62. - 'test/unit/lib/redmine/field_format/link_format_test.rb'
  63. # Cop supports --auto-correct.
  64. Layout/EmptyLinesAroundExceptionHandlingKeywords:
  65. Exclude:
  66. - 'app/controllers/activities_controller.rb'
  67. - 'app/controllers/imports_controller.rb'
  68. - 'app/controllers/wiki_controller.rb'
  69. - 'test/functional/settings_controller_test.rb'
  70. # Cop supports --auto-correct.
  71. Layout/EmptyLinesAroundMethodBody:
  72. Exclude:
  73. - 'app/models/query.rb'
  74. - 'db/migrate/001_setup.rb'
  75. - 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
  76. - 'test/functional/journals_controller_test.rb'
  77. - 'test/functional/users_controller_test.rb'
  78. - 'test/integration/account_test.rb'
  79. - 'test/unit/attachment_test.rb'
  80. - 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
  81. - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
  82. - 'test/unit/lib/redmine/unified_diff_test.rb'
  83. # Cop supports --auto-correct.
  84. # Configuration parameters: EnforcedStyle.
  85. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
  86. Layout/EmptyLinesAroundModuleBody:
  87. Exclude:
  88. - 'app/helpers/attachments_helper.rb'
  89. - 'app/helpers/custom_fields_helper.rb'
  90. - 'app/helpers/email_addresses_helper.rb'
  91. - 'app/helpers/issues_helper.rb'
  92. - 'app/helpers/journals_helper.rb'
  93. - 'app/helpers/reports_helper.rb'
  94. - 'app/helpers/routes_helper.rb'
  95. - 'app/helpers/timelog_helper.rb'
  96. - 'app/helpers/trackers_helper.rb'
  97. - 'app/helpers/versions_helper.rb'
  98. - 'app/helpers/watchers_helper.rb'
  99. - 'lib/redmine/access_control.rb'
  100. - 'lib/redmine/activity.rb'
  101. - 'lib/redmine/codeset_util.rb'
  102. - 'lib/redmine/configuration.rb'
  103. - 'lib/redmine/helpers/calendar.rb'
  104. - 'lib/redmine/mime_type.rb'
  105. - 'lib/redmine/plugin.rb'
  106. - 'lib/redmine/search.rb'
  107. # Cop supports --auto-correct.
  108. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
  109. Layout/ExtraSpacing:
  110. Enabled: false
  111. # Cop supports --auto-correct.
  112. # Configuration parameters: EnforcedStyle, IndentationWidth.
  113. # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
  114. Layout/FirstArgumentIndentation:
  115. Enabled: false
  116. # Cop supports --auto-correct.
  117. # Configuration parameters: EnforcedStyle, IndentationWidth.
  118. # SupportedStyles: special_inside_parentheses, consistent, align_braces
  119. Layout/FirstHashElementIndentation:
  120. Enabled: false
  121. # Cop supports --auto-correct.
  122. # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
  123. # SupportedHashRocketStyles: key, separator, table
  124. # SupportedColonStyles: key, separator, table
  125. # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
  126. Layout/HashAlignment:
  127. Enabled: false
  128. # Cop supports --auto-correct.
  129. # Configuration parameters: Width, IgnoredPatterns.
  130. Layout/IndentationWidth:
  131. Enabled: false
  132. # Cop supports --auto-correct.
  133. # Configuration parameters: EnforcedStyle.
  134. # SupportedStyles: symmetrical, new_line, same_line
  135. Layout/MultilineHashBraceLayout:
  136. Exclude:
  137. - 'app/controllers/context_menus_controller.rb'
  138. - 'lib/redmine/access_keys.rb'
  139. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  140. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  141. - 'test/functional/documents_controller_test.rb'
  142. - 'test/functional/imports_controller_test.rb'
  143. - 'test/functional/issues_controller_transaction_test.rb'
  144. - 'test/functional/my_controller_test.rb'
  145. - 'test/functional/queries_controller_test.rb'
  146. - 'test/functional/timelog_controller_test.rb'
  147. - 'test/helpers/application_helper_test.rb'
  148. - 'test/integration/api_test/api_test.rb'
  149. - 'test/integration/api_test/memberships_test.rb'
  150. - 'test/integration/api_test/time_entries_test.rb'
  151. - 'test/unit/time_entry_test.rb'
  152. - 'test/unit/version_test.rb'
  153. # Cop supports --auto-correct.
  154. # Configuration parameters: EnforcedStyle.
  155. # SupportedStyles: symmetrical, new_line, same_line
  156. Layout/MultilineMethodCallBraceLayout:
  157. Enabled: false
  158. # Cop supports --auto-correct.
  159. # Configuration parameters: EnforcedStyle, IndentationWidth.
  160. # SupportedStyles: aligned, indented, indented_relative_to_receiver
  161. Layout/MultilineMethodCallIndentation:
  162. Enabled: false
  163. # Cop supports --auto-correct.
  164. # Configuration parameters: EnforcedStyle, IndentationWidth.
  165. # SupportedStyles: aligned, indented
  166. Layout/MultilineOperationIndentation:
  167. Enabled: false
  168. # Cop supports --auto-correct.
  169. Layout/RescueEnsureAlignment:
  170. Exclude:
  171. - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
  172. # Cop supports --auto-correct.
  173. Layout/SpaceAfterComma:
  174. Enabled: false
  175. # Cop supports --auto-correct.
  176. Layout/SpaceAfterNot:
  177. Exclude:
  178. - 'app/controllers/application_controller.rb'
  179. - 'app/models/repository/cvs.rb'
  180. - 'app/models/repository/git.rb'
  181. - 'lib/redmine/codeset_util.rb'
  182. - 'test/functional/account_controller_test.rb'
  183. - 'test/functional/documents_controller_test.rb'
  184. - 'test/functional/issues_controller_test.rb'
  185. - 'test/functional/repositories_git_controller_test.rb'
  186. - 'test/functional/timelog_controller_test.rb'
  187. - 'test/functional/workflows_controller_test.rb'
  188. - 'test/unit/attachment_test.rb'
  189. - 'test/unit/lib/redmine/export/pdf_test.rb'
  190. - 'test/unit/project_copy_test.rb'
  191. - 'test/unit/project_test.rb'
  192. - 'test/unit/query_test.rb'
  193. - 'test/unit/role_test.rb'
  194. - 'test/unit/user_test.rb'
  195. # Cop supports --auto-correct.
  196. # Configuration parameters: EnforcedStyle.
  197. # SupportedStyles: space, no_space
  198. Layout/SpaceAroundEqualsInParameterDefault:
  199. Enabled: false
  200. # Cop supports --auto-correct.
  201. # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
  202. # SupportedStylesForExponentOperator: space, no_space
  203. Layout/SpaceAroundOperators:
  204. Enabled: false
  205. # Cop supports --auto-correct.
  206. # Configuration parameters: AllowForAlignment.
  207. Layout/SpaceBeforeFirstArg:
  208. Exclude:
  209. - 'test/helpers/issues_helper_test.rb'
  210. - 'test/helpers/search_helper_test.rb'
  211. - 'test/unit/lib/redmine/menu_manager_test.rb'
  212. # Cop supports --auto-correct.
  213. Layout/SpaceBeforeSemicolon:
  214. Exclude:
  215. - 'app/models/user_preference.rb'
  216. - 'config/initializers/10-patches.rb'
  217. # Cop supports --auto-correct.
  218. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  219. # SupportedStyles: space, no_space, compact
  220. # SupportedStylesForEmptyBrackets: space, no_space
  221. Layout/SpaceInsideArrayLiteralBrackets:
  222. Exclude:
  223. - 'app/controllers/projects_controller.rb'
  224. - 'app/helpers/timelog_helper.rb'
  225. - 'app/models/query.rb'
  226. - 'lib/diff.rb'
  227. - 'lib/redmine/i18n.rb'
  228. - 'test/unit/mailer_localisation_test.rb'
  229. - 'test/unit/mailer_test.rb'
  230. - 'test/unit/search_test.rb'
  231. # Cop supports --auto-correct.
  232. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
  233. # SupportedStyles: space, no_space
  234. # SupportedStylesForEmptyBraces: space, no_space
  235. Layout/SpaceInsideBlockBraces:
  236. Enabled: false
  237. # Cop supports --auto-correct.
  238. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
  239. # SupportedStyles: space, no_space, compact
  240. # SupportedStylesForEmptyBraces: space, no_space
  241. Layout/SpaceInsideHashLiteralBraces:
  242. Enabled: false
  243. # Cop supports --auto-correct.
  244. # Configuration parameters: EnforcedStyle.
  245. # SupportedStyles: space, no_space
  246. Layout/SpaceInsideParens:
  247. Exclude:
  248. - 'app/helpers/issues_helper.rb'
  249. - 'app/models/auth_source_ldap.rb'
  250. - 'app/models/repository/cvs.rb'
  251. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  252. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  253. - 'lib/redmine/scm/adapters/git_adapter.rb'
  254. - 'lib/redmine/sudo_mode.rb'
  255. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  256. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  257. - 'test/unit/changeset_test.rb'
  258. - 'test/unit/issue_subtasking_test.rb'
  259. - 'test/unit/lib/redmine/export/pdf_test.rb'
  260. # Cop supports --auto-correct.
  261. # Configuration parameters: EnforcedStyle.
  262. # SupportedStyles: space, no_space
  263. Layout/SpaceInsideStringInterpolation:
  264. Exclude:
  265. - 'app/helpers/application_helper.rb'
  266. - 'app/helpers/workflows_helper.rb'
  267. - 'app/models/issue_query.rb'
  268. - 'app/models/mail_handler.rb'
  269. - 'lib/redmine/core_ext/string/inflections.rb'
  270. - 'test/integration/admin_test.rb'
  271. Lint/AmbiguousBlockAssociation:
  272. Enabled: false
  273. Lint/AmbiguousOperator:
  274. Exclude:
  275. - 'app/controllers/application_controller.rb'
  276. - 'app/helpers/application_helper.rb'
  277. - 'test/unit/custom_field_test.rb'
  278. - 'test/unit/member_test.rb'
  279. Lint/AmbiguousRegexpLiteral:
  280. Enabled: false
  281. # Configuration parameters: AllowSafeAssignment.
  282. Lint/AssignmentInCondition:
  283. Enabled: false
  284. # Cop supports --auto-correct.
  285. Lint/DeprecatedClassMethods:
  286. Exclude:
  287. - 'Gemfile'
  288. - 'app/models/import.rb'
  289. - 'config/application.rb'
  290. - 'config/boot.rb'
  291. - 'config/routes.rb'
  292. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  293. - 'lib/redmine/thumbnail.rb'
  294. - 'lib/redmine/utils.rb'
  295. - 'test/functional/issues_controller_test.rb'
  296. - 'test/unit/attachment_test.rb'
  297. - 'test/unit/issue_import_test.rb'
  298. Lint/EmptyWhen:
  299. Exclude:
  300. - 'app/controllers/issues_controller.rb'
  301. - 'app/controllers/wiki_controller.rb'
  302. Lint/InterpolationCheck:
  303. Exclude:
  304. - 'app/models/user.rb'
  305. Lint/Loop:
  306. Exclude:
  307. - 'lib/redmine/helpers/gantt.rb'
  308. # Cop supports --auto-correct.
  309. Lint/NonDeterministicRequireOrder:
  310. Exclude:
  311. - 'lib/redmine/core_ext.rb'
  312. Lint/ParenthesesAsGroupedExpression:
  313. Exclude:
  314. - 'test/functional/my_controller_test.rb'
  315. - 'test/functional/settings_controller_test.rb'
  316. - 'test/functional/users_controller_test.rb'
  317. - 'test/unit/attachment_test.rb'
  318. - 'test/unit/lib/redmine/export/pdf_test.rb'
  319. # Cop supports --auto-correct.
  320. Lint/RedundantStringCoercion:
  321. Exclude:
  322. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  323. - 'test/functional/repositories_filesystem_controller_test.rb'
  324. - 'test/functional/repositories_git_controller_test.rb'
  325. # Cop supports --auto-correct.
  326. Lint/SendWithMixinArgument:
  327. Exclude:
  328. - 'lib/redmine/acts/positioned.rb'
  329. - 'test/object_helpers.rb'
  330. Lint/ShadowingOuterLocalVariable:
  331. Enabled: false
  332. # Configuration parameters: AllowComments.
  333. Lint/SuppressedException:
  334. Exclude:
  335. - 'app/controllers/activities_controller.rb'
  336. - 'app/models/import.rb'
  337. - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
  338. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  339. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  340. # Cop supports --auto-correct.
  341. Lint/UnifiedInteger:
  342. Exclude:
  343. - 'test/unit/query_test.rb'
  344. # Cop supports --auto-correct.
  345. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
  346. Lint/UnusedBlockArgument:
  347. Enabled: false
  348. # Cop supports --auto-correct.
  349. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
  350. Lint/UnusedMethodArgument:
  351. Enabled: false
  352. Lint/UselessAssignment:
  353. Enabled: false
  354. # Configuration parameters: CheckForMethodsWithNoSideEffects.
  355. Lint/Void:
  356. Exclude:
  357. - 'app/models/query.rb'
  358. - 'app/models/time_entry.rb'
  359. - 'app/models/wiki_content_version.rb'
  360. - 'lib/redmine/unified_diff.rb'
  361. Naming/ConstantName:
  362. Exclude:
  363. - 'app/models/document_category.rb'
  364. - 'app/models/issue_priority.rb'
  365. - 'app/models/time_entry_activity.rb'
  366. - 'lib/redmine/helpers/gantt.rb'
  367. # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
  368. # 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
  369. Naming/FileName:
  370. Exclude:
  371. - 'config/initializers/00-core_plugins.rb'
  372. - 'config/initializers/10-patches.rb'
  373. - 'config/initializers/20-mime_types.rb'
  374. - 'config/initializers/30-redmine.rb'
  375. # Configuration parameters: EnforcedStyleForLeadingUnderscores.
  376. # SupportedStylesForLeadingUnderscores: disallowed, required, optional
  377. Naming/MemoizedInstanceVariableName:
  378. Exclude:
  379. - 'app/controllers/email_addresses_controller.rb'
  380. - 'app/controllers/users_controller.rb'
  381. - 'app/controllers/workflows_controller.rb'
  382. - 'app/models/issue.rb'
  383. - 'app/models/project.rb'
  384. - 'app/models/query.rb'
  385. - 'app/models/role.rb'
  386. - 'lib/redmine/field_format.rb'
  387. - 'lib/redmine/helpers/calendar.rb'
  388. - 'lib/redmine/search.rb'
  389. # Configuration parameters: EnforcedStyle, IgnoredPatterns.
  390. # SupportedStyles: snake_case, camelCase
  391. Naming/MethodName:
  392. Exclude:
  393. - 'lib/redmine/export/pdf.rb'
  394. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  395. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  396. - 'test/helpers/application_helper_test.rb'
  397. # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
  398. # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
  399. Naming/MethodParameterName:
  400. Enabled: false
  401. # Cop supports --auto-correct.
  402. # Configuration parameters: PreferredName.
  403. Naming/RescuedExceptionsVariableName:
  404. Exclude:
  405. - 'app/models/user.rb'
  406. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  407. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  408. # Configuration parameters: EnforcedStyle.
  409. # SupportedStyles: snake_case, camelCase
  410. Naming/VariableName:
  411. Exclude:
  412. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  413. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  414. # Configuration parameters: EnforcedStyle.
  415. # SupportedStyles: snake_case, normalcase, non_integer
  416. Naming/VariableNumber:
  417. Exclude:
  418. - 'test/functional/versions_controller_test.rb'
  419. - 'test/helpers/application_helper_test.rb'
  420. - 'test/unit/lib/redmine/export/pdf_test.rb'
  421. - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
  422. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  423. - 'test/unit/project_test.rb'
  424. Performance/FixedSize:
  425. Exclude:
  426. - 'test/integration/api_test/issues_test.rb'
  427. - 'test/integration/attachments_test.rb'
  428. # Cop supports --auto-correct.
  429. Performance/RedundantMatch:
  430. Exclude:
  431. - 'app/models/issue_relation.rb'
  432. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  433. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  434. # Cop supports --auto-correct.
  435. # Configuration parameters: MaxKeyValuePairs.
  436. Performance/RedundantMerge:
  437. Exclude:
  438. - 'app/controllers/issues_controller.rb'
  439. - 'app/helpers/application_helper.rb'
  440. - 'app/helpers/avatars_helper.rb'
  441. - 'app/helpers/custom_fields_helper.rb'
  442. - 'app/helpers/workflows_helper.rb'
  443. - 'app/models/auth_source_ldap.rb'
  444. - 'app/models/principal.rb'
  445. - 'lib/redmine/access_control.rb'
  446. - 'test/functional/imports_controller_test.rb'
  447. - 'test/unit/issue_import_test.rb'
  448. - 'test/unit/time_entry_import_test.rb'
  449. # Cop supports --auto-correct.
  450. Performance/StringReplacement:
  451. Exclude:
  452. - 'app/helpers/application_helper.rb'
  453. - 'app/helpers/imports_helper.rb'
  454. - 'app/helpers/settings_helper.rb'
  455. - 'lib/redmine/core_ext/string/conversions.rb'
  456. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  457. - 'test/functional/repositories_cvs_controller_test.rb'
  458. - 'test/functional/repositories_git_controller_test.rb'
  459. - 'test/helpers/application_helper_test.rb'
  460. - 'test/integration/repositories_git_test.rb'
  461. - 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb'
  462. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  463. - 'test/unit/repository_cvs_test.rb'
  464. - 'test/unit/repository_git_test.rb'
  465. # Configuration parameters: Include.
  466. # Include: app/models/**/*.rb
  467. Rails/ActiveRecordOverride:
  468. Exclude:
  469. - 'app/models/email_address.rb'
  470. - 'app/models/issue.rb'
  471. - 'app/models/journal.rb'
  472. - 'app/models/member.rb'
  473. # Cop supports --auto-correct.
  474. Rails/ApplicationController:
  475. Exclude:
  476. - 'app/controllers/mail_handler_controller.rb'
  477. - 'app/controllers/sys_controller.rb'
  478. - 'test/unit/lib/redmine/hook_test.rb'
  479. # Cop supports --auto-correct.
  480. Rails/ApplicationMailer:
  481. Exclude:
  482. - 'app/models/mail_handler.rb'
  483. - 'app/models/mailer.rb'
  484. # Cop supports --auto-correct.
  485. Rails/ApplicationRecord:
  486. Enabled: false
  487. # Cop supports --auto-correct.
  488. # Configuration parameters: Include.
  489. # Include: **/test/**/*
  490. Rails/AssertNot:
  491. Enabled: false
  492. # Cop supports --auto-correct.
  493. # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
  494. Rails/Blank:
  495. Exclude:
  496. - 'app/controllers/application_controller.rb'
  497. - 'app/controllers/context_menus_controller.rb'
  498. - 'app/controllers/repositories_controller.rb'
  499. - 'app/controllers/watchers_controller.rb'
  500. - 'app/helpers/queries_helper.rb'
  501. - 'app/helpers/repositories_helper.rb'
  502. - 'app/models/mailer.rb'
  503. - 'app/models/query.rb'
  504. - 'app/models/repository/git.rb'
  505. - 'app/models/role.rb'
  506. - 'lib/redmine/field_format.rb'
  507. - 'lib/redmine/wiki_formatting/macros.rb'
  508. # Configuration parameters: Include.
  509. # Include: db/migrate/*.rb
  510. Rails/CreateTableWithTimestamps:
  511. Enabled: false
  512. # Configuration parameters: EnforcedStyle.
  513. # SupportedStyles: strict, flexible
  514. Rails/Date:
  515. Enabled: false
  516. # Cop supports --auto-correct.
  517. # Configuration parameters: EnforceForPrefixed.
  518. Rails/Delegate:
  519. Exclude:
  520. - 'app/models/changeset.rb'
  521. - 'app/models/custom_field.rb'
  522. - 'app/models/custom_field_enumeration.rb'
  523. - 'app/models/custom_field_value.rb'
  524. - 'app/models/custom_value.rb'
  525. - 'app/models/group.rb'
  526. - 'app/models/message.rb'
  527. - 'app/models/repository.rb'
  528. - 'app/models/repository/git.rb'
  529. - 'app/models/time_entry_activity.rb'
  530. - 'app/models/wiki_content.rb'
  531. - 'app/models/wiki_content_version.rb'
  532. - 'lib/redmine/menu_manager.rb'
  533. # Cop supports --auto-correct.
  534. # Configuration parameters: Whitelist.
  535. # Whitelist: find_by_sql
  536. Rails/DynamicFindBy:
  537. Enabled: false
  538. # Configuration parameters: Include.
  539. # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
  540. Rails/Exit:
  541. Exclude:
  542. - 'lib/**/*.rake'
  543. - 'config/environment.rb'
  544. - 'config/initializers/10-patches.rb'
  545. - 'config/routes.rb'
  546. # Configuration parameters: EnforcedStyle.
  547. # SupportedStyles: slashes, arguments
  548. Rails/FilePath:
  549. Exclude:
  550. - 'app/models/attachment.rb'
  551. - 'app/models/import.rb'
  552. - 'app/models/setting.rb'
  553. - 'config/environment.rb'
  554. - 'config/initializers/00-core_plugins.rb'
  555. - 'config/initializers/10-patches.rb'
  556. - 'lib/redmine/configuration.rb'
  557. - 'lib/redmine/plugin.rb'
  558. - 'lib/redmine/twofa.rb'
  559. - 'lib/redmine/version.rb'
  560. - 'test/application_system_test_case.rb'
  561. - 'test/functional/custom_fields_controller_test.rb'
  562. - 'test/functional/settings_controller_test.rb'
  563. - 'test/test_helper.rb'
  564. - 'test/unit/lib/redmine/configuration_test.rb'
  565. - 'test/unit/lib/redmine/i18n_test.rb'
  566. - 'test/unit/lib/redmine/plugin_test.rb'
  567. # Cop supports --auto-correct.
  568. # Configuration parameters: Include.
  569. # Include: app/models/**/*.rb
  570. Rails/FindBy:
  571. Exclude:
  572. - 'app/models/attachment.rb'
  573. - 'app/models/enumeration.rb'
  574. - 'app/models/issue_import.rb'
  575. - 'app/models/repository.rb'
  576. - 'app/models/repository/cvs.rb'
  577. - 'app/models/repository/git.rb'
  578. - 'app/models/repository/mercurial.rb'
  579. - 'app/models/time_entry_query.rb'
  580. - 'app/models/user.rb'
  581. - 'app/models/wiki.rb'
  582. - 'app/models/wiki_content_version.rb'
  583. # Cop supports --auto-correct.
  584. # Configuration parameters: Include.
  585. # Include: app/models/**/*.rb
  586. Rails/FindEach:
  587. Exclude:
  588. - 'app/models/auth_source.rb'
  589. - 'app/models/group.rb'
  590. - 'app/models/issue.rb'
  591. - 'app/models/issue_status.rb'
  592. - 'app/models/project.rb'
  593. - 'app/models/query.rb'
  594. - 'app/models/repository.rb'
  595. - 'app/models/setting.rb'
  596. - 'app/models/watcher.rb'
  597. - 'app/models/wiki_page.rb'
  598. # Configuration parameters: Include.
  599. # Include: app/models/**/*.rb
  600. Rails/HasAndBelongsToMany:
  601. Exclude:
  602. - 'app/models/changeset.rb'
  603. - 'app/models/custom_field.rb'
  604. - 'app/models/group.rb'
  605. - 'app/models/issue.rb'
  606. - 'app/models/issue_custom_field.rb'
  607. - 'app/models/project.rb'
  608. - 'app/models/query.rb'
  609. - 'app/models/role.rb'
  610. - 'app/models/tracker.rb'
  611. - 'app/models/user.rb'
  612. # Configuration parameters: Include.
  613. # Include: app/models/**/*.rb
  614. Rails/HasManyOrHasOneDependent:
  615. Exclude:
  616. - 'app/models/auth_source.rb'
  617. - 'app/models/document_category.rb'
  618. - 'app/models/issue_priority.rb'
  619. - 'app/models/issue_status.rb'
  620. - 'app/models/project.rb'
  621. - 'app/models/time_entry_activity.rb'
  622. - 'app/models/tracker.rb'
  623. - 'app/models/wiki.rb'
  624. # Cop supports --auto-correct.
  625. # Configuration parameters: EnforcedStyle.
  626. # SupportedStyles: numeric, symbolic
  627. Rails/HttpStatus:
  628. Exclude:
  629. - 'app/controllers/mail_handler_controller.rb'
  630. - 'app/controllers/sys_controller.rb'
  631. - 'app/controllers/watchers_controller.rb'
  632. # Configuration parameters: Include.
  633. # Include: app/models/**/*.rb
  634. Rails/InverseOf:
  635. Exclude:
  636. - 'app/models/board.rb'
  637. - 'app/models/custom_field.rb'
  638. - 'app/models/document_category.rb'
  639. - 'app/models/issue.rb'
  640. - 'app/models/issue_category.rb'
  641. - 'app/models/issue_priority.rb'
  642. - 'app/models/issue_status.rb'
  643. - 'app/models/journal.rb'
  644. - 'app/models/member.rb'
  645. - 'app/models/news.rb'
  646. - 'app/models/principal.rb'
  647. - 'app/models/project.rb'
  648. - 'app/models/repository.rb'
  649. - 'app/models/repository/mercurial.rb'
  650. - 'app/models/time_entry_activity.rb'
  651. - 'app/models/user.rb'
  652. - 'app/models/version.rb'
  653. - 'app/models/wiki.rb'
  654. - 'app/models/wiki_page.rb'
  655. # Configuration parameters: Include.
  656. # Include: app/controllers/**/*.rb
  657. Rails/LexicallyScopedActionFilter:
  658. Exclude:
  659. - 'app/controllers/projects_controller.rb'
  660. # Cop supports --auto-correct.
  661. Rails/LinkToBlank:
  662. Exclude:
  663. - 'app/helpers/avatars_helper.rb'
  664. # Configuration parameters: Include.
  665. # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
  666. Rails/Output:
  667. Exclude:
  668. - 'app/models/mail_handler.rb'
  669. - 'config/routes.rb'
  670. - 'lib/redmine/unified_diff.rb'
  671. Rails/OutputSafety:
  672. Enabled: false
  673. # Cop supports --auto-correct.
  674. Rails/PluralizationGrammar:
  675. Exclude:
  676. - 'lib/redmine/helpers/time_report.rb'
  677. - 'test/functional/gantts_controller_test.rb'
  678. - 'test/unit/mailer_test.rb'
  679. - 'test/unit/query_test.rb'
  680. # Cop supports --auto-correct.
  681. Rails/Presence:
  682. Exclude:
  683. - 'app/controllers/activities_controller.rb'
  684. - 'app/helpers/application_helper.rb'
  685. - 'app/models/repository.rb'
  686. - 'lib/redmine/codeset_util.rb'
  687. - 'lib/redmine/i18n.rb'
  688. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  689. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  690. - 'lib/redmine/scm/adapters/git_adapter.rb'
  691. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  692. - 'lib/redmine/sort_criteria.rb'
  693. # Cop supports --auto-correct.
  694. # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
  695. Rails/Present:
  696. Enabled: false
  697. # Cop supports --auto-correct.
  698. # Configuration parameters: Include.
  699. # Include: app/models/**/*.rb
  700. Rails/ReadWriteAttribute:
  701. Exclude:
  702. - 'app/models/attachment.rb'
  703. - 'app/models/auth_source_ldap.rb'
  704. - 'app/models/changeset.rb'
  705. - 'app/models/custom_field.rb'
  706. - 'app/models/email_address.rb'
  707. - 'app/models/issue.rb'
  708. - 'app/models/journal_detail.rb'
  709. - 'app/models/message.rb'
  710. - 'app/models/query.rb'
  711. - 'app/models/repository.rb'
  712. - 'app/models/repository/git.rb'
  713. - 'app/models/role.rb'
  714. - 'app/models/setting.rb'
  715. - 'app/models/time_entry.rb'
  716. - 'app/models/user.rb'
  717. - 'app/models/user_preference.rb'
  718. - 'app/models/wiki_page.rb'
  719. Rails/ReflectionClassName:
  720. Exclude:
  721. - 'lib/redmine/nested_set/issue_nested_set.rb'
  722. - 'lib/redmine/nested_set/project_nested_set.rb'
  723. # Cop supports --auto-correct.
  724. # Configuration parameters: EnforcedStyle, Include.
  725. # SupportedStyles: assert_not, refute
  726. # Include: **/test/**/*
  727. Rails/RefuteMethods:
  728. Exclude:
  729. - 'test/functional/projects_controller_test.rb'
  730. - 'test/functional/wiki_controller_test.rb'
  731. - 'test/integration/account_test.rb'
  732. - 'test/integration/api_test/my_test.rb'
  733. - 'test/unit/attachment_test.rb'
  734. - 'test/unit/custom_field_test.rb'
  735. - 'test/unit/lib/redmine/project_jump_box_test.rb'
  736. # Configuration parameters: Blacklist, Whitelist.
  737. # Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
  738. Rails/SkipsModelValidations:
  739. Enabled: false
  740. # Cop supports --auto-correct.
  741. # Configuration parameters: EnforcedStyle.
  742. # SupportedStyles: strict, flexible
  743. Rails/TimeZone:
  744. Enabled: false
  745. # Cop supports --auto-correct.
  746. # Configuration parameters: Include.
  747. # Include: app/models/**/*.rb
  748. Rails/Validation:
  749. Enabled: false
  750. Security/Eval:
  751. Exclude:
  752. - 'app/helpers/attachments_helper.rb'
  753. - 'app/models/user.rb'
  754. - 'config/initializers/00-core_plugins.rb'
  755. Security/Open:
  756. Exclude:
  757. - 'app/models/version.rb'
  758. # Cop supports --auto-correct.
  759. Security/YAMLLoad:
  760. Exclude:
  761. - 'Gemfile'
  762. - 'app/models/setting.rb'
  763. - 'lib/redmine/configuration.rb'
  764. # Cop supports --auto-correct.
  765. # Configuration parameters: EnforcedStyle.
  766. # SupportedStyles: prefer_alias, prefer_alias_method
  767. Style/Alias:
  768. Exclude:
  769. - 'app/controllers/repositories_controller.rb'
  770. - 'app/models/custom_field_enumeration.rb'
  771. - 'app/models/enumeration.rb'
  772. - 'app/models/issue.rb'
  773. - 'app/models/issue_category.rb'
  774. - 'app/models/issue_query.rb'
  775. - 'app/models/issue_status.rb'
  776. - 'app/models/member.rb'
  777. - 'app/models/project.rb'
  778. - 'app/models/user.rb'
  779. - 'app/models/version.rb'
  780. - 'config/initializers/10-patches.rb'
  781. - 'lib/redmine/export/pdf.rb'
  782. - 'lib/redmine/menu_manager.rb'
  783. - 'lib/redmine/plugin.rb'
  784. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  785. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  786. # Cop supports --auto-correct.
  787. # Configuration parameters: EnforcedStyle.
  788. # SupportedStyles: always, conditionals
  789. Style/AndOr:
  790. Exclude:
  791. - 'app/controllers/account_controller.rb'
  792. - 'app/controllers/application_controller.rb'
  793. - 'app/controllers/calendars_controller.rb'
  794. - 'app/helpers/repositories_helper.rb'
  795. - 'app/models/query.rb'
  796. - 'db/migrate/022_serialize_possibles_values.rb'
  797. - 'lib/redmine/export/pdf.rb'
  798. - 'lib/redmine/field_format.rb'
  799. - 'lib/redmine/helpers/gantt.rb'
  800. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  801. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  802. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  803. - 'lib/redmine/scm/adapters/git_adapter.rb'
  804. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  805. - 'lib/redmine/wiki_formatting.rb'
  806. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  807. # Cop supports --auto-correct.
  808. # Configuration parameters: EnforcedStyle.
  809. # SupportedStyles: percent_q, bare_percent
  810. Style/BarePercentLiterals:
  811. Exclude:
  812. - 'test/integration/api_test/api_test.rb'
  813. # Cop supports --auto-correct.
  814. Style/BlockComments:
  815. Exclude:
  816. - 'lib/diff.rb'
  817. # Cop supports --auto-correct.
  818. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
  819. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
  820. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  821. # FunctionalMethods: let, let!, subject, watch
  822. # IgnoredMethods: lambda, proc, it
  823. Style/BlockDelimiters:
  824. Enabled: false
  825. # Cop supports --auto-correct.
  826. # Configuration parameters: AutoCorrect, EnforcedStyle.
  827. # SupportedStyles: nested, compact
  828. Style/ClassAndModuleChildren:
  829. Enabled: false
  830. # Cop supports --auto-correct.
  831. Style/ClassMethods:
  832. Exclude:
  833. - 'lib/diff.rb'
  834. Style/ClassVars:
  835. Exclude:
  836. - 'app/models/attachment.rb'
  837. - 'config/initializers/10-patches.rb'
  838. - 'lib/redmine/activity.rb'
  839. - 'lib/redmine/hook.rb'
  840. - 'lib/redmine/i18n.rb'
  841. - 'lib/redmine/menu_manager.rb'
  842. - 'lib/redmine/my_page.rb'
  843. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  844. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  845. - 'lib/redmine/scm/adapters/git_adapter.rb'
  846. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  847. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  848. - 'lib/redmine/search.rb'
  849. - 'lib/redmine/themes.rb'
  850. - 'lib/redmine/twofa.rb'
  851. - 'lib/redmine/wiki_formatting.rb'
  852. - 'lib/redmine/wiki_formatting/macros.rb'
  853. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  854. - 'test/helpers/activities_helper_test.rb'
  855. # Cop supports --auto-correct.
  856. Style/ColonMethodCall:
  857. Exclude:
  858. - 'Gemfile'
  859. - 'app/controllers/admin_controller.rb'
  860. - 'app/models/setting.rb'
  861. - 'lib/redmine/configuration.rb'
  862. - 'lib/redmine/export/pdf.rb'
  863. - 'lib/redmine/wiki_formatting.rb'
  864. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  865. - 'test/unit/default_data_test.rb'
  866. - 'test/unit/lib/redmine/export/pdf_test.rb'
  867. # Cop supports --auto-correct.
  868. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  869. # SupportedStyles: assign_to_condition, assign_inside_condition
  870. Style/ConditionalAssignment:
  871. Enabled: false
  872. Style/Documentation:
  873. Enabled: false
  874. Style/DoubleNegation:
  875. Exclude:
  876. - 'app/controllers/application_controller.rb'
  877. - 'app/helpers/application_helper.rb'
  878. - 'app/models/attachment.rb'
  879. - 'app/models/issue_import.rb'
  880. - 'app/models/mailer.rb'
  881. - 'app/models/query.rb'
  882. - 'app/models/user.rb'
  883. - 'lib/redmine/sudo_mode.rb'
  884. # Cop supports --auto-correct.
  885. Style/EachWithObject:
  886. Exclude:
  887. - 'app/controllers/repositories_controller.rb'
  888. - 'app/helpers/queries_helper.rb'
  889. - 'app/models/issue.rb'
  890. - 'app/models/issue_import.rb'
  891. - 'app/models/journal.rb'
  892. - 'app/models/mail_handler.rb'
  893. - 'app/models/project.rb'
  894. - 'app/models/query.rb'
  895. - 'app/models/repository.rb'
  896. - 'app/models/setting.rb'
  897. - 'app/models/time_entry_import.rb'
  898. - 'app/models/workflow_permission.rb'
  899. - 'config/initializers/10-patches.rb'
  900. - 'lib/redmine/acts/positioned.rb'
  901. - 'lib/redmine/configuration.rb'
  902. - 'lib/redmine/i18n.rb'
  903. - 'lib/redmine/mime_type.rb'
  904. - 'lib/redmine/my_page.rb'
  905. - 'lib/redmine/sort_criteria.rb'
  906. - 'test/test_helper.rb'
  907. # Cop supports --auto-correct.
  908. Style/EmptyCaseCondition:
  909. Exclude:
  910. - 'app/models/auth_source_ldap.rb'
  911. - 'app/models/issue_priority.rb'
  912. # Cop supports --auto-correct.
  913. # Configuration parameters: EnforcedStyle.
  914. # SupportedStyles: empty, nil, both
  915. Style/EmptyElse:
  916. Exclude:
  917. - 'app/models/mail_handler.rb'
  918. # Cop supports --auto-correct.
  919. # Configuration parameters: EnforcedStyle.
  920. # SupportedStyles: compact, expanded
  921. Style/EmptyMethod:
  922. Enabled: false
  923. Style/EvalWithLocation:
  924. Exclude:
  925. - 'app/helpers/attachments_helper.rb'
  926. # Cop supports --auto-correct.
  927. Style/ExpandPathArguments:
  928. Enabled: false
  929. # Cop supports --auto-correct.
  930. # Configuration parameters: EnforcedStyle.
  931. # SupportedStyles: each, for
  932. Style/For:
  933. Exclude:
  934. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  935. - 'lib/redmine/export/pdf/wiki_pdf_helper.rb'
  936. # Cop supports --auto-correct.
  937. # Configuration parameters: EnforcedStyle.
  938. # SupportedStyles: format, sprintf, percent
  939. Style/FormatString:
  940. Exclude:
  941. - 'app/models/query.rb'
  942. - 'config/initializers/10-patches.rb'
  943. - 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
  944. - 'lib/redmine/export/csv.rb'
  945. - 'lib/redmine/helpers/gantt.rb'
  946. - 'lib/redmine/i18n.rb'
  947. - 'lib/redmine/info.rb'
  948. # Configuration parameters: AllowedVariables.
  949. Style/GlobalVars:
  950. Exclude:
  951. - 'test/test_helper.rb'
  952. # Configuration parameters: MinBodyLength.
  953. Style/GuardClause:
  954. Enabled: false
  955. # Cop supports --auto-correct.
  956. Style/HashEachMethods:
  957. Exclude:
  958. - 'app/controllers/application_controller.rb'
  959. - 'app/controllers/groups_controller.rb'
  960. - 'app/models/mailer.rb'
  961. - 'app/models/role.rb'
  962. - 'test/functional/issues_custom_fields_visibility_test.rb'
  963. - 'test/unit/auth_source_ldap_test.rb'
  964. # Configuration parameters: AllowIfModifier.
  965. Style/IfInsideElse:
  966. Exclude:
  967. - 'app/controllers/account_controller.rb'
  968. - 'app/controllers/activities_controller.rb'
  969. - 'app/controllers/application_controller.rb'
  970. - 'app/helpers/application_helper.rb'
  971. - 'app/helpers/issues_helper.rb'
  972. - 'app/models/custom_field.rb'
  973. - 'app/models/issue.rb'
  974. - 'app/models/project.rb'
  975. - 'app/models/query.rb'
  976. - 'app/models/version.rb'
  977. - 'config/initializers/10-patches.rb'
  978. - 'lib/redmine/field_format.rb'
  979. - 'lib/redmine/helpers/gantt.rb'
  980. - 'lib/redmine/menu_manager.rb'
  981. - 'lib/redmine/pop3.rb'
  982. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  983. - 'lib/redmine/views/builders/structure.rb'
  984. # Cop supports --auto-correct.
  985. Style/IfUnlessModifier:
  986. Enabled: false
  987. Style/IfUnlessModifierOfIfUnless:
  988. Exclude:
  989. - 'app/models/attachment.rb'
  990. # Cop supports --auto-correct.
  991. # Configuration parameters: InverseMethods, InverseBlocks.
  992. Style/InverseMethods:
  993. Exclude:
  994. - 'app/controllers/roles_controller.rb'
  995. - 'app/helpers/application_helper.rb'
  996. - 'app/helpers/issues_helper.rb'
  997. - 'app/helpers/repositories_helper.rb'
  998. - 'app/models/document.rb'
  999. - 'app/models/issue.rb'
  1000. - 'app/models/member.rb'
  1001. - 'app/models/message.rb'
  1002. - 'app/models/project.rb'
  1003. - 'app/models/tracker.rb'
  1004. - 'app/models/version.rb'
  1005. - 'app/models/wiki_content.rb'
  1006. - 'db/migrate/096_add_commit_access_permission.rb'
  1007. - 'lib/redmine/default_data/loader.rb'
  1008. - 'lib/redmine/helpers/diff.rb'
  1009. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1010. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1011. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1012. - 'test/unit/issue_test.rb'
  1013. - 'test/unit/query_test.rb'
  1014. # Cop supports --auto-correct.
  1015. # Configuration parameters: EnforcedStyle.
  1016. # SupportedStyles: line_count_dependent, lambda, literal
  1017. Style/Lambda:
  1018. Enabled: false
  1019. # Cop supports --auto-correct.
  1020. Style/LineEndConcatenation:
  1021. Enabled: false
  1022. # Cop supports --auto-correct.
  1023. # Configuration parameters: IgnoredMethods.
  1024. Style/MethodCallWithoutArgsParentheses:
  1025. Exclude:
  1026. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1027. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1028. # Cop supports --auto-correct.
  1029. # Configuration parameters: EnforcedStyle.
  1030. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
  1031. Style/MethodDefParentheses:
  1032. Exclude:
  1033. - 'lib/redmine/menu_manager.rb'
  1034. Style/MethodMissingSuper:
  1035. Exclude:
  1036. - 'lib/redmine/views/builders/structure.rb'
  1037. Style/MissingRespondToMissing:
  1038. Exclude:
  1039. - 'lib/redmine/views/builders/structure.rb'
  1040. Style/MixinUsage:
  1041. Exclude:
  1042. - 'test/test_helper.rb'
  1043. # Cop supports --auto-correct.
  1044. Style/MultilineIfModifier:
  1045. Exclude:
  1046. - 'app/helpers/application_helper.rb'
  1047. - 'app/helpers/attachments_helper.rb'
  1048. - 'app/helpers/custom_fields_helper.rb'
  1049. - 'app/helpers/projects_helper.rb'
  1050. - 'app/helpers/reports_helper.rb'
  1051. - 'app/helpers/repositories_helper.rb'
  1052. - 'app/helpers/search_helper.rb'
  1053. - 'app/models/issue_query.rb'
  1054. - 'app/models/query.rb'
  1055. - 'app/models/time_entry_query.rb'
  1056. - 'app/views/common/feed.atom.builder'
  1057. - 'lib/redmine/access_keys.rb'
  1058. - 'lib/redmine/helpers/gantt.rb'
  1059. - 'lib/redmine/wiki_formatting.rb'
  1060. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1061. Style/MultilineTernaryOperator:
  1062. Exclude:
  1063. - 'lib/redmine/ciphering.rb'
  1064. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1065. Style/MultipleComparison:
  1066. Exclude:
  1067. - 'app/helpers/application_helper.rb'
  1068. - 'app/helpers/workflows_helper.rb'
  1069. - 'app/models/import.rb'
  1070. - 'app/models/version.rb'
  1071. - 'app/models/wiki_page.rb'
  1072. # Cop supports --auto-correct.
  1073. # Configuration parameters: EnforcedStyle.
  1074. # SupportedStyles: literals, strict
  1075. Style/MutableConstant:
  1076. Enabled: false
  1077. # Cop supports --auto-correct.
  1078. # Configuration parameters: EnforcedStyle.
  1079. # SupportedStyles: both, prefix, postfix
  1080. Style/NegatedIf:
  1081. Exclude:
  1082. - 'app/controllers/application_controller.rb'
  1083. - 'app/controllers/messages_controller.rb'
  1084. - 'app/helpers/repositories_helper.rb'
  1085. - 'app/models/attachment.rb'
  1086. - 'app/models/auth_source_ldap.rb'
  1087. - 'app/models/custom_field.rb'
  1088. - 'app/models/project.rb'
  1089. - 'app/models/repository/cvs.rb'
  1090. - 'lib/diff.rb'
  1091. - 'lib/redmine/codeset_util.rb'
  1092. - 'lib/redmine/thumbnail.rb'
  1093. # Cop supports --auto-correct.
  1094. Style/NegatedWhile:
  1095. Exclude:
  1096. - 'app/helpers/application_helper.rb'
  1097. # Cop supports --auto-correct.
  1098. # Configuration parameters: AllowedMethods.
  1099. # 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
  1100. Style/NestedParenthesizedCalls:
  1101. Exclude:
  1102. - 'lib/redmine/views/labelled_form_builder.rb'
  1103. Style/NestedTernaryOperator:
  1104. Exclude:
  1105. - 'app/helpers/queries_helper.rb'
  1106. - 'app/models/journal.rb'
  1107. # Cop supports --auto-correct.
  1108. # Configuration parameters: EnforcedStyle, MinBodyLength.
  1109. # SupportedStyles: skip_modifier_ifs, always
  1110. Style/Next:
  1111. Enabled: false
  1112. # Cop supports --auto-correct.
  1113. Style/Not:
  1114. Exclude:
  1115. - 'db/migrate/096_add_commit_access_permission.rb'
  1116. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1117. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1118. # Cop supports --auto-correct.
  1119. # Configuration parameters: EnforcedOctalStyle.
  1120. # SupportedOctalStyles: zero_with_o, zero_only
  1121. Style/NumericLiteralPrefix:
  1122. Exclude:
  1123. - 'test/unit/user_test.rb'
  1124. # Cop supports --auto-correct.
  1125. # Configuration parameters: Strict.
  1126. Style/NumericLiterals:
  1127. MinDigits: 9
  1128. # Cop supports --auto-correct.
  1129. # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
  1130. # SupportedStyles: predicate, comparison
  1131. Style/NumericPredicate:
  1132. Enabled: false
  1133. # Cop supports --auto-correct.
  1134. Style/OrAssignment:
  1135. Exclude:
  1136. - 'app/helpers/sort_helper.rb'
  1137. - 'app/models/repository/cvs.rb'
  1138. - 'app/models/user.rb'
  1139. - 'lib/redmine/helpers/diff.rb'
  1140. # Cop supports --auto-correct.
  1141. Style/ParallelAssignment:
  1142. Enabled: false
  1143. # Cop supports --auto-correct.
  1144. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
  1145. Style/ParenthesesAroundCondition:
  1146. Exclude:
  1147. - 'app/models/repository/subversion.rb'
  1148. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1149. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1150. # Cop supports --auto-correct.
  1151. # Configuration parameters: PreferredDelimiters.
  1152. Style/PercentLiteralDelimiters:
  1153. Enabled: false
  1154. # Cop supports --auto-correct.
  1155. Style/PerlBackrefs:
  1156. Enabled: false
  1157. # Cop supports --auto-correct.
  1158. # Configuration parameters: EnforcedStyle.
  1159. # SupportedStyles: short, verbose
  1160. Style/PreferredHashMethods:
  1161. Enabled: false
  1162. # Cop supports --auto-correct.
  1163. Style/Proc:
  1164. Enabled: false
  1165. # Cop supports --auto-correct.
  1166. # Configuration parameters: EnforcedStyle.
  1167. # SupportedStyles: compact, exploded
  1168. Style/RaiseArgs:
  1169. Exclude:
  1170. - 'app/models/auth_source_ldap.rb'
  1171. - 'app/models/issue_query.rb'
  1172. - 'app/models/mailer.rb'
  1173. - 'app/models/query.rb'
  1174. - 'app/models/tracker.rb'
  1175. - 'app/models/user.rb'
  1176. - 'app/models/workflow_rule.rb'
  1177. - 'lib/redmine/access_control.rb'
  1178. - 'lib/redmine/default_data/loader.rb'
  1179. - 'lib/redmine/plugin.rb'
  1180. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1181. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1182. - 'lib/redmine/sort_criteria.rb'
  1183. # Cop supports --auto-correct.
  1184. Style/RedundantCondition:
  1185. Exclude:
  1186. - 'app/controllers/messages_controller.rb'
  1187. - 'app/controllers/previews_controller.rb'
  1188. - 'app/models/issue.rb'
  1189. # Cop supports --auto-correct.
  1190. Style/RedundantConditional:
  1191. Exclude:
  1192. - 'app/controllers/workflows_controller.rb'
  1193. - 'app/helpers/application_helper.rb'
  1194. - 'app/models/enumeration.rb'
  1195. - 'lib/redmine/field_format.rb'
  1196. # Cop supports --auto-correct.
  1197. Style/RedundantInterpolation:
  1198. Exclude:
  1199. - 'app/helpers/my_helper.rb'
  1200. - 'app/helpers/queries_helper.rb'
  1201. - 'app/models/query.rb'
  1202. - 'app/views/common/feed.atom.builder'
  1203. - 'app/views/journals/index.builder'
  1204. - 'lib/redmine/helpers/time_report.rb'
  1205. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1206. - 'lib/redmine/wiki_formatting.rb'
  1207. - 'test/functional/versions_controller_test.rb'
  1208. - 'test/functional/watchers_controller_test.rb'
  1209. # Cop supports --auto-correct.
  1210. Style/RedundantParentheses:
  1211. Exclude:
  1212. - 'app/controllers/search_controller.rb'
  1213. - 'app/models/enumeration.rb'
  1214. - 'app/models/principal.rb'
  1215. - 'app/models/query.rb'
  1216. - 'app/models/repository/cvs.rb'
  1217. - 'app/models/version.rb'
  1218. - 'lib/redmine/field_format.rb'
  1219. - 'lib/redmine/platform.rb'
  1220. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1221. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1222. - 'test/unit/attachment_test.rb'
  1223. - 'test/unit/lib/redmine/export/pdf_test.rb'
  1224. - 'test/unit/project_test.rb'
  1225. - 'test/unit/user_test.rb'
  1226. - 'test/unit/version_test.rb'
  1227. # Cop supports --auto-correct.
  1228. # Configuration parameters: AllowMultipleReturnValues.
  1229. Style/RedundantReturn:
  1230. Enabled: false
  1231. # Cop supports --auto-correct.
  1232. Style/RedundantSelf:
  1233. Enabled: false
  1234. # Cop supports --auto-correct.
  1235. Style/RedundantSort:
  1236. Exclude:
  1237. - 'app/models/import.rb'
  1238. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1239. - 'test/functional/issues_controller_test.rb'
  1240. - 'test/unit/member_test.rb'
  1241. # Cop supports --auto-correct.
  1242. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  1243. # SupportedStyles: slashes, percent_r, mixed
  1244. Style/RegexpLiteral:
  1245. Enabled: false
  1246. # Cop supports --auto-correct.
  1247. Style/RescueModifier:
  1248. Exclude:
  1249. - 'app/helpers/avatars_helper.rb'
  1250. - 'app/models/custom_field.rb'
  1251. - 'app/models/import.rb'
  1252. - 'app/models/query.rb'
  1253. - 'app/models/repository.rb'
  1254. - 'lib/redmine/export/csv.rb'
  1255. - 'lib/redmine/field_format.rb'
  1256. - 'lib/redmine/search.rb'
  1257. - 'lib/redmine/wiki_formatting.rb'
  1258. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  1259. # Cop supports --auto-correct.
  1260. # Configuration parameters: EnforcedStyle.
  1261. # SupportedStyles: implicit, explicit
  1262. Style/RescueStandardError:
  1263. Enabled: false
  1264. # Cop supports --auto-correct.
  1265. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
  1266. # AllowedMethods: present?, blank?, presence, try, try!
  1267. Style/SafeNavigation:
  1268. Enabled: false
  1269. # Cop supports --auto-correct.
  1270. Style/SelfAssignment:
  1271. Exclude:
  1272. - 'app/controllers/repositories_controller.rb'
  1273. - 'app/helpers/reports_helper.rb'
  1274. - 'app/models/auth_source_ldap.rb'
  1275. - 'app/models/project.rb'
  1276. - 'app/models/query.rb'
  1277. - 'app/models/repository/cvs.rb'
  1278. - 'lib/redmine/helpers/calendar.rb'
  1279. - 'lib/redmine/helpers/gantt.rb'
  1280. - 'lib/redmine/helpers/time_report.rb'
  1281. # Cop supports --auto-correct.
  1282. # Configuration parameters: AllowAsExpressionSeparator.
  1283. Style/Semicolon:
  1284. Exclude:
  1285. - 'app/controllers/account_controller.rb'
  1286. - 'app/controllers/context_menus_controller.rb'
  1287. - 'app/controllers/journals_controller.rb'
  1288. - 'app/controllers/messages_controller.rb'
  1289. - 'app/controllers/repositories_controller.rb'
  1290. - 'app/controllers/search_controller.rb'
  1291. - 'app/models/issue.rb'
  1292. - 'app/models/issue_query.rb'
  1293. - 'app/models/journal.rb'
  1294. - 'app/models/mail_handler.rb'
  1295. - 'app/models/project.rb'
  1296. - 'app/models/query.rb'
  1297. - 'app/models/tracker.rb'
  1298. - 'lib/redmine/configuration.rb'
  1299. - 'lib/redmine/i18n.rb'
  1300. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1301. - 'lib/redmine/sort_criteria.rb'
  1302. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1303. # Cop supports --auto-correct.
  1304. # Configuration parameters: AllowIfMethodIsEmpty.
  1305. Style/SingleLineMethods:
  1306. Enabled: false
  1307. # Cop supports --auto-correct.
  1308. # Configuration parameters: .
  1309. # SupportedStyles: use_perl_names, use_english_names
  1310. Style/SpecialGlobalVars:
  1311. EnforcedStyle: use_perl_names
  1312. # Cop supports --auto-correct.
  1313. Style/StderrPuts:
  1314. Exclude:
  1315. - 'config/environment.rb'
  1316. - 'config/initializers/10-patches.rb'
  1317. # Cop supports --auto-correct.
  1318. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  1319. # SupportedStyles: single_quotes, double_quotes
  1320. Style/StringLiterals:
  1321. Enabled: false
  1322. # Cop supports --auto-correct.
  1323. # Configuration parameters: EnforcedStyle.
  1324. # SupportedStyles: single_quotes, double_quotes
  1325. Style/StringLiteralsInInterpolation:
  1326. Exclude:
  1327. - 'app/models/issue_query.rb'
  1328. - 'config/environment.rb'
  1329. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1330. - 'lib/redmine/wiki_formatting.rb'
  1331. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1332. - 'test/unit/member_test.rb'
  1333. Style/StructInheritance:
  1334. Exclude:
  1335. - 'lib/redmine/notifiable.rb'
  1336. - 'lib/redmine/sudo_mode.rb'
  1337. # Cop supports --auto-correct.
  1338. # Configuration parameters: MinSize.
  1339. # SupportedStyles: percent, brackets
  1340. Style/SymbolArray:
  1341. EnforcedStyle: brackets
  1342. # Cop supports --auto-correct.
  1343. # Configuration parameters: IgnoredMethods.
  1344. # IgnoredMethods: respond_to, define_method
  1345. Style/SymbolProc:
  1346. Enabled: false
  1347. # Cop supports --auto-correct.
  1348. # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
  1349. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
  1350. Style/TernaryParentheses:
  1351. Enabled: false
  1352. # Cop supports --auto-correct.
  1353. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
  1354. # 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
  1355. Style/TrivialAccessors:
  1356. Exclude:
  1357. - 'app/models/issue.rb'
  1358. - 'app/models/journal.rb'
  1359. - 'app/models/query.rb'
  1360. - 'lib/redmine/access_control.rb'
  1361. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1362. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1363. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1364. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1365. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1366. # Cop supports --auto-correct.
  1367. Style/UnlessElse:
  1368. Exclude:
  1369. - 'app/controllers/auth_sources_controller.rb'
  1370. - 'app/controllers/trackers_controller.rb'
  1371. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1372. - 'lib/redmine/unified_diff.rb'
  1373. # Cop supports --auto-correct.
  1374. Style/VariableInterpolation:
  1375. Exclude:
  1376. - 'lib/redmine/configuration.rb'
  1377. # Cop supports --auto-correct.
  1378. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
  1379. # SupportedStyles: percent, brackets
  1380. Style/WordArray:
  1381. Enabled: false
  1382. # Cop supports --auto-correct.
  1383. Style/ZeroLengthPredicate:
  1384. Exclude:
  1385. - 'app/models/import.rb'
  1386. - 'app/models/mail_handler.rb'
  1387. - 'app/models/user.rb'
  1388. - 'lib/redmine/field_format.rb'
  1389. - 'lib/redmine/unified_diff.rb'
  1390. - 'lib/redmine/wiki_formatting/macros.rb'
  1391. - 'test/functional/custom_fields_controller_test.rb'
  1392. - 'test/object_helpers.rb'
  1393. - 'test/unit/activity_test.rb'
  1394. - 'test/unit/custom_field_test.rb'
  1395. # Cop supports --auto-correct.
  1396. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  1397. # URISchemes: http, https
  1398. Layout/LineLength:
  1399. Max: 461