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 44KB

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