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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
  3. # using RuboCop version 0.72.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. - 'app/models/tracker.rb'
  26. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  27. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  28. # Cop supports --auto-correct.
  29. # Configuration parameters: EnforcedStyle, IndentationWidth.
  30. # SupportedStyles: with_first_argument, with_fixed_indentation
  31. Layout/AlignArguments:
  32. Enabled: false
  33. # Cop supports --auto-correct.
  34. Layout/AlignArray:
  35. Exclude:
  36. - 'app/models/setting.rb'
  37. - 'lib/redmine/default_data/loader.rb'
  38. - 'test/functional/issues_controller_test.rb'
  39. # Cop supports --auto-correct.
  40. # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
  41. # SupportedHashRocketStyles: key, separator, table
  42. # SupportedColonStyles: key, separator, table
  43. # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
  44. Layout/AlignHash:
  45. Enabled: false
  46. # Cop supports --auto-correct.
  47. # Configuration parameters: EnforcedStyleAlignWith.
  48. # SupportedStylesAlignWith: either, start_of_block, start_of_line
  49. Layout/BlockAlignment:
  50. Exclude:
  51. - 'app/helpers/queries_helper.rb'
  52. - 'app/models/principal.rb'
  53. - 'app/models/project.rb'
  54. - 'app/models/time_entry.rb'
  55. - 'test/functional/issues_controller_test.rb'
  56. - 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
  57. - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
  58. # Cop supports --auto-correct.
  59. Layout/BlockEndNewline:
  60. Exclude:
  61. - 'app/controllers/auth_sources_controller.rb'
  62. - 'app/controllers/files_controller.rb'
  63. - 'app/models/issue.rb'
  64. - 'app/models/message.rb'
  65. # Cop supports --auto-correct.
  66. # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
  67. # SupportedStyles: case, end
  68. Layout/CaseIndentation:
  69. Exclude:
  70. - 'app/helpers/versions_helper.rb'
  71. - 'app/models/issue_import.rb'
  72. - 'app/models/issue_priority.rb'
  73. - 'app/models/issue_query.rb'
  74. - 'config/initializers/10-patches.rb'
  75. - 'lib/redmine/helpers/gantt.rb'
  76. - 'lib/redmine/menu_manager.rb'
  77. - 'lib/redmine/views/builders.rb'
  78. - 'test/test_helper.rb'
  79. # Cop supports --auto-correct.
  80. Layout/ClosingHeredocIndentation:
  81. Exclude:
  82. - 'app/models/setting.rb'
  83. - 'test/helpers/application_helper_test.rb'
  84. - 'test/integration/api_test/issues_test.rb'
  85. - 'test/integration/lib/redmine/hook_test.rb'
  86. - 'test/unit/lib/redmine/unified_diff_test.rb'
  87. - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
  88. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  89. - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
  90. - 'test/unit/lib/redmine/wiki_formatting_test.rb'
  91. - 'test/unit/setting_test.rb'
  92. # Cop supports --auto-correct.
  93. Layout/ClosingParenthesisIndentation:
  94. Enabled: false
  95. # Cop supports --auto-correct.
  96. Layout/CommentIndentation:
  97. Exclude:
  98. - 'app/helpers/versions_helper.rb'
  99. - 'app/models/mailer.rb'
  100. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  101. - 'test/unit/issue_test.rb'
  102. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  103. - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
  104. # Cop supports --auto-correct.
  105. # Configuration parameters: EnforcedStyle.
  106. # SupportedStyles: leading, trailing
  107. Layout/DotPosition:
  108. Enabled: false
  109. # Cop supports --auto-correct.
  110. Layout/ElseAlignment:
  111. Exclude:
  112. - 'app/helpers/application_helper.rb'
  113. - 'app/helpers/attachments_helper.rb'
  114. - 'app/helpers/queries_helper.rb'
  115. - 'app/models/changeset.rb'
  116. - 'app/models/issue.rb'
  117. - 'app/models/issue_query.rb'
  118. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  119. - 'lib/redmine/i18n.rb'
  120. - 'lib/redmine/plugin.rb'
  121. - 'lib/redmine/wiki_formatting.rb'
  122. # Cop supports --auto-correct.
  123. Layout/EmptyLineAfterGuardClause:
  124. Enabled: false
  125. # Cop supports --auto-correct.
  126. # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
  127. Layout/EmptyLineBetweenDefs:
  128. Exclude:
  129. - 'app/helpers/application_helper.rb'
  130. - 'app/models/attachment.rb'
  131. - 'app/models/user.rb'
  132. - 'app/models/user_preference.rb'
  133. - 'app/models/version.rb'
  134. - 'db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb'
  135. - 'lib/redmine/info.rb'
  136. - 'lib/redmine/version.rb'
  137. - 'test/functional/email_addresses_controller_test.rb'
  138. - 'test/functional/settings_controller_test.rb'
  139. - 'test/functional/users_controller_test.rb'
  140. - 'test/helpers/sort_helper_test.rb'
  141. - 'test/unit/issue_test.rb'
  142. - 'test/unit/mailer_test.rb'
  143. - 'test/unit/project_test.rb'
  144. # Cop supports --auto-correct.
  145. Layout/EmptyLines:
  146. Enabled: false
  147. # Cop supports --auto-correct.
  148. # Configuration parameters: EnforcedStyle.
  149. # SupportedStyles: around, only_before
  150. Layout/EmptyLinesAroundAccessModifier:
  151. Exclude:
  152. - 'app/controllers/boards_controller.rb'
  153. - 'app/controllers/messages_controller.rb'
  154. - 'app/controllers/previews_controller.rb'
  155. - 'app/controllers/timelog_controller.rb'
  156. - 'app/models/tracker.rb'
  157. - 'config/initializers/10-patches.rb'
  158. - 'lib/redmine/syntax_highlighting.rb'
  159. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  160. # Cop supports --auto-correct.
  161. Layout/EmptyLinesAroundArguments:
  162. Exclude:
  163. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  164. # Cop supports --auto-correct.
  165. # Configuration parameters: EnforcedStyle.
  166. # SupportedStyles: empty_lines, no_empty_lines
  167. Layout/EmptyLinesAroundBlockBody:
  168. Exclude:
  169. - 'app/helpers/application_helper.rb'
  170. - 'app/models/attachment.rb'
  171. - 'app/models/setting.rb'
  172. - 'db/schema.rb'
  173. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  174. - 'test/functional/issues_controller_test.rb'
  175. - 'test/integration/api_test/attachments_test.rb'
  176. - 'test/integration/api_test/issues_test.rb'
  177. - 'test/integration/api_test/my_test.rb'
  178. - 'test/unit/changeset_test.rb'
  179. # Cop supports --auto-correct.
  180. # Configuration parameters: EnforcedStyle.
  181. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
  182. Layout/EmptyLinesAroundClassBody:
  183. Enabled: false
  184. # Cop supports --auto-correct.
  185. Layout/EmptyLinesAroundExceptionHandlingKeywords:
  186. Exclude:
  187. - 'app/controllers/activities_controller.rb'
  188. - 'app/controllers/imports_controller.rb'
  189. - 'app/controllers/wiki_controller.rb'
  190. - 'test/functional/settings_controller_test.rb'
  191. - 'test/integration/attachments_test.rb'
  192. # Cop supports --auto-correct.
  193. Layout/EmptyLinesAroundMethodBody:
  194. Exclude:
  195. - 'app/models/query.rb'
  196. - 'db/migrate/001_setup.rb'
  197. - 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
  198. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  199. - 'test/functional/journals_controller_test.rb'
  200. - 'test/functional/repositories_git_controller_test.rb'
  201. - 'test/functional/users_controller_test.rb'
  202. - 'test/integration/account_test.rb'
  203. - 'test/unit/attachment_test.rb'
  204. - 'test/unit/issue_test.rb'
  205. - 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
  206. - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
  207. - 'test/unit/lib/redmine/unified_diff_test.rb'
  208. # Cop supports --auto-correct.
  209. # Configuration parameters: EnforcedStyle.
  210. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
  211. Layout/EmptyLinesAroundModuleBody:
  212. Enabled: false
  213. # Cop supports --auto-correct.
  214. # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
  215. # SupportedStylesAlignWith: keyword, variable, start_of_line
  216. Layout/EndAlignment:
  217. Enabled: false
  218. # Cop supports --auto-correct.
  219. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
  220. Layout/ExtraSpacing:
  221. Enabled: false
  222. # Cop supports --auto-correct.
  223. # Configuration parameters: IndentationWidth.
  224. Layout/IndentAssignment:
  225. Exclude:
  226. - 'app/helpers/application_helper.rb'
  227. - 'app/helpers/issues_helper.rb'
  228. - 'app/helpers/repositories_helper.rb'
  229. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  230. - 'test/unit/lib/redmine/helpers/gantt_test.rb'
  231. # Cop supports --auto-correct.
  232. # Configuration parameters: EnforcedStyle, IndentationWidth.
  233. # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
  234. Layout/IndentFirstArgument:
  235. Enabled: false
  236. # Cop supports --auto-correct.
  237. # Configuration parameters: EnforcedStyle, IndentationWidth.
  238. # SupportedStyles: special_inside_parentheses, consistent, align_brackets
  239. Layout/IndentFirstArrayElement:
  240. Enabled: false
  241. # Cop supports --auto-correct.
  242. # Configuration parameters: EnforcedStyle, IndentationWidth.
  243. # SupportedStyles: special_inside_parentheses, consistent, align_braces
  244. Layout/IndentFirstHashElement:
  245. Enabled: false
  246. # Cop supports --auto-correct.
  247. # Configuration parameters: EnforcedStyle.
  248. # SupportedStyles: squiggly, active_support, powerpack, unindent
  249. Layout/IndentHeredoc:
  250. Exclude:
  251. - 'test/functional/documents_controller_test.rb'
  252. - 'test/helpers/application_helper_test.rb'
  253. - 'test/integration/api_test/custom_fields_attribute_test.rb'
  254. - 'test/integration/api_test/files_test.rb'
  255. - 'test/integration/api_test/issues_test.rb'
  256. - 'test/integration/lib/redmine/hook_test.rb'
  257. - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
  258. - 'test/unit/lib/redmine/unified_diff_test.rb'
  259. - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
  260. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  261. - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
  262. - 'test/unit/lib/redmine/wiki_formatting_test.rb'
  263. - 'test/unit/setting_test.rb'
  264. # Cop supports --auto-correct.
  265. # Configuration parameters: EnforcedStyle.
  266. # SupportedStyles: normal, indented_internal_methods
  267. Layout/IndentationConsistency:
  268. Exclude:
  269. - 'app/models/attachment.rb'
  270. - 'test/functional/issues_controller_test.rb'
  271. - 'test/functional/project_enumerations_controller_test.rb'
  272. - 'test/functional/repositories_git_controller_test.rb'
  273. - 'test/functional/repositories_mercurial_controller_test.rb'
  274. - 'test/helpers/application_helper_test.rb'
  275. - 'test/integration/api_test/custom_fields_attribute_test.rb'
  276. - 'test/integration/api_test/issues_test.rb'
  277. - 'test/mocks/open_id_authentication_mock.rb'
  278. # Cop supports --auto-correct.
  279. # Configuration parameters: Width, IgnoredPatterns.
  280. Layout/IndentationWidth:
  281. Enabled: false
  282. # Cop supports --auto-correct.
  283. Layout/LeadingCommentSpace:
  284. Exclude:
  285. - 'app/controllers/repositories_controller.rb'
  286. - 'app/models/repository.rb'
  287. - 'lib/diff.rb'
  288. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  289. - 'lib/redmine/scm/adapters/git_adapter.rb'
  290. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  291. - 'test/integration/api_test/issues_test.rb'
  292. - 'test/integration/issues_test.rb'
  293. - 'test/unit/issue_test.rb'
  294. - 'test/unit/project_test.rb'
  295. - 'test/unit/query_test.rb'
  296. - 'test/unit/user_test.rb'
  297. # Cop supports --auto-correct.
  298. # Configuration parameters: EnforcedStyle.
  299. # SupportedStyles: symmetrical, new_line, same_line
  300. Layout/MultilineArrayBraceLayout:
  301. Exclude:
  302. - 'app/helpers/projects_helper.rb'
  303. - 'app/helpers/settings_helper.rb'
  304. - 'app/helpers/users_helper.rb'
  305. - 'app/models/setting.rb'
  306. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  307. - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
  308. - 'test/unit/repository_bazaar_test.rb'
  309. # Cop supports --auto-correct.
  310. Layout/MultilineBlockLayout:
  311. Exclude:
  312. - 'app/controllers/auth_sources_controller.rb'
  313. - 'app/controllers/auto_completes_controller.rb'
  314. - 'app/models/issue.rb'
  315. - 'app/models/message.rb'
  316. # Cop supports --auto-correct.
  317. # Configuration parameters: EnforcedStyle.
  318. # SupportedStyles: symmetrical, new_line, same_line
  319. Layout/MultilineHashBraceLayout:
  320. Enabled: false
  321. # Cop supports --auto-correct.
  322. # Configuration parameters: EnforcedStyle.
  323. # SupportedStyles: symmetrical, new_line, same_line
  324. Layout/MultilineMethodCallBraceLayout:
  325. Enabled: false
  326. # Cop supports --auto-correct.
  327. # Configuration parameters: EnforcedStyle, IndentationWidth.
  328. # SupportedStyles: aligned, indented, indented_relative_to_receiver
  329. Layout/MultilineMethodCallIndentation:
  330. Enabled: false
  331. # Cop supports --auto-correct.
  332. # Configuration parameters: EnforcedStyle, IndentationWidth.
  333. # SupportedStyles: aligned, indented
  334. Layout/MultilineOperationIndentation:
  335. Enabled: false
  336. # Cop supports --auto-correct.
  337. Layout/RescueEnsureAlignment:
  338. Exclude:
  339. - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
  340. # Cop supports --auto-correct.
  341. Layout/SpaceAfterColon:
  342. Exclude:
  343. - 'test/functional/issues_controller_test.rb'
  344. - 'test/integration/wiki_test.rb'
  345. # Cop supports --auto-correct.
  346. Layout/SpaceAfterComma:
  347. Enabled: false
  348. # Cop supports --auto-correct.
  349. Layout/SpaceAfterNot:
  350. Enabled: false
  351. # Cop supports --auto-correct.
  352. Layout/SpaceAfterSemicolon:
  353. Exclude:
  354. - 'app/models/mail_handler.rb'
  355. # Cop supports --auto-correct.
  356. # Configuration parameters: EnforcedStyleInsidePipes.
  357. # SupportedStylesInsidePipes: space, no_space
  358. Layout/SpaceAroundBlockParameters:
  359. Exclude:
  360. - 'app/controllers/issues_controller.rb'
  361. - 'lib/redmine/plugin.rb'
  362. - 'test/unit/query_test.rb'
  363. # Cop supports --auto-correct.
  364. # Configuration parameters: EnforcedStyle.
  365. # SupportedStyles: space, no_space
  366. Layout/SpaceAroundEqualsInParameterDefault:
  367. Enabled: false
  368. # Cop supports --auto-correct.
  369. # Configuration parameters: AllowForAlignment.
  370. Layout/SpaceAroundOperators:
  371. Enabled: false
  372. # Cop supports --auto-correct.
  373. Layout/SpaceBeforeComma:
  374. Exclude:
  375. - 'lib/redmine/export/pdf.rb'
  376. - 'test/helpers/application_helper_test.rb'
  377. - 'test/mocks/open_id_authentication_mock.rb'
  378. - 'test/unit/lib/redmine/helpers/calendar_test.rb'
  379. - 'test/unit/time_entry_test.rb'
  380. # Cop supports --auto-correct.
  381. # Configuration parameters: AllowForAlignment.
  382. Layout/SpaceBeforeFirstArg:
  383. Exclude:
  384. - 'test/helpers/issues_helper_test.rb'
  385. - 'test/helpers/search_helper_test.rb'
  386. - 'test/unit/lib/redmine/menu_manager_test.rb'
  387. - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
  388. # Cop supports --auto-correct.
  389. Layout/SpaceBeforeSemicolon:
  390. Exclude:
  391. - 'app/models/issue_query.rb'
  392. - 'app/models/user_preference.rb'
  393. - 'config/initializers/10-patches.rb'
  394. # Cop supports --auto-correct.
  395. # Configuration parameters: EnforcedStyle.
  396. # SupportedStyles: require_no_space, require_space
  397. Layout/SpaceInLambdaLiteral:
  398. Exclude:
  399. - 'app/helpers/application_helper.rb'
  400. # Cop supports --auto-correct.
  401. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  402. # SupportedStyles: space, no_space, compact
  403. # SupportedStylesForEmptyBrackets: space, no_space
  404. Layout/SpaceInsideArrayLiteralBrackets:
  405. Exclude:
  406. - 'app/controllers/projects_controller.rb'
  407. - 'app/helpers/timelog_helper.rb'
  408. - 'app/models/query.rb'
  409. - 'lib/diff.rb'
  410. - 'lib/redmine/i18n.rb'
  411. - 'test/mocks/open_id_authentication_mock.rb'
  412. - 'test/unit/mailer_localisation_test.rb'
  413. - 'test/unit/mailer_test.rb'
  414. - 'test/unit/search_test.rb'
  415. # Cop supports --auto-correct.
  416. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
  417. # SupportedStyles: space, no_space
  418. # SupportedStylesForEmptyBraces: space, no_space
  419. Layout/SpaceInsideBlockBraces:
  420. Enabled: false
  421. # Cop supports --auto-correct.
  422. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
  423. # SupportedStyles: space, no_space, compact
  424. # SupportedStylesForEmptyBraces: space, no_space
  425. Layout/SpaceInsideHashLiteralBraces:
  426. Enabled: false
  427. # Cop supports --auto-correct.
  428. # Configuration parameters: EnforcedStyle.
  429. # SupportedStyles: space, no_space
  430. Layout/SpaceInsideParens:
  431. Enabled: false
  432. # Cop supports --auto-correct.
  433. Layout/SpaceInsidePercentLiteralDelimiters:
  434. Exclude:
  435. - 'app/models/project.rb'
  436. # Cop supports --auto-correct.
  437. Layout/SpaceInsideRangeLiteral:
  438. Exclude:
  439. - 'app/models/repository/cvs.rb'
  440. # Cop supports --auto-correct.
  441. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  442. # SupportedStyles: space, no_space
  443. # SupportedStylesForEmptyBrackets: space, no_space
  444. Layout/SpaceInsideReferenceBrackets:
  445. Exclude:
  446. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  447. - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
  448. # Cop supports --auto-correct.
  449. # Configuration parameters: EnforcedStyle.
  450. # SupportedStyles: space, no_space
  451. Layout/SpaceInsideStringInterpolation:
  452. Exclude:
  453. - 'app/helpers/application_helper.rb'
  454. - 'app/helpers/issues_helper.rb'
  455. - 'app/helpers/workflows_helper.rb'
  456. - 'app/models/issue_query.rb'
  457. - 'app/models/mail_handler.rb'
  458. - 'lib/redmine/core_ext/string/inflections.rb'
  459. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  460. - 'test/functional/issues_controller_test.rb'
  461. - 'test/integration/admin_test.rb'
  462. Lint/AmbiguousBlockAssociation:
  463. Enabled: false
  464. Lint/AmbiguousOperator:
  465. Exclude:
  466. - 'app/controllers/application_controller.rb'
  467. - 'app/helpers/application_helper.rb'
  468. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  469. - 'test/unit/custom_field_test.rb'
  470. - 'test/unit/member_test.rb'
  471. Lint/AmbiguousRegexpLiteral:
  472. Enabled: false
  473. # Configuration parameters: AllowSafeAssignment.
  474. Lint/AssignmentInCondition:
  475. Enabled: false
  476. # Cop supports --auto-correct.
  477. Lint/DeprecatedClassMethods:
  478. Exclude:
  479. - 'Gemfile'
  480. - 'app/models/import.rb'
  481. - 'config/application.rb'
  482. - 'config/boot.rb'
  483. - 'config/routes.rb'
  484. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  485. - 'lib/redmine/thumbnail.rb'
  486. - 'lib/redmine/utils.rb'
  487. - 'test/functional/issues_controller_test.rb'
  488. - 'test/unit/attachment_test.rb'
  489. - 'test/unit/issue_import_test.rb'
  490. Lint/DuplicateMethods:
  491. Exclude:
  492. - 'app/models/custom_field_value.rb'
  493. - 'app/models/issue.rb'
  494. - 'app/models/query.rb'
  495. - 'app/models/wiki_page.rb'
  496. - 'test/functional/issues_controller_test.rb'
  497. Lint/EmptyWhen:
  498. Exclude:
  499. - 'app/controllers/issues_controller.rb'
  500. - 'app/controllers/wiki_controller.rb'
  501. # Configuration parameters: AllowComments.
  502. Lint/HandleExceptions:
  503. Exclude:
  504. - 'app/controllers/activities_controller.rb'
  505. - 'app/controllers/issues_controller.rb'
  506. - 'app/helpers/versions_helper.rb'
  507. - 'app/models/attachment.rb'
  508. - 'app/models/import.rb'
  509. - 'app/models/user.rb'
  510. - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
  511. - 'lib/redmine.rb'
  512. - 'lib/redmine/codeset_util.rb'
  513. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  514. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  515. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  516. - 'lib/redmine/subclass_factory.rb'
  517. - 'lib/redmine/version.rb'
  518. Lint/IneffectiveAccessModifier:
  519. Exclude:
  520. - 'app/models/attachment.rb'
  521. - 'app/models/auth_source_ldap.rb'
  522. - 'app/models/issue.rb'
  523. - 'app/models/mail_handler.rb'
  524. - 'app/models/mailer.rb'
  525. - 'app/models/role.rb'
  526. - 'app/models/setting.rb'
  527. - 'app/models/user.rb'
  528. - 'app/models/watcher.rb'
  529. - 'lib/redmine/helpers/gantt.rb'
  530. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  531. - 'lib/redmine/themes.rb'
  532. Lint/InterpolationCheck:
  533. Exclude:
  534. - 'app/models/user.rb'
  535. Lint/Loop:
  536. Exclude:
  537. - 'lib/redmine/helpers/gantt.rb'
  538. Lint/NestedMethodDefinition:
  539. Exclude:
  540. - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
  541. Lint/ParenthesesAsGroupedExpression:
  542. Exclude:
  543. - 'lib/redmine/field_format.rb'
  544. - 'test/functional/account_controller_test.rb'
  545. - 'test/functional/email_addresses_controller_test.rb'
  546. - 'test/functional/my_controller_test.rb'
  547. - 'test/functional/settings_controller_test.rb'
  548. - 'test/functional/users_controller_test.rb'
  549. - 'test/helpers/application_helper_test.rb'
  550. - 'test/unit/attachment_test.rb'
  551. - 'test/unit/lib/redmine/export/pdf_test.rb'
  552. # Cop supports --auto-correct.
  553. Lint/ScriptPermission:
  554. Exclude:
  555. - 'Rakefile'
  556. Lint/ShadowingOuterLocalVariable:
  557. Enabled: false
  558. # Cop supports --auto-correct.
  559. Lint/StringConversionInInterpolation:
  560. Exclude:
  561. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  562. - 'test/functional/repositories_filesystem_controller_test.rb'
  563. - 'test/functional/repositories_git_controller_test.rb'
  564. - 'test/functional/repositories_mercurial_controller_test.rb'
  565. # Cop supports --auto-correct.
  566. Lint/UnifiedInteger:
  567. Exclude:
  568. - 'test/unit/query_test.rb'
  569. # Cop supports --auto-correct.
  570. Lint/UnneededRequireStatement:
  571. Exclude:
  572. - 'app/models/wiki_page.rb'
  573. # Cop supports --auto-correct.
  574. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
  575. Lint/UnusedBlockArgument:
  576. Enabled: false
  577. # Cop supports --auto-correct.
  578. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
  579. Lint/UnusedMethodArgument:
  580. Enabled: false
  581. Lint/UriEscapeUnescape:
  582. Exclude:
  583. - 'lib/redmine/field_format.rb'
  584. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  585. - 'test/functional/wiki_controller_test.rb'
  586. # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
  587. Lint/UselessAccessModifier:
  588. Exclude:
  589. - 'app/models/changeset.rb'
  590. - 'app/models/watcher.rb'
  591. - 'lib/redmine/themes.rb'
  592. Lint/UselessAssignment:
  593. Enabled: false
  594. Lint/UselessSetterCall:
  595. Exclude:
  596. - 'test/unit/issue_test.rb'
  597. # Configuration parameters: CheckForMethodsWithNoSideEffects.
  598. Lint/Void:
  599. Exclude:
  600. - 'app/models/query.rb'
  601. - 'app/models/time_entry.rb'
  602. - 'app/models/wiki_content_version.rb'
  603. - 'lib/redmine/unified_diff.rb'
  604. - 'test/functional/project_enumerations_controller_test.rb'
  605. Naming/AccessorMethodName:
  606. Exclude:
  607. - 'app/controllers/account_controller.rb'
  608. - 'app/controllers/application_controller.rb'
  609. - 'app/models/enumeration.rb'
  610. - 'app/models/issue.rb'
  611. - 'app/models/issue_relation.rb'
  612. - 'app/models/mail_handler.rb'
  613. - 'app/models/project.rb'
  614. - 'app/models/setting.rb'
  615. - 'lib/redmine/i18n.rb'
  616. Naming/BinaryOperatorParameterName:
  617. Exclude:
  618. - 'app/models/custom_field.rb'
  619. - 'app/models/enumeration.rb'
  620. - 'app/models/issue.rb'
  621. - 'app/models/issue_category.rb'
  622. - 'app/models/issue_relation.rb'
  623. - 'app/models/issue_status.rb'
  624. - 'app/models/member.rb'
  625. - 'app/models/principal.rb'
  626. - 'app/models/project.rb'
  627. - 'app/models/repository.rb'
  628. - 'app/models/role.rb'
  629. - 'app/models/tracker.rb'
  630. - 'app/models/version.rb'
  631. - 'lib/redmine/plugin.rb'
  632. - 'lib/redmine/themes.rb'
  633. Naming/ConstantName:
  634. Exclude:
  635. - 'app/models/document_category.rb'
  636. - 'app/models/issue_priority.rb'
  637. - 'app/models/time_entry_activity.rb'
  638. - 'lib/redmine/helpers/gantt.rb'
  639. # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
  640. # 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
  641. Naming/FileName:
  642. Exclude:
  643. - 'config/initializers/00-core_plugins.rb'
  644. - 'config/initializers/10-patches.rb'
  645. - 'config/initializers/20-mime_types.rb'
  646. - 'config/initializers/30-redmine.rb'
  647. # Configuration parameters: EnforcedStyleForLeadingUnderscores.
  648. # SupportedStylesForLeadingUnderscores: disallowed, required, optional
  649. Naming/MemoizedInstanceVariableName:
  650. Exclude:
  651. - 'app/controllers/email_addresses_controller.rb'
  652. - 'app/controllers/users_controller.rb'
  653. - 'app/controllers/workflows_controller.rb'
  654. - 'app/models/issue.rb'
  655. - 'app/models/project.rb'
  656. - 'app/models/query.rb'
  657. - 'app/models/role.rb'
  658. - 'lib/redmine/field_format.rb'
  659. - 'lib/redmine/helpers/calendar.rb'
  660. - 'lib/redmine/search.rb'
  661. # Configuration parameters: EnforcedStyle.
  662. # SupportedStyles: snake_case, camelCase
  663. Naming/MethodName:
  664. Exclude:
  665. - 'lib/redmine/export/pdf.rb'
  666. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  667. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  668. - 'test/helpers/application_helper_test.rb'
  669. # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
  670. # NamePrefix: is_, has_, have_
  671. # NamePrefixBlacklist: is_, has_, have_
  672. # NameWhitelist: is_a?
  673. # MethodDefinitionMacros: define_method, define_singleton_method
  674. Naming/PredicateName:
  675. Exclude:
  676. - 'spec/**/*'
  677. - 'app/controllers/repositories_controller.rb'
  678. - 'app/models/attachment.rb'
  679. - 'app/models/enumeration.rb'
  680. - 'app/models/member.rb'
  681. - 'app/models/query.rb'
  682. - 'app/models/repository/mercurial.rb'
  683. - 'app/models/role.rb'
  684. - 'app/models/user.rb'
  685. - 'app/models/wiki_page.rb'
  686. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  687. - 'lib/redmine/mime_type.rb'
  688. - 'lib/redmine/nested_set/traversing.rb'
  689. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  690. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  691. # Cop supports --auto-correct.
  692. # Configuration parameters: PreferredName.
  693. Naming/RescuedExceptionsVariableName:
  694. Exclude:
  695. - 'app/models/user.rb'
  696. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  697. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  698. # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
  699. # AllowedNames: io, id, to, by, on, in, at, ip, db
  700. Naming/UncommunicativeMethodParamName:
  701. Enabled: false
  702. # Configuration parameters: EnforcedStyle.
  703. # SupportedStyles: snake_case, camelCase
  704. Naming/VariableName:
  705. Exclude:
  706. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  707. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  708. # Configuration parameters: EnforcedStyle.
  709. # SupportedStyles: snake_case, normalcase, non_integer
  710. Naming/VariableNumber:
  711. Exclude:
  712. - 'test/functional/versions_controller_test.rb'
  713. - 'test/helpers/application_helper_test.rb'
  714. - 'test/unit/lib/redmine/export/pdf_test.rb'
  715. - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
  716. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  717. - 'test/unit/project_test.rb'
  718. # Cop supports --auto-correct.
  719. Rails/ActiveRecordAliases:
  720. Exclude:
  721. - 'app/controllers/enumerations_controller.rb'
  722. - 'app/models/project.rb'
  723. - 'test/functional/documents_controller_test.rb'
  724. - 'test/functional/journals_controller_test.rb'
  725. - 'test/functional/search_controller_test.rb'
  726. - 'test/unit/document_category_test.rb'
  727. - 'test/unit/document_test.rb'
  728. - 'test/unit/enumeration_test.rb'
  729. - 'test/unit/issue_subtasking_test.rb'
  730. - 'test/unit/message_test.rb'
  731. # Configuration parameters: Include.
  732. # Include: app/models/**/*.rb
  733. Rails/ActiveRecordOverride:
  734. Exclude:
  735. - 'app/models/email_address.rb'
  736. - 'app/models/issue.rb'
  737. - 'app/models/journal.rb'
  738. - 'app/models/member.rb'
  739. # Cop supports --auto-correct.
  740. Rails/ApplicationRecord:
  741. Enabled: false
  742. # Cop supports --auto-correct.
  743. # Configuration parameters: Include.
  744. # Include: **/test/**/*
  745. Rails/AssertNot:
  746. Enabled: false
  747. # Cop supports --auto-correct.
  748. # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
  749. Rails/Blank:
  750. Exclude:
  751. - 'app/controllers/application_controller.rb'
  752. - 'app/controllers/context_menus_controller.rb'
  753. - 'app/controllers/repositories_controller.rb'
  754. - 'app/controllers/watchers_controller.rb'
  755. - 'app/helpers/issues_helper.rb'
  756. - 'app/helpers/queries_helper.rb'
  757. - 'app/helpers/repositories_helper.rb'
  758. - 'app/models/mailer.rb'
  759. - 'app/models/query.rb'
  760. - 'app/models/repository/git.rb'
  761. - 'app/models/role.rb'
  762. - 'lib/redmine/field_format.rb'
  763. - 'lib/redmine/wiki_formatting/macros.rb'
  764. # Configuration parameters: Include.
  765. # Include: db/migrate/*.rb
  766. Rails/CreateTableWithTimestamps:
  767. Enabled: false
  768. # Configuration parameters: EnforcedStyle.
  769. # SupportedStyles: strict, flexible
  770. Rails/Date:
  771. Enabled: false
  772. # Cop supports --auto-correct.
  773. # Configuration parameters: EnforceForPrefixed.
  774. Rails/Delegate:
  775. Exclude:
  776. - 'app/models/changeset.rb'
  777. - 'app/models/custom_field.rb'
  778. - 'app/models/custom_field_enumeration.rb'
  779. - 'app/models/custom_field_value.rb'
  780. - 'app/models/custom_value.rb'
  781. - 'app/models/group.rb'
  782. - 'app/models/message.rb'
  783. - 'app/models/repository.rb'
  784. - 'app/models/repository/git.rb'
  785. - 'app/models/time_entry_activity.rb'
  786. - 'app/models/wiki_content.rb'
  787. - 'app/models/wiki_content_version.rb'
  788. - 'lib/redmine/menu_manager.rb'
  789. # Cop supports --auto-correct.
  790. # Configuration parameters: Whitelist.
  791. # Whitelist: find_by_sql
  792. Rails/DynamicFindBy:
  793. Enabled: false
  794. # Configuration parameters: Include.
  795. # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
  796. Rails/Exit:
  797. Exclude:
  798. - 'lib/**/*.rake'
  799. - 'config/environment.rb'
  800. - 'config/initializers/10-patches.rb'
  801. - 'config/routes.rb'
  802. # Configuration parameters: EnforcedStyle.
  803. # SupportedStyles: slashes, arguments
  804. Rails/FilePath:
  805. Enabled: false
  806. # Cop supports --auto-correct.
  807. # Configuration parameters: Include.
  808. # Include: app/models/**/*.rb
  809. Rails/FindBy:
  810. Exclude:
  811. - 'app/models/attachment.rb'
  812. - 'app/models/enumeration.rb'
  813. - 'app/models/issue_import.rb'
  814. - 'app/models/repository.rb'
  815. - 'app/models/repository/cvs.rb'
  816. - 'app/models/repository/git.rb'
  817. - 'app/models/repository/mercurial.rb'
  818. - 'app/models/time_entry_query.rb'
  819. - 'app/models/user.rb'
  820. - 'app/models/wiki.rb'
  821. - 'app/models/wiki_content_version.rb'
  822. # Cop supports --auto-correct.
  823. # Configuration parameters: Include.
  824. # Include: app/models/**/*.rb
  825. Rails/FindEach:
  826. Exclude:
  827. - 'app/models/auth_source.rb'
  828. - 'app/models/group.rb'
  829. - 'app/models/issue.rb'
  830. - 'app/models/issue_status.rb'
  831. - 'app/models/project.rb'
  832. - 'app/models/query.rb'
  833. - 'app/models/repository.rb'
  834. - 'app/models/setting.rb'
  835. - 'app/models/watcher.rb'
  836. - 'app/models/wiki_page.rb'
  837. # Configuration parameters: Include.
  838. # Include: app/models/**/*.rb
  839. Rails/HasAndBelongsToMany:
  840. Exclude:
  841. - 'app/models/changeset.rb'
  842. - 'app/models/custom_field.rb'
  843. - 'app/models/group.rb'
  844. - 'app/models/issue.rb'
  845. - 'app/models/issue_custom_field.rb'
  846. - 'app/models/project.rb'
  847. - 'app/models/query.rb'
  848. - 'app/models/role.rb'
  849. - 'app/models/tracker.rb'
  850. - 'app/models/user.rb'
  851. # Configuration parameters: Include.
  852. # Include: app/models/**/*.rb
  853. Rails/HasManyOrHasOneDependent:
  854. Exclude:
  855. - 'app/models/auth_source.rb'
  856. - 'app/models/document_category.rb'
  857. - 'app/models/issue_priority.rb'
  858. - 'app/models/issue_status.rb'
  859. - 'app/models/project.rb'
  860. - 'app/models/time_entry_activity.rb'
  861. - 'app/models/tracker.rb'
  862. - 'app/models/wiki.rb'
  863. # Configuration parameters: Include.
  864. # Include: app/helpers/**/*.rb
  865. Rails/HelperInstanceVariable:
  866. Exclude:
  867. - 'app/helpers/application_helper.rb'
  868. - 'app/helpers/attachments_helper.rb'
  869. - 'app/helpers/context_menus_helper.rb'
  870. - 'app/helpers/imports_helper.rb'
  871. - 'app/helpers/issues_helper.rb'
  872. - 'app/helpers/journals_helper.rb'
  873. - 'app/helpers/projects_helper.rb'
  874. - 'app/helpers/queries_helper.rb'
  875. - 'app/helpers/repositories_helper.rb'
  876. - 'app/helpers/search_helper.rb'
  877. - 'app/helpers/sort_helper.rb'
  878. - 'app/helpers/timelog_helper.rb'
  879. - 'app/helpers/users_helper.rb'
  880. - 'app/helpers/versions_helper.rb'
  881. - 'app/helpers/workflows_helper.rb'
  882. # Cop supports --auto-correct.
  883. # Configuration parameters: EnforcedStyle.
  884. # SupportedStyles: numeric, symbolic
  885. Rails/HttpStatus:
  886. Exclude:
  887. - 'app/controllers/mail_handler_controller.rb'
  888. - 'app/controllers/sys_controller.rb'
  889. - 'app/controllers/watchers_controller.rb'
  890. # Configuration parameters: Include.
  891. # Include: app/models/**/*.rb
  892. Rails/InverseOf:
  893. Enabled: false
  894. # Configuration parameters: Include.
  895. # Include: app/controllers/**/*.rb
  896. Rails/LexicallyScopedActionFilter:
  897. Exclude:
  898. - 'app/controllers/projects_controller.rb'
  899. # Cop supports --auto-correct.
  900. Rails/LinkToBlank:
  901. Exclude:
  902. - 'app/helpers/avatars_helper.rb'
  903. # Configuration parameters: Include.
  904. # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
  905. Rails/Output:
  906. Exclude:
  907. - 'app/models/mail_handler.rb'
  908. - 'config/routes.rb'
  909. - 'lib/redmine/unified_diff.rb'
  910. Rails/OutputSafety:
  911. Enabled: false
  912. # Cop supports --auto-correct.
  913. Rails/PluralizationGrammar:
  914. Exclude:
  915. - 'lib/redmine/helpers/time_report.rb'
  916. - 'test/functional/gantts_controller_test.rb'
  917. - 'test/unit/mailer_test.rb'
  918. - 'test/unit/query_test.rb'
  919. # Cop supports --auto-correct.
  920. Rails/Presence:
  921. Exclude:
  922. - 'app/controllers/activities_controller.rb'
  923. - 'app/helpers/application_helper.rb'
  924. - 'app/models/repository.rb'
  925. - 'config/initializers/10-patches.rb'
  926. - 'config/initializers/30-redmine.rb'
  927. - 'db/migrate/20110228000100_copy_repositories_log_encoding.rb'
  928. - 'lib/redmine/codeset_util.rb'
  929. - 'lib/redmine/i18n.rb'
  930. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  931. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  932. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  933. - 'lib/redmine/scm/adapters/git_adapter.rb'
  934. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  935. - 'lib/redmine/sort_criteria.rb'
  936. # Cop supports --auto-correct.
  937. # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
  938. Rails/Present:
  939. Enabled: false
  940. # Cop supports --auto-correct.
  941. # Configuration parameters: Include.
  942. # Include: app/models/**/*.rb
  943. Rails/ReadWriteAttribute:
  944. Enabled: false
  945. Rails/ReflectionClassName:
  946. Exclude:
  947. - 'lib/redmine/nested_set/issue_nested_set.rb'
  948. - 'lib/redmine/nested_set/project_nested_set.rb'
  949. # Cop supports --auto-correct.
  950. # Configuration parameters: Include.
  951. # Include: **/test/**/*
  952. Rails/RefuteMethods:
  953. Exclude:
  954. - 'test/functional/projects_controller_test.rb'
  955. - 'test/functional/wiki_controller_test.rb'
  956. - 'test/integration/account_test.rb'
  957. - 'test/integration/api_test/my_test.rb'
  958. - 'test/unit/attachment_test.rb'
  959. - 'test/unit/custom_field_test.rb'
  960. - 'test/unit/lib/redmine/project_jump_box_test.rb'
  961. - 'test/unit/mail_handler_test.rb'
  962. # Configuration parameters: Blacklist, Whitelist.
  963. # Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
  964. Rails/SkipsModelValidations:
  965. Enabled: false
  966. # Cop supports --auto-correct.
  967. # Configuration parameters: EnforcedStyle.
  968. # SupportedStyles: strict, flexible
  969. Rails/TimeZone:
  970. Enabled: false
  971. # Cop supports --auto-correct.
  972. # Configuration parameters: Include.
  973. # Include: app/models/**/*.rb
  974. Rails/Validation:
  975. Enabled: false
  976. Security/Eval:
  977. Exclude:
  978. - 'app/helpers/attachments_helper.rb'
  979. - 'app/models/user.rb'
  980. - 'config/initializers/00-core_plugins.rb'
  981. Security/Open:
  982. Exclude:
  983. - 'app/models/version.rb'
  984. # Cop supports --auto-correct.
  985. Security/YAMLLoad:
  986. Exclude:
  987. - 'Gemfile'
  988. - 'app/models/setting.rb'
  989. - 'lib/redmine/configuration.rb'
  990. # Configuration parameters: EnforcedStyle.
  991. # SupportedStyles: inline, group
  992. Style/AccessModifierDeclarations:
  993. Enabled: false
  994. # Cop supports --auto-correct.
  995. # Configuration parameters: EnforcedStyle.
  996. # SupportedStyles: prefer_alias, prefer_alias_method
  997. Style/Alias:
  998. Enabled: false
  999. # Cop supports --auto-correct.
  1000. # Configuration parameters: EnforcedStyle.
  1001. # SupportedStyles: always, conditionals
  1002. Style/AndOr:
  1003. Enabled: false
  1004. # Configuration parameters: AllowedChars.
  1005. Style/AsciiComments:
  1006. Exclude:
  1007. - 'app/models/repository/git.rb'
  1008. - 'lib/redmine/search.rb'
  1009. - 'test/unit/mail_handler_test.rb'
  1010. # Cop supports --auto-correct.
  1011. # Configuration parameters: EnforcedStyle.
  1012. # SupportedStyles: percent_q, bare_percent
  1013. Style/BarePercentLiterals:
  1014. Exclude:
  1015. - 'test/integration/api_test/api_test.rb'
  1016. # Cop supports --auto-correct.
  1017. Style/BlockComments:
  1018. Exclude:
  1019. - 'lib/diff.rb'
  1020. # Cop supports --auto-correct.
  1021. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
  1022. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
  1023. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  1024. # FunctionalMethods: let, let!, subject, watch
  1025. # IgnoredMethods: lambda, proc, it
  1026. Style/BlockDelimiters:
  1027. Enabled: false
  1028. # Cop supports --auto-correct.
  1029. # Configuration parameters: EnforcedStyle.
  1030. # SupportedStyles: braces, no_braces, context_dependent
  1031. Style/BracesAroundHashParameters:
  1032. Enabled: false
  1033. # Cop supports --auto-correct.
  1034. Style/CharacterLiteral:
  1035. Exclude:
  1036. - 'lib/redmine/wiki_formatting.rb'
  1037. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1038. # Cop supports --auto-correct.
  1039. # Configuration parameters: AutoCorrect, EnforcedStyle.
  1040. # SupportedStyles: nested, compact
  1041. Style/ClassAndModuleChildren:
  1042. Enabled: false
  1043. # Cop supports --auto-correct.
  1044. # Configuration parameters: EnforcedStyle.
  1045. # SupportedStyles: is_a?, kind_of?
  1046. Style/ClassCheck:
  1047. Exclude:
  1048. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1049. # Cop supports --auto-correct.
  1050. Style/ClassMethods:
  1051. Exclude:
  1052. - 'lib/diff.rb'
  1053. Style/ClassVars:
  1054. Enabled: false
  1055. # Cop supports --auto-correct.
  1056. Style/ColonMethodCall:
  1057. Exclude:
  1058. - 'Gemfile'
  1059. - 'app/controllers/admin_controller.rb'
  1060. - 'app/models/setting.rb'
  1061. - 'lib/redmine/configuration.rb'
  1062. - 'lib/redmine/export/pdf.rb'
  1063. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1064. - 'lib/redmine/wiki_formatting.rb'
  1065. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1066. - 'test/test_helper.rb'
  1067. - 'test/unit/default_data_test.rb'
  1068. - 'test/unit/lib/redmine/export/pdf_test.rb'
  1069. # Cop supports --auto-correct.
  1070. # Configuration parameters: Keywords.
  1071. # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
  1072. Style/CommentAnnotation:
  1073. Exclude:
  1074. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1075. Style/CommentedKeyword:
  1076. Exclude:
  1077. - 'app/models/repository/cvs.rb'
  1078. # Cop supports --auto-correct.
  1079. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  1080. # SupportedStyles: assign_to_condition, assign_inside_condition
  1081. Style/ConditionalAssignment:
  1082. Enabled: false
  1083. Style/Documentation:
  1084. Enabled: false
  1085. Style/DoubleNegation:
  1086. Exclude:
  1087. - 'app/controllers/application_controller.rb'
  1088. - 'app/helpers/application_helper.rb'
  1089. - 'app/models/attachment.rb'
  1090. - 'app/models/issue_import.rb'
  1091. - 'app/models/mailer.rb'
  1092. - 'app/models/query.rb'
  1093. - 'app/models/user.rb'
  1094. - 'lib/redmine/sudo_mode.rb'
  1095. # Cop supports --auto-correct.
  1096. Style/EachWithObject:
  1097. Enabled: false
  1098. # Cop supports --auto-correct.
  1099. Style/EmptyCaseCondition:
  1100. Exclude:
  1101. - 'app/models/auth_source_ldap.rb'
  1102. - 'app/models/issue_priority.rb'
  1103. # Cop supports --auto-correct.
  1104. # Configuration parameters: EnforcedStyle.
  1105. # SupportedStyles: empty, nil, both
  1106. Style/EmptyElse:
  1107. Exclude:
  1108. - 'app/helpers/avatars_helper.rb'
  1109. - 'app/models/import.rb'
  1110. - 'app/models/mail_handler.rb'
  1111. - 'app/models/query.rb'
  1112. # Cop supports --auto-correct.
  1113. Style/EmptyLiteral:
  1114. Exclude:
  1115. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1116. # Cop supports --auto-correct.
  1117. # Configuration parameters: EnforcedStyle.
  1118. # SupportedStyles: compact, expanded
  1119. Style/EmptyMethod:
  1120. Enabled: false
  1121. Style/EvalWithLocation:
  1122. Exclude:
  1123. - 'app/helpers/attachments_helper.rb'
  1124. # Cop supports --auto-correct.
  1125. Style/ExpandPathArguments:
  1126. Enabled: false
  1127. # Cop supports --auto-correct.
  1128. # Configuration parameters: EnforcedStyle.
  1129. # SupportedStyles: each, for
  1130. Style/For:
  1131. Exclude:
  1132. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  1133. - 'lib/redmine/export/pdf/wiki_pdf_helper.rb'
  1134. # Cop supports --auto-correct.
  1135. # Configuration parameters: EnforcedStyle.
  1136. # SupportedStyles: format, sprintf, percent
  1137. Style/FormatString:
  1138. Exclude:
  1139. - 'app/helpers/application_helper.rb'
  1140. - 'app/helpers/queries_helper.rb'
  1141. - 'app/models/query.rb'
  1142. - 'config/initializers/10-patches.rb'
  1143. - 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
  1144. - 'lib/redmine/export/csv.rb'
  1145. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  1146. - 'lib/redmine/i18n.rb'
  1147. - 'lib/redmine/info.rb'
  1148. # Configuration parameters: EnforcedStyle.
  1149. # SupportedStyles: annotated, template, unannotated
  1150. Style/FormatStringToken:
  1151. Exclude:
  1152. - 'app/models/query.rb'
  1153. - 'lib/redmine/i18n.rb'
  1154. - 'lib/redmine/info.rb'
  1155. - 'test/helpers/application_helper_test.rb'
  1156. - 'test/unit/lib/redmine/unified_diff_test.rb'
  1157. # Configuration parameters: AllowedVariables.
  1158. Style/GlobalVars:
  1159. Exclude:
  1160. - 'test/test_helper.rb'
  1161. # Configuration parameters: MinBodyLength.
  1162. Style/GuardClause:
  1163. Enabled: false
  1164. # Cop supports --auto-correct.
  1165. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
  1166. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
  1167. Style/HashSyntax:
  1168. Exclude:
  1169. - 'test/functional/issues_controller_test.rb'
  1170. Style/IdenticalConditionalBranches:
  1171. Exclude:
  1172. - 'app/models/project.rb'
  1173. - 'config/initializers/10-patches.rb'
  1174. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1175. # Configuration parameters: AllowIfModifier.
  1176. Style/IfInsideElse:
  1177. Enabled: false
  1178. # Cop supports --auto-correct.
  1179. Style/IfUnlessModifier:
  1180. Enabled: false
  1181. Style/IfUnlessModifierOfIfUnless:
  1182. Exclude:
  1183. - 'app/models/attachment.rb'
  1184. Style/IfWithSemicolon:
  1185. Exclude:
  1186. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1187. # Cop supports --auto-correct.
  1188. # Configuration parameters: InverseMethods, InverseBlocks.
  1189. Style/InverseMethods:
  1190. Enabled: false
  1191. # Cop supports --auto-correct.
  1192. # Configuration parameters: EnforcedStyle.
  1193. # SupportedStyles: line_count_dependent, lambda, literal
  1194. Style/Lambda:
  1195. Enabled: false
  1196. # Cop supports --auto-correct.
  1197. Style/LineEndConcatenation:
  1198. Enabled: false
  1199. # Cop supports --auto-correct.
  1200. # Configuration parameters: IgnoredMethods.
  1201. Style/MethodCallWithoutArgsParentheses:
  1202. Exclude:
  1203. - 'app/models/repository/cvs.rb'
  1204. - 'lib/redmine/export/pdf.rb'
  1205. - 'lib/redmine/helpers/gantt.rb'
  1206. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1207. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1208. - 'test/functional/repositories_git_controller_test.rb'
  1209. - 'test/unit/activity_test.rb'
  1210. # Cop supports --auto-correct.
  1211. # Configuration parameters: EnforcedStyle.
  1212. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
  1213. Style/MethodDefParentheses:
  1214. Exclude:
  1215. - 'lib/redmine/menu_manager.rb'
  1216. Style/MethodMissingSuper:
  1217. Exclude:
  1218. - 'lib/redmine/views/builders/structure.rb'
  1219. Style/MissingRespondToMissing:
  1220. Exclude:
  1221. - 'lib/redmine/views/builders/structure.rb'
  1222. Style/MixinUsage:
  1223. Exclude:
  1224. - 'test/test_helper.rb'
  1225. Style/MultilineBlockChain:
  1226. Exclude:
  1227. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1228. # Cop supports --auto-correct.
  1229. Style/MultilineIfModifier:
  1230. Enabled: false
  1231. Style/MultilineTernaryOperator:
  1232. Exclude:
  1233. - 'app/controllers/workflows_controller.rb'
  1234. - 'app/helpers/issues_helper.rb'
  1235. - 'app/helpers/settings_helper.rb'
  1236. - 'app/models/issue_query.rb'
  1237. - 'app/models/issue_relation.rb'
  1238. - 'app/models/mail_handler.rb'
  1239. - 'app/models/message.rb'
  1240. - 'config/initializers/30-redmine.rb'
  1241. - 'lib/redmine/ciphering.rb'
  1242. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1243. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1244. - 'lib/redmine/utils.rb'
  1245. - 'lib/redmine/wiki_formatting.rb'
  1246. Style/MultipleComparison:
  1247. Exclude:
  1248. - 'app/helpers/application_helper.rb'
  1249. - 'app/helpers/workflows_helper.rb'
  1250. - 'app/models/import.rb'
  1251. - 'app/models/version.rb'
  1252. - 'app/models/wiki_page.rb'
  1253. - 'app/models/workflow_transition.rb'
  1254. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1255. # Cop supports --auto-correct.
  1256. # Configuration parameters: EnforcedStyle.
  1257. # SupportedStyles: literals, strict
  1258. Style/MutableConstant:
  1259. Enabled: false
  1260. # Cop supports --auto-correct.
  1261. # Configuration parameters: EnforcedStyle.
  1262. # SupportedStyles: both, prefix, postfix
  1263. Style/NegatedIf:
  1264. Exclude:
  1265. - 'app/controllers/application_controller.rb'
  1266. - 'app/controllers/messages_controller.rb'
  1267. - 'app/helpers/repositories_helper.rb'
  1268. - 'app/models/attachment.rb'
  1269. - 'app/models/auth_source_ldap.rb'
  1270. - 'app/models/custom_field.rb'
  1271. - 'app/models/project.rb'
  1272. - 'app/models/repository/cvs.rb'
  1273. - 'lib/diff.rb'
  1274. - 'lib/redmine/codeset_util.rb'
  1275. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1276. - 'lib/redmine/thumbnail.rb'
  1277. # Cop supports --auto-correct.
  1278. Style/NegatedWhile:
  1279. Exclude:
  1280. - 'app/helpers/application_helper.rb'
  1281. # Cop supports --auto-correct.
  1282. # Configuration parameters: Whitelist.
  1283. # 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
  1284. Style/NestedParenthesizedCalls:
  1285. Exclude:
  1286. - 'lib/redmine/views/labelled_form_builder.rb'
  1287. - 'test/unit/mail_handler_test.rb'
  1288. Style/NestedTernaryOperator:
  1289. Exclude:
  1290. - 'app/helpers/issues_helper.rb'
  1291. - 'app/helpers/queries_helper.rb'
  1292. - 'app/helpers/versions_helper.rb'
  1293. - 'app/models/issue_relation.rb'
  1294. - 'app/models/journal.rb'
  1295. # Cop supports --auto-correct.
  1296. # Configuration parameters: EnforcedStyle, MinBodyLength.
  1297. # SupportedStyles: skip_modifier_ifs, always
  1298. Style/Next:
  1299. Enabled: false
  1300. # Cop supports --auto-correct.
  1301. Style/Not:
  1302. Exclude:
  1303. - 'db/migrate/096_add_commit_access_permission.rb'
  1304. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1305. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1306. # Cop supports --auto-correct.
  1307. # Configuration parameters: EnforcedOctalStyle.
  1308. # SupportedOctalStyles: zero_with_o, zero_only
  1309. Style/NumericLiteralPrefix:
  1310. Exclude:
  1311. - 'test/unit/user_test.rb'
  1312. # Cop supports --auto-correct.
  1313. # Configuration parameters: MinDigits, Strict.
  1314. Style/NumericLiterals:
  1315. Exclude:
  1316. - 'db/schema.rb'
  1317. - 'lib/redmine/database.rb'
  1318. - 'test/functional/issues_controller_test.rb'
  1319. - 'test/functional/messages_controller_test.rb'
  1320. - 'test/helpers/application_helper_test.rb'
  1321. - 'test/unit/lib/redmine/i18n_test.rb'
  1322. - 'test/unit/lib/redmine/plugin_test.rb'
  1323. - 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
  1324. - 'test/unit/mail_handler_test.rb'
  1325. - 'test/unit/search_test.rb'
  1326. - 'test/unit/time_entry_test.rb'
  1327. # Cop supports --auto-correct.
  1328. # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
  1329. # SupportedStyles: predicate, comparison
  1330. Style/NumericPredicate:
  1331. Enabled: false
  1332. # Cop supports --auto-correct.
  1333. Style/OneLineConditional:
  1334. Exclude:
  1335. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1336. # Cop supports --auto-correct.
  1337. Style/OrAssignment:
  1338. Exclude:
  1339. - 'app/helpers/sort_helper.rb'
  1340. - 'app/models/repository/cvs.rb'
  1341. - 'app/models/user.rb'
  1342. - 'lib/redmine/helpers/diff.rb'
  1343. # Cop supports --auto-correct.
  1344. Style/ParallelAssignment:
  1345. Enabled: false
  1346. # Cop supports --auto-correct.
  1347. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
  1348. Style/ParenthesesAroundCondition:
  1349. Exclude:
  1350. - 'app/controllers/context_menus_controller.rb'
  1351. - 'app/helpers/application_helper.rb'
  1352. - 'app/helpers/issues_helper.rb'
  1353. - 'app/models/project.rb'
  1354. - 'app/models/query.rb'
  1355. - 'app/models/repository/bazaar.rb'
  1356. - 'app/models/repository/subversion.rb'
  1357. - 'app/models/time_entry.rb'
  1358. - 'app/models/wiki_page.rb'
  1359. - 'lib/diff.rb'
  1360. - 'lib/redmine/helpers/gantt.rb'
  1361. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1362. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1363. - 'lib/redmine/wiki_formatting.rb'
  1364. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1365. # Cop supports --auto-correct.
  1366. # Configuration parameters: PreferredDelimiters.
  1367. Style/PercentLiteralDelimiters:
  1368. Enabled: false
  1369. # Cop supports --auto-correct.
  1370. Style/PerlBackrefs:
  1371. Enabled: false
  1372. # Cop supports --auto-correct.
  1373. # Configuration parameters: EnforcedStyle.
  1374. # SupportedStyles: short, verbose
  1375. Style/PreferredHashMethods:
  1376. Enabled: false
  1377. # Cop supports --auto-correct.
  1378. Style/Proc:
  1379. Enabled: false
  1380. # Cop supports --auto-correct.
  1381. # Configuration parameters: EnforcedStyle.
  1382. # SupportedStyles: compact, exploded
  1383. Style/RaiseArgs:
  1384. Exclude:
  1385. - 'app/models/auth_source_ldap.rb'
  1386. - 'app/models/issue_query.rb'
  1387. - 'app/models/mail_handler.rb'
  1388. - 'app/models/mailer.rb'
  1389. - 'app/models/query.rb'
  1390. - 'app/models/tracker.rb'
  1391. - 'app/models/user.rb'
  1392. - 'app/models/workflow_rule.rb'
  1393. - 'lib/redmine/access_control.rb'
  1394. - 'lib/redmine/default_data/loader.rb'
  1395. - 'lib/redmine/plugin.rb'
  1396. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1397. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1398. - 'lib/redmine/sort_criteria.rb'
  1399. # Cop supports --auto-correct.
  1400. Style/RedundantBegin:
  1401. Exclude:
  1402. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1403. # Cop supports --auto-correct.
  1404. Style/RedundantConditional:
  1405. Exclude:
  1406. - 'app/controllers/workflows_controller.rb'
  1407. - 'app/helpers/application_helper.rb'
  1408. - 'app/helpers/issues_helper.rb'
  1409. - 'app/models/enumeration.rb'
  1410. - 'lib/redmine/field_format.rb'
  1411. # Cop supports --auto-correct.
  1412. Style/RedundantParentheses:
  1413. Enabled: false
  1414. # Cop supports --auto-correct.
  1415. # Configuration parameters: AllowMultipleReturnValues.
  1416. Style/RedundantReturn:
  1417. Enabled: false
  1418. # Cop supports --auto-correct.
  1419. Style/RedundantSelf:
  1420. Enabled: false
  1421. # Cop supports --auto-correct.
  1422. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  1423. # SupportedStyles: slashes, percent_r, mixed
  1424. Style/RegexpLiteral:
  1425. Enabled: false
  1426. # Cop supports --auto-correct.
  1427. Style/RescueModifier:
  1428. Exclude:
  1429. - 'app/controllers/application_controller.rb'
  1430. - 'app/controllers/attachments_controller.rb'
  1431. - 'app/controllers/imports_controller.rb'
  1432. - 'app/controllers/watchers_controller.rb'
  1433. - 'app/helpers/avatars_helper.rb'
  1434. - 'app/models/custom_field.rb'
  1435. - 'app/models/import.rb'
  1436. - 'app/models/query.rb'
  1437. - 'app/models/repository.rb'
  1438. - 'lib/redmine/export/csv.rb'
  1439. - 'lib/redmine/field_format.rb'
  1440. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1441. - 'lib/redmine/search.rb'
  1442. - 'lib/redmine/wiki_formatting.rb'
  1443. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  1444. # Cop supports --auto-correct.
  1445. # Configuration parameters: EnforcedStyle.
  1446. # SupportedStyles: implicit, explicit
  1447. Style/RescueStandardError:
  1448. Enabled: false
  1449. # Cop supports --auto-correct.
  1450. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
  1451. # Whitelist: present?, blank?, presence, try, try!
  1452. Style/SafeNavigation:
  1453. Enabled: false
  1454. # Cop supports --auto-correct.
  1455. Style/SelfAssignment:
  1456. Exclude:
  1457. - 'app/controllers/repositories_controller.rb'
  1458. - 'app/helpers/application_helper.rb'
  1459. - 'app/helpers/reports_helper.rb'
  1460. - 'app/models/auth_source_ldap.rb'
  1461. - 'app/models/project.rb'
  1462. - 'app/models/query.rb'
  1463. - 'app/models/repository/cvs.rb'
  1464. - 'lib/redmine/helpers/calendar.rb'
  1465. - 'lib/redmine/helpers/gantt.rb'
  1466. - 'lib/redmine/helpers/time_report.rb'
  1467. # Cop supports --auto-correct.
  1468. # Configuration parameters: AllowAsExpressionSeparator.
  1469. Style/Semicolon:
  1470. Enabled: false
  1471. # Cop supports --auto-correct.
  1472. # Configuration parameters: AllowIfMethodIsEmpty.
  1473. Style/SingleLineMethods:
  1474. Enabled: false
  1475. # Cop supports --auto-correct.
  1476. # Configuration parameters: .
  1477. # SupportedStyles: use_perl_names, use_english_names
  1478. Style/SpecialGlobalVars:
  1479. EnforcedStyle: use_perl_names
  1480. # Cop supports --auto-correct.
  1481. Style/StderrPuts:
  1482. Exclude:
  1483. - 'config/environment.rb'
  1484. - 'config/initializers/10-patches.rb'
  1485. # Cop supports --auto-correct.
  1486. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  1487. # SupportedStyles: single_quotes, double_quotes
  1488. Style/StringLiterals:
  1489. Enabled: false
  1490. # Cop supports --auto-correct.
  1491. # Configuration parameters: EnforcedStyle.
  1492. # SupportedStyles: single_quotes, double_quotes
  1493. Style/StringLiteralsInInterpolation:
  1494. Exclude:
  1495. - 'app/helpers/issues_helper.rb'
  1496. - 'app/models/issue_query.rb'
  1497. - 'config/environment.rb'
  1498. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1499. - 'lib/redmine/wiki_formatting.rb'
  1500. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1501. - 'test/unit/member_test.rb'
  1502. Style/StructInheritance:
  1503. Exclude:
  1504. - 'lib/redmine/notifiable.rb'
  1505. - 'lib/redmine/sudo_mode.rb'
  1506. # Cop supports --auto-correct.
  1507. # Configuration parameters: MinSize.
  1508. # SupportedStyles: percent, brackets
  1509. Style/SymbolArray:
  1510. EnforcedStyle: brackets
  1511. # Cop supports --auto-correct.
  1512. # Configuration parameters: IgnoredMethods.
  1513. # IgnoredMethods: respond_to, define_method
  1514. Style/SymbolProc:
  1515. Enabled: false
  1516. # Cop supports --auto-correct.
  1517. # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
  1518. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
  1519. Style/TernaryParentheses:
  1520. Enabled: false
  1521. # Cop supports --auto-correct.
  1522. # Configuration parameters: EnforcedStyleForMultiline.
  1523. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  1524. Style/TrailingCommaInArguments:
  1525. Exclude:
  1526. - 'test/unit/issue_test.rb'
  1527. # Cop supports --auto-correct.
  1528. # Configuration parameters: EnforcedStyleForMultiline.
  1529. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  1530. Style/TrailingCommaInArrayLiteral:
  1531. Exclude:
  1532. - 'app/models/time_entry_query.rb'
  1533. - 'test/functional/repositories_git_controller_test.rb'
  1534. - 'test/functional/repositories_mercurial_controller_test.rb'
  1535. - 'test/helpers/application_helper_test.rb'
  1536. - 'test/unit/attachment_test.rb'
  1537. - 'test/unit/custom_field_test.rb'
  1538. - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
  1539. - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
  1540. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  1541. - 'test/unit/repository_git_test.rb'
  1542. # Cop supports --auto-correct.
  1543. # Configuration parameters: EnforcedStyleForMultiline.
  1544. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  1545. Style/TrailingCommaInHashLiteral:
  1546. Enabled: false
  1547. # Cop supports --auto-correct.
  1548. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
  1549. # 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
  1550. Style/TrivialAccessors:
  1551. Exclude:
  1552. - 'app/models/issue.rb'
  1553. - 'app/models/journal.rb'
  1554. - 'app/models/query.rb'
  1555. - 'lib/redmine/access_control.rb'
  1556. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1557. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1558. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1559. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1560. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1561. # Cop supports --auto-correct.
  1562. Style/UnlessElse:
  1563. Exclude:
  1564. - 'app/controllers/auth_sources_controller.rb'
  1565. - 'app/controllers/trackers_controller.rb'
  1566. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1567. - 'lib/redmine/unified_diff.rb'
  1568. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1569. # Cop supports --auto-correct.
  1570. Style/UnneededCondition:
  1571. Exclude:
  1572. - 'app/controllers/messages_controller.rb'
  1573. - 'app/controllers/previews_controller.rb'
  1574. - 'app/models/issue.rb'
  1575. - 'app/models/setting.rb'
  1576. # Cop supports --auto-correct.
  1577. Style/UnneededInterpolation:
  1578. Exclude:
  1579. - 'app/helpers/my_helper.rb'
  1580. - 'app/helpers/queries_helper.rb'
  1581. - 'app/models/query.rb'
  1582. - 'app/views/common/feed.atom.builder'
  1583. - 'app/views/journals/index.builder'
  1584. - 'lib/redmine/helpers/time_report.rb'
  1585. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1586. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1587. - 'lib/redmine/wiki_formatting.rb'
  1588. - 'test/functional/versions_controller_test.rb'
  1589. - 'test/functional/watchers_controller_test.rb'
  1590. - 'test/unit/repository_mercurial_test.rb'
  1591. # Cop supports --auto-correct.
  1592. Style/UnneededSort:
  1593. Exclude:
  1594. - 'app/models/import.rb'
  1595. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1596. - 'test/functional/issues_controller_test.rb'
  1597. - 'test/unit/member_test.rb'
  1598. - 'test/unit/repository_git_test.rb'
  1599. # Cop supports --auto-correct.
  1600. Style/VariableInterpolation:
  1601. Exclude:
  1602. - 'lib/redmine/configuration.rb'
  1603. # Cop supports --auto-correct.
  1604. Style/WhenThen:
  1605. Exclude:
  1606. - 'app/helpers/application_helper.rb'
  1607. - 'app/models/issue_query.rb'
  1608. - 'app/models/role.rb'
  1609. - 'lib/redmine/views/builders.rb'
  1610. # Cop supports --auto-correct.
  1611. Style/WhileUntilModifier:
  1612. Exclude:
  1613. - 'app/helpers/issues_helper.rb'
  1614. - 'app/helpers/queries_helper.rb'
  1615. - 'app/models/attachment.rb'
  1616. - 'app/models/project.rb'
  1617. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  1618. - 'lib/redmine/unified_diff.rb'
  1619. - 'lib/redmine/utils.rb'
  1620. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1621. - 'test/application_system_test_case.rb'
  1622. # Cop supports --auto-correct.
  1623. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
  1624. # SupportedStyles: percent, brackets
  1625. Style/WordArray:
  1626. Enabled: false
  1627. # Cop supports --auto-correct.
  1628. Style/ZeroLengthPredicate:
  1629. Exclude:
  1630. - 'app/models/import.rb'
  1631. - 'app/models/issue.rb'
  1632. - 'app/models/mail_handler.rb'
  1633. - 'app/models/user.rb'
  1634. - 'lib/redmine/field_format.rb'
  1635. - 'lib/redmine/unified_diff.rb'
  1636. - 'lib/redmine/wiki_formatting/macros.rb'
  1637. - 'test/functional/custom_fields_controller_test.rb'
  1638. - 'test/object_helpers.rb'
  1639. - 'test/unit/activity_test.rb'
  1640. - 'test/unit/custom_field_test.rb'