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

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