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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786
  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. Performance/FixedSize:
  468. Exclude:
  469. - 'test/integration/api_test/issues_test.rb'
  470. - 'test/integration/attachments_test.rb'
  471. # Cop supports --auto-correct.
  472. Performance/RedundantMatch:
  473. Exclude:
  474. - 'app/models/issue_relation.rb'
  475. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  476. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  477. # Cop supports --auto-correct.
  478. # Configuration parameters: MaxKeyValuePairs.
  479. Performance/RedundantMerge:
  480. Exclude:
  481. - 'app/controllers/issues_controller.rb'
  482. - 'app/helpers/application_helper.rb'
  483. - 'app/helpers/avatars_helper.rb'
  484. - 'app/helpers/custom_fields_helper.rb'
  485. - 'app/helpers/workflows_helper.rb'
  486. - 'app/models/auth_source_ldap.rb'
  487. - 'app/models/principal.rb'
  488. - 'lib/redmine/access_control.rb'
  489. - 'test/functional/imports_controller_test.rb'
  490. - 'test/unit/issue_import_test.rb'
  491. - 'test/unit/time_entry_import_test.rb'
  492. # Cop supports --auto-correct.
  493. Performance/StringReplacement:
  494. Exclude:
  495. - 'app/helpers/application_helper.rb'
  496. - 'app/helpers/imports_helper.rb'
  497. - 'app/helpers/settings_helper.rb'
  498. - 'lib/redmine/core_ext/string/conversions.rb'
  499. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  500. - 'test/functional/repositories_cvs_controller_test.rb'
  501. - 'test/functional/repositories_git_controller_test.rb'
  502. - 'test/helpers/application_helper_test.rb'
  503. - 'test/integration/repositories_git_test.rb'
  504. - 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb'
  505. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  506. - 'test/unit/repository_cvs_test.rb'
  507. - 'test/unit/repository_git_test.rb'
  508. # Cop supports --auto-correct.
  509. # Configuration parameters: Include.
  510. # Include: app/models/**/*.rb
  511. Rails/ActiveRecordCallbacksOrder:
  512. Exclude:
  513. - 'app/models/attachment.rb'
  514. - 'app/models/change.rb'
  515. - 'app/models/changeset.rb'
  516. - 'app/models/enumeration.rb'
  517. - 'app/models/issue.rb'
  518. - 'app/models/issue_status.rb'
  519. - 'app/models/member_role.rb'
  520. - 'app/models/project.rb'
  521. - 'app/models/user.rb'
  522. - 'app/models/version.rb'
  523. - 'app/models/wiki_page.rb'
  524. # Configuration parameters: Include.
  525. # Include: app/models/**/*.rb
  526. Rails/ActiveRecordOverride:
  527. Exclude:
  528. - 'app/models/email_address.rb'
  529. - 'app/models/issue.rb'
  530. - 'app/models/journal.rb'
  531. - 'app/models/member.rb'
  532. # Cop supports --auto-correct.
  533. Rails/ApplicationController:
  534. Exclude:
  535. - 'app/controllers/mail_handler_controller.rb'
  536. - 'app/controllers/sys_controller.rb'
  537. - 'test/unit/lib/redmine/hook_test.rb'
  538. # Cop supports --auto-correct.
  539. Rails/ApplicationMailer:
  540. Exclude:
  541. - 'app/models/mail_handler.rb'
  542. - 'app/models/mailer.rb'
  543. # Cop supports --auto-correct.
  544. Rails/ApplicationRecord:
  545. Enabled: false
  546. # Cop supports --auto-correct.
  547. # Configuration parameters: Include.
  548. # Include: **/test/**/*
  549. Rails/AssertNot:
  550. Enabled: false
  551. # Cop supports --auto-correct.
  552. # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
  553. Rails/Blank:
  554. Exclude:
  555. - 'app/controllers/application_controller.rb'
  556. - 'app/controllers/context_menus_controller.rb'
  557. - 'app/controllers/repositories_controller.rb'
  558. - 'app/controllers/watchers_controller.rb'
  559. - 'app/helpers/queries_helper.rb'
  560. - 'app/helpers/repositories_helper.rb'
  561. - 'app/models/mailer.rb'
  562. - 'app/models/query.rb'
  563. - 'app/models/repository/git.rb'
  564. - 'app/models/role.rb'
  565. - 'lib/redmine/field_format.rb'
  566. - 'lib/redmine/wiki_formatting/macros.rb'
  567. # Cop supports --auto-correct.
  568. Rails/ContentTag:
  569. Enabled: false
  570. # Configuration parameters: Include.
  571. # Include: db/migrate/*.rb
  572. Rails/CreateTableWithTimestamps:
  573. Enabled: false
  574. # Configuration parameters: EnforcedStyle.
  575. # SupportedStyles: strict, flexible
  576. Rails/Date:
  577. Enabled: false
  578. # Cop supports --auto-correct.
  579. # Configuration parameters: EnforceForPrefixed.
  580. Rails/Delegate:
  581. Exclude:
  582. - 'app/models/changeset.rb'
  583. - 'app/models/custom_field.rb'
  584. - 'app/models/custom_field_enumeration.rb'
  585. - 'app/models/custom_field_value.rb'
  586. - 'app/models/custom_value.rb'
  587. - 'app/models/group.rb'
  588. - 'app/models/message.rb'
  589. - 'app/models/repository.rb'
  590. - 'app/models/repository/git.rb'
  591. - 'app/models/time_entry_activity.rb'
  592. - 'app/models/wiki_content.rb'
  593. - 'app/models/wiki_content_version.rb'
  594. - 'lib/redmine/menu_manager.rb'
  595. # Cop supports --auto-correct.
  596. # Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
  597. # Whitelist: find_by_sql
  598. # AllowedMethods: find_by_sql
  599. # AllowedReceivers: Gem::Specification
  600. Rails/DynamicFindBy:
  601. Enabled: false
  602. # Configuration parameters: Include.
  603. # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
  604. Rails/Exit:
  605. Exclude:
  606. - 'lib/**/*.rake'
  607. - 'config/environment.rb'
  608. - 'config/initializers/10-patches.rb'
  609. - 'config/routes.rb'
  610. # Configuration parameters: EnforcedStyle.
  611. # SupportedStyles: slashes, arguments
  612. Rails/FilePath:
  613. Exclude:
  614. - 'app/models/attachment.rb'
  615. - 'app/models/import.rb'
  616. - 'app/models/setting.rb'
  617. - 'config/environment.rb'
  618. - 'config/initializers/00-core_plugins.rb'
  619. - 'config/initializers/10-patches.rb'
  620. - 'lib/redmine/configuration.rb'
  621. - 'lib/redmine/plugin.rb'
  622. - 'lib/redmine/twofa.rb'
  623. - 'lib/redmine/version.rb'
  624. - 'test/application_system_test_case.rb'
  625. - 'test/functional/custom_fields_controller_test.rb'
  626. - 'test/functional/settings_controller_test.rb'
  627. - 'test/test_helper.rb'
  628. - 'test/unit/lib/redmine/configuration_test.rb'
  629. - 'test/unit/lib/redmine/i18n_test.rb'
  630. - 'test/unit/lib/redmine/plugin_test.rb'
  631. # Cop supports --auto-correct.
  632. # Configuration parameters: Include.
  633. # Include: app/models/**/*.rb
  634. Rails/FindBy:
  635. Exclude:
  636. - 'app/models/enumeration.rb'
  637. - 'app/models/issue_import.rb'
  638. - 'app/models/repository.rb'
  639. - 'app/models/repository/cvs.rb'
  640. - 'app/models/repository/git.rb'
  641. - 'app/models/repository/mercurial.rb'
  642. - 'app/models/time_entry_query.rb'
  643. - 'app/models/user.rb'
  644. - 'app/models/wiki.rb'
  645. - 'app/models/wiki_content_version.rb'
  646. # Cop supports --auto-correct.
  647. # Configuration parameters: Include.
  648. # Include: app/models/**/*.rb
  649. Rails/FindEach:
  650. Exclude:
  651. - 'app/models/auth_source.rb'
  652. - 'app/models/group.rb'
  653. - 'app/models/issue.rb'
  654. - 'app/models/issue_status.rb'
  655. - 'app/models/project.rb'
  656. - 'app/models/query.rb'
  657. - 'app/models/repository.rb'
  658. - 'app/models/setting.rb'
  659. - 'app/models/watcher.rb'
  660. - 'app/models/wiki_page.rb'
  661. # Configuration parameters: Include.
  662. # Include: app/models/**/*.rb
  663. Rails/HasAndBelongsToMany:
  664. Exclude:
  665. - 'app/models/changeset.rb'
  666. - 'app/models/custom_field.rb'
  667. - 'app/models/group.rb'
  668. - 'app/models/issue.rb'
  669. - 'app/models/issue_custom_field.rb'
  670. - 'app/models/project.rb'
  671. - 'app/models/query.rb'
  672. - 'app/models/role.rb'
  673. - 'app/models/tracker.rb'
  674. - 'app/models/user.rb'
  675. # Configuration parameters: Include.
  676. # Include: app/models/**/*.rb
  677. Rails/HasManyOrHasOneDependent:
  678. Exclude:
  679. - 'app/models/auth_source.rb'
  680. - 'app/models/document_category.rb'
  681. - 'app/models/issue_priority.rb'
  682. - 'app/models/issue_status.rb'
  683. - 'app/models/project.rb'
  684. - 'app/models/time_entry_activity.rb'
  685. - 'app/models/tracker.rb'
  686. - 'app/models/wiki.rb'
  687. # Cop supports --auto-correct.
  688. # Configuration parameters: EnforcedStyle.
  689. # SupportedStyles: numeric, symbolic
  690. Rails/HttpStatus:
  691. Exclude:
  692. - 'app/controllers/mail_handler_controller.rb'
  693. - 'app/controllers/sys_controller.rb'
  694. - 'app/controllers/watchers_controller.rb'
  695. # Configuration parameters: Include.
  696. # Include: app/models/**/*.rb
  697. Rails/InverseOf:
  698. Exclude:
  699. - 'app/models/board.rb'
  700. - 'app/models/custom_field.rb'
  701. - 'app/models/document_category.rb'
  702. - 'app/models/issue.rb'
  703. - 'app/models/issue_category.rb'
  704. - 'app/models/issue_priority.rb'
  705. - 'app/models/issue_status.rb'
  706. - 'app/models/journal.rb'
  707. - 'app/models/member.rb'
  708. - 'app/models/news.rb'
  709. - 'app/models/principal.rb'
  710. - 'app/models/project.rb'
  711. - 'app/models/repository.rb'
  712. - 'app/models/repository/mercurial.rb'
  713. - 'app/models/time_entry_activity.rb'
  714. - 'app/models/user.rb'
  715. - 'app/models/version.rb'
  716. - 'app/models/wiki.rb'
  717. - 'app/models/wiki_page.rb'
  718. # Configuration parameters: Include.
  719. # Include: app/controllers/**/*.rb
  720. Rails/LexicallyScopedActionFilter:
  721. Exclude:
  722. - 'app/controllers/projects_controller.rb'
  723. # Cop supports --auto-correct.
  724. Rails/LinkToBlank:
  725. Exclude:
  726. - 'app/helpers/avatars_helper.rb'
  727. # Cop supports --auto-correct.
  728. # Configuration parameters: Include.
  729. # Include: config/routes.rb, config/routes/**/*.rb
  730. Rails/MatchRoute:
  731. Exclude:
  732. - 'config/routes.rb'
  733. # Cop supports --auto-correct.
  734. Rails/NegateInclude:
  735. Enabled: false
  736. # Configuration parameters: Include.
  737. # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
  738. Rails/Output:
  739. Exclude:
  740. - 'app/models/mail_handler.rb'
  741. - 'config/routes.rb'
  742. - 'lib/redmine/unified_diff.rb'
  743. Rails/OutputSafety:
  744. Enabled: false
  745. # Cop supports --auto-correct.
  746. Rails/Pluck:
  747. Exclude:
  748. - 'app/helpers/versions_helper.rb'
  749. - 'test/unit/query_test.rb'
  750. # Cop supports --auto-correct.
  751. Rails/PluralizationGrammar:
  752. Exclude:
  753. - 'lib/redmine/helpers/time_report.rb'
  754. - 'test/functional/gantts_controller_test.rb'
  755. - 'test/unit/mailer_test.rb'
  756. - 'test/unit/query_test.rb'
  757. # Cop supports --auto-correct.
  758. Rails/Presence:
  759. Exclude:
  760. - 'app/controllers/activities_controller.rb'
  761. - 'app/helpers/application_helper.rb'
  762. - 'app/models/repository.rb'
  763. - 'lib/redmine/codeset_util.rb'
  764. - 'lib/redmine/i18n.rb'
  765. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  766. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  767. - 'lib/redmine/scm/adapters/git_adapter.rb'
  768. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  769. - 'lib/redmine/sort_criteria.rb'
  770. # Cop supports --auto-correct.
  771. # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
  772. Rails/Present:
  773. Enabled: false
  774. # Cop supports --auto-correct.
  775. # Configuration parameters: Include.
  776. # Include: app/models/**/*.rb
  777. Rails/ReadWriteAttribute:
  778. Exclude:
  779. - 'app/models/attachment.rb'
  780. - 'app/models/auth_source_ldap.rb'
  781. - 'app/models/changeset.rb'
  782. - 'app/models/custom_field.rb'
  783. - 'app/models/email_address.rb'
  784. - 'app/models/issue.rb'
  785. - 'app/models/journal_detail.rb'
  786. - 'app/models/message.rb'
  787. - 'app/models/query.rb'
  788. - 'app/models/repository.rb'
  789. - 'app/models/repository/git.rb'
  790. - 'app/models/role.rb'
  791. - 'app/models/setting.rb'
  792. - 'app/models/time_entry.rb'
  793. - 'app/models/user.rb'
  794. - 'app/models/user_preference.rb'
  795. - 'app/models/wiki_page.rb'
  796. # Cop supports --auto-correct.
  797. Rails/RedundantForeignKey:
  798. Exclude:
  799. - 'app/models/changeset.rb'
  800. - 'app/models/custom_field.rb'
  801. - 'app/models/query.rb'
  802. - 'app/models/role.rb'
  803. Rails/ReflectionClassName:
  804. Exclude:
  805. - 'lib/redmine/nested_set/issue_nested_set.rb'
  806. - 'lib/redmine/nested_set/project_nested_set.rb'
  807. # Cop supports --auto-correct.
  808. # Configuration parameters: EnforcedStyle, Include.
  809. # SupportedStyles: assert_not, refute
  810. # Include: **/test/**/*
  811. Rails/RefuteMethods:
  812. Exclude:
  813. - 'test/functional/projects_controller_test.rb'
  814. - 'test/functional/wiki_controller_test.rb'
  815. - 'test/integration/account_test.rb'
  816. - 'test/integration/api_test/my_test.rb'
  817. - 'test/unit/attachment_test.rb'
  818. - 'test/unit/custom_field_test.rb'
  819. - 'test/unit/lib/redmine/project_jump_box_test.rb'
  820. # Cop supports --auto-correct.
  821. # Configuration parameters: EnforcedStyle.
  822. # SupportedStyles: conservative, aggressive
  823. Rails/ShortI18n:
  824. Exclude:
  825. - 'test/unit/issue_test.rb'
  826. - 'test/unit/member_test.rb'
  827. - 'test/unit/repository_test.rb'
  828. - 'test/unit/time_entry_test.rb'
  829. - 'test/unit/user_test.rb'
  830. - 'test/unit/version_test.rb'
  831. - 'test/unit/wiki_page_test.rb'
  832. # Configuration parameters: ForbiddenMethods, AllowedMethods.
  833. # 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
  834. Rails/SkipsModelValidations:
  835. Enabled: false
  836. # Cop supports --auto-correct.
  837. # Configuration parameters: EnforcedStyle.
  838. # SupportedStyles: strict, flexible
  839. Rails/TimeZone:
  840. Enabled: false
  841. # Cop supports --auto-correct.
  842. # Configuration parameters: Include.
  843. # Include: app/models/**/*.rb
  844. Rails/Validation:
  845. Enabled: false
  846. # Cop supports --auto-correct.
  847. # Configuration parameters: EnforcedStyle.
  848. # SupportedStyles: exists, where
  849. Rails/WhereExists:
  850. Exclude:
  851. - 'app/controllers/issues_controller.rb'
  852. - 'app/models/issue.rb'
  853. - 'app/models/project.rb'
  854. - 'app/models/user.rb'
  855. - 'app/models/watcher.rb'
  856. - 'lib/redmine/default_data/loader.rb'
  857. - 'test/functional/workflows_controller_test.rb'
  858. - 'test/unit/document_category_test.rb'
  859. - 'test/unit/enumeration_test.rb'
  860. - 'test/unit/issue_status_test.rb'
  861. - 'test/unit/project_test.rb'
  862. - 'test/unit/workflow_transition_test.rb'
  863. # Cop supports --auto-correct.
  864. Rails/WhereNot:
  865. Exclude:
  866. - 'app/models/import.rb'
  867. - 'app/models/user.rb'
  868. - 'db/migrate/20130710182539_add_queries_visibility.rb'
  869. - 'test/unit/issue_test.rb'
  870. - 'test/unit/project_test.rb'
  871. - 'test/unit/user_test.rb'
  872. Security/Eval:
  873. Exclude:
  874. - 'app/helpers/attachments_helper.rb'
  875. - 'app/models/user.rb'
  876. - 'config/initializers/00-core_plugins.rb'
  877. Security/Open:
  878. Exclude:
  879. - 'app/models/version.rb'
  880. # Cop supports --auto-correct.
  881. Security/YAMLLoad:
  882. Exclude:
  883. - 'Gemfile'
  884. - 'app/models/setting.rb'
  885. - 'lib/redmine/configuration.rb'
  886. # Cop supports --auto-correct.
  887. # Configuration parameters: EnforcedStyle.
  888. # SupportedStyles: separated, grouped
  889. Style/AccessorGrouping:
  890. Exclude:
  891. - 'app/models/user.rb'
  892. - 'lib/redmine/helpers/gantt.rb'
  893. - 'lib/redmine/unified_diff.rb'
  894. # Cop supports --auto-correct.
  895. # Configuration parameters: EnforcedStyle.
  896. # SupportedStyles: prefer_alias, prefer_alias_method
  897. Style/Alias:
  898. Exclude:
  899. - 'app/controllers/repositories_controller.rb'
  900. - 'app/models/custom_field_enumeration.rb'
  901. - 'app/models/enumeration.rb'
  902. - 'app/models/issue.rb'
  903. - 'app/models/issue_category.rb'
  904. - 'app/models/issue_query.rb'
  905. - 'app/models/issue_status.rb'
  906. - 'app/models/member.rb'
  907. - 'app/models/project.rb'
  908. - 'app/models/user.rb'
  909. - 'app/models/version.rb'
  910. - 'config/initializers/10-patches.rb'
  911. - 'lib/redmine/export/pdf.rb'
  912. - 'lib/redmine/menu_manager.rb'
  913. - 'lib/redmine/plugin.rb'
  914. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  915. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  916. # Cop supports --auto-correct.
  917. # Configuration parameters: EnforcedStyle.
  918. # SupportedStyles: always, conditionals
  919. Style/AndOr:
  920. Exclude:
  921. - 'app/controllers/account_controller.rb'
  922. - 'app/controllers/calendars_controller.rb'
  923. - 'app/helpers/repositories_helper.rb'
  924. - 'app/models/query.rb'
  925. - 'db/migrate/022_serialize_possibles_values.rb'
  926. - 'lib/redmine/export/pdf.rb'
  927. - 'lib/redmine/field_format.rb'
  928. - 'lib/redmine/helpers/gantt.rb'
  929. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  930. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  931. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  932. - 'lib/redmine/scm/adapters/git_adapter.rb'
  933. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  934. - 'lib/redmine/wiki_formatting.rb'
  935. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  936. # Cop supports --auto-correct.
  937. # Configuration parameters: EnforcedStyle.
  938. # SupportedStyles: percent_q, bare_percent
  939. Style/BarePercentLiterals:
  940. Exclude:
  941. - 'test/integration/api_test/api_test.rb'
  942. # Cop supports --auto-correct.
  943. Style/BlockComments:
  944. Exclude:
  945. - 'lib/diff.rb'
  946. # Cop supports --auto-correct.
  947. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
  948. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
  949. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  950. # FunctionalMethods: let, let!, subject, watch
  951. # IgnoredMethods: lambda, proc, it
  952. Style/BlockDelimiters:
  953. Enabled: false
  954. # Cop supports --auto-correct.
  955. Style/CaseLikeIf:
  956. Exclude:
  957. - 'app/controllers/wiki_controller.rb'
  958. - 'app/helpers/members_helper.rb'
  959. - 'app/models/issue_query.rb'
  960. - 'app/models/journal.rb'
  961. - 'app/models/repository/cvs.rb'
  962. - 'app/models/setting.rb'
  963. - 'app/models/time_entry.rb'
  964. - 'app/models/user.rb'
  965. - 'app/models/workflow_transition.rb'
  966. - 'lib/redmine/access_control.rb'
  967. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  968. - 'lib/redmine/field_format.rb'
  969. - 'lib/redmine/i18n.rb'
  970. - 'lib/redmine/plugin.rb'
  971. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  972. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  973. - 'lib/redmine/scm/adapters/git_adapter.rb'
  974. - 'lib/redmine/unified_diff.rb'
  975. # Cop supports --auto-correct.
  976. # Configuration parameters: EnforcedStyle.
  977. # SupportedStyles: nested, compact
  978. Style/ClassAndModuleChildren:
  979. Enabled: false
  980. # Cop supports --auto-correct.
  981. # Configuration parameters: IgnoredMethods.
  982. # IgnoredMethods: ==, equal?, eql?
  983. Style/ClassEqualityComparison:
  984. Exclude:
  985. - 'app/models/principal.rb'
  986. # Cop supports --auto-correct.
  987. Style/ClassMethods:
  988. Exclude:
  989. - 'lib/diff.rb'
  990. Style/ClassVars:
  991. Exclude:
  992. - 'app/models/attachment.rb'
  993. - 'config/initializers/10-patches.rb'
  994. - 'lib/redmine/activity.rb'
  995. - 'lib/redmine/hook.rb'
  996. - 'lib/redmine/i18n.rb'
  997. - 'lib/redmine/menu_manager.rb'
  998. - 'lib/redmine/my_page.rb'
  999. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1000. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1001. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1002. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1003. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1004. - 'lib/redmine/search.rb'
  1005. - 'lib/redmine/themes.rb'
  1006. - 'lib/redmine/twofa.rb'
  1007. - 'lib/redmine/wiki_formatting.rb'
  1008. - 'lib/redmine/wiki_formatting/macros.rb'
  1009. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  1010. - 'test/helpers/activities_helper_test.rb'
  1011. # Cop supports --auto-correct.
  1012. Style/ColonMethodCall:
  1013. Exclude:
  1014. - 'Gemfile'
  1015. - 'app/controllers/admin_controller.rb'
  1016. - 'app/models/setting.rb'
  1017. - 'lib/redmine/configuration.rb'
  1018. - 'lib/redmine/export/pdf.rb'
  1019. - 'lib/redmine/wiki_formatting.rb'
  1020. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1021. - 'test/unit/default_data_test.rb'
  1022. - 'test/unit/lib/redmine/export/pdf_test.rb'
  1023. Style/CombinableLoops:
  1024. Exclude:
  1025. - 'app/models/wiki_page.rb'
  1026. - 'lib/redmine/default_data/loader.rb'
  1027. # Cop supports --auto-correct.
  1028. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  1029. # SupportedStyles: assign_to_condition, assign_inside_condition
  1030. Style/ConditionalAssignment:
  1031. Enabled: false
  1032. Style/Documentation:
  1033. Enabled: false
  1034. # Configuration parameters: EnforcedStyle.
  1035. # SupportedStyles: allowed_in_returns, forbidden
  1036. Style/DoubleNegation:
  1037. Exclude:
  1038. - 'app/models/issue_import.rb'
  1039. - 'app/models/mailer.rb'
  1040. - 'app/models/query.rb'
  1041. - 'app/models/user.rb'
  1042. - 'lib/redmine/sudo_mode.rb'
  1043. # Cop supports --auto-correct.
  1044. Style/EachWithObject:
  1045. Exclude:
  1046. - 'app/controllers/repositories_controller.rb'
  1047. - 'app/helpers/queries_helper.rb'
  1048. - 'app/models/issue.rb'
  1049. - 'app/models/issue_import.rb'
  1050. - 'app/models/journal.rb'
  1051. - 'app/models/mail_handler.rb'
  1052. - 'app/models/project.rb'
  1053. - 'app/models/query.rb'
  1054. - 'app/models/repository.rb'
  1055. - 'app/models/setting.rb'
  1056. - 'app/models/time_entry_import.rb'
  1057. - 'app/models/workflow_permission.rb'
  1058. - 'config/initializers/10-patches.rb'
  1059. - 'lib/redmine/acts/positioned.rb'
  1060. - 'lib/redmine/configuration.rb'
  1061. - 'lib/redmine/i18n.rb'
  1062. - 'lib/redmine/mime_type.rb'
  1063. - 'lib/redmine/my_page.rb'
  1064. - 'lib/redmine/sort_criteria.rb'
  1065. - 'test/test_helper.rb'
  1066. # Cop supports --auto-correct.
  1067. Style/EmptyCaseCondition:
  1068. Exclude:
  1069. - 'app/models/auth_source_ldap.rb'
  1070. - 'app/models/issue_priority.rb'
  1071. # Cop supports --auto-correct.
  1072. # Configuration parameters: EnforcedStyle.
  1073. # SupportedStyles: empty, nil, both
  1074. Style/EmptyElse:
  1075. Exclude:
  1076. - 'app/models/mail_handler.rb'
  1077. # Cop supports --auto-correct.
  1078. # Configuration parameters: EnforcedStyle.
  1079. # SupportedStyles: compact, expanded
  1080. Style/EmptyMethod:
  1081. Enabled: false
  1082. Style/EvalWithLocation:
  1083. Exclude:
  1084. - 'app/helpers/attachments_helper.rb'
  1085. # Cop supports --auto-correct.
  1086. Style/ExpandPathArguments:
  1087. Enabled: false
  1088. # Cop supports --auto-correct.
  1089. Style/ExplicitBlockArgument:
  1090. Exclude:
  1091. - 'app/models/board.rb'
  1092. - 'lib/redmine/activity/fetcher.rb'
  1093. - 'lib/redmine/menu_manager.rb'
  1094. - 'lib/redmine/plugin.rb'
  1095. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1096. - 'test/test_helper.rb'
  1097. # Cop supports --auto-correct.
  1098. # Configuration parameters: EnforcedStyle.
  1099. # SupportedStyles: format, sprintf, percent
  1100. Style/FormatString:
  1101. Exclude:
  1102. - 'app/models/query.rb'
  1103. - 'config/initializers/10-patches.rb'
  1104. - 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
  1105. - 'lib/redmine/export/csv.rb'
  1106. - 'lib/redmine/helpers/gantt.rb'
  1107. - 'lib/redmine/i18n.rb'
  1108. - 'lib/redmine/info.rb'
  1109. # Configuration parameters: AllowedVariables.
  1110. Style/GlobalVars:
  1111. Exclude:
  1112. - 'test/test_helper.rb'
  1113. # Configuration parameters: MinBodyLength.
  1114. Style/GuardClause:
  1115. Enabled: false
  1116. # Cop supports --auto-correct.
  1117. # Configuration parameters: EnforcedStyle.
  1118. # SupportedStyles: braces, no_braces
  1119. Style/HashAsLastArrayItem:
  1120. Exclude:
  1121. - 'app/controllers/enumerations_controller.rb'
  1122. - 'app/models/board.rb'
  1123. # Cop supports --auto-correct.
  1124. Style/HashEachMethods:
  1125. Exclude:
  1126. - 'app/controllers/application_controller.rb'
  1127. - 'app/controllers/groups_controller.rb'
  1128. - 'app/models/mailer.rb'
  1129. - 'app/models/role.rb'
  1130. - 'test/functional/issues_custom_fields_visibility_test.rb'
  1131. - 'test/unit/auth_source_ldap_test.rb'
  1132. # Configuration parameters: AllowIfModifier.
  1133. Style/IfInsideElse:
  1134. Exclude:
  1135. - 'app/controllers/account_controller.rb'
  1136. - 'app/controllers/activities_controller.rb'
  1137. - 'app/controllers/application_controller.rb'
  1138. - 'app/helpers/application_helper.rb'
  1139. - 'app/helpers/issues_helper.rb'
  1140. - 'app/models/custom_field.rb'
  1141. - 'app/models/issue.rb'
  1142. - 'app/models/project.rb'
  1143. - 'app/models/query.rb'
  1144. - 'app/models/version.rb'
  1145. - 'config/initializers/10-patches.rb'
  1146. - 'lib/redmine/field_format.rb'
  1147. - 'lib/redmine/helpers/gantt.rb'
  1148. - 'lib/redmine/menu_manager.rb'
  1149. - 'lib/redmine/pop3.rb'
  1150. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1151. - 'lib/redmine/views/builders/structure.rb'
  1152. # Cop supports --auto-correct.
  1153. Style/IfUnlessModifier:
  1154. Enabled: false
  1155. # Cop supports --auto-correct.
  1156. Style/IfUnlessModifierOfIfUnless:
  1157. Exclude:
  1158. - 'app/models/attachment.rb'
  1159. # Cop supports --auto-correct.
  1160. # Configuration parameters: InverseMethods, InverseBlocks.
  1161. Style/InverseMethods:
  1162. Exclude:
  1163. - 'app/controllers/roles_controller.rb'
  1164. - 'app/helpers/application_helper.rb'
  1165. - 'app/helpers/issues_helper.rb'
  1166. - 'app/helpers/repositories_helper.rb'
  1167. - 'app/models/document.rb'
  1168. - 'app/models/issue.rb'
  1169. - 'app/models/member.rb'
  1170. - 'app/models/message.rb'
  1171. - 'app/models/project.rb'
  1172. - 'app/models/tracker.rb'
  1173. - 'app/models/version.rb'
  1174. - 'app/models/wiki_content.rb'
  1175. - 'db/migrate/096_add_commit_access_permission.rb'
  1176. - 'lib/redmine/default_data/loader.rb'
  1177. - 'lib/redmine/helpers/diff.rb'
  1178. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1179. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1180. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1181. - 'test/unit/issue_test.rb'
  1182. - 'test/unit/query_test.rb'
  1183. # Cop supports --auto-correct.
  1184. # Configuration parameters: EnforcedStyle.
  1185. # SupportedStyles: line_count_dependent, lambda, literal
  1186. Style/Lambda:
  1187. Enabled: false
  1188. # Cop supports --auto-correct.
  1189. Style/LineEndConcatenation:
  1190. Enabled: false
  1191. # Cop supports --auto-correct.
  1192. # Configuration parameters: IgnoredMethods.
  1193. Style/MethodCallWithoutArgsParentheses:
  1194. Exclude:
  1195. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1196. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1197. Style/MissingRespondToMissing:
  1198. Exclude:
  1199. - 'lib/redmine/views/builders/structure.rb'
  1200. Style/MixinUsage:
  1201. Exclude:
  1202. - 'test/test_helper.rb'
  1203. # Cop supports --auto-correct.
  1204. Style/MultilineIfModifier:
  1205. Exclude:
  1206. - 'app/helpers/application_helper.rb'
  1207. - 'app/helpers/attachments_helper.rb'
  1208. - 'app/helpers/custom_fields_helper.rb'
  1209. - 'app/helpers/projects_helper.rb'
  1210. - 'app/helpers/reports_helper.rb'
  1211. - 'app/helpers/repositories_helper.rb'
  1212. - 'app/helpers/search_helper.rb'
  1213. - 'app/models/issue_query.rb'
  1214. - 'app/models/query.rb'
  1215. - 'app/models/time_entry_query.rb'
  1216. - 'app/views/common/feed.atom.builder'
  1217. - 'lib/redmine/access_keys.rb'
  1218. - 'lib/redmine/helpers/gantt.rb'
  1219. - 'lib/redmine/wiki_formatting.rb'
  1220. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1221. # Cop supports --auto-correct.
  1222. Style/MultilineTernaryOperator:
  1223. Exclude:
  1224. - 'lib/redmine/ciphering.rb'
  1225. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1226. Style/MultipleComparison:
  1227. Exclude:
  1228. - 'app/helpers/application_helper.rb'
  1229. - 'app/helpers/workflows_helper.rb'
  1230. - 'app/models/import.rb'
  1231. - 'app/models/version.rb'
  1232. - 'app/models/wiki_page.rb'
  1233. # Cop supports --auto-correct.
  1234. # Configuration parameters: EnforcedStyle.
  1235. # SupportedStyles: literals, strict
  1236. Style/MutableConstant:
  1237. Enabled: false
  1238. # Cop supports --auto-correct.
  1239. # Configuration parameters: EnforcedStyle.
  1240. # SupportedStyles: both, prefix, postfix
  1241. Style/NegatedIf:
  1242. Exclude:
  1243. - 'app/controllers/application_controller.rb'
  1244. - 'app/controllers/messages_controller.rb'
  1245. - 'app/helpers/repositories_helper.rb'
  1246. - 'app/models/attachment.rb'
  1247. - 'app/models/auth_source_ldap.rb'
  1248. - 'app/models/custom_field.rb'
  1249. - 'app/models/project.rb'
  1250. - 'app/models/repository/cvs.rb'
  1251. - 'lib/diff.rb'
  1252. - 'lib/redmine/codeset_util.rb'
  1253. - 'lib/redmine/thumbnail.rb'
  1254. # Cop supports --auto-correct.
  1255. Style/NegatedWhile:
  1256. Exclude:
  1257. - 'app/helpers/application_helper.rb'
  1258. # Cop supports --auto-correct.
  1259. # Configuration parameters: AllowedMethods.
  1260. # 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
  1261. Style/NestedParenthesizedCalls:
  1262. Exclude:
  1263. - 'lib/redmine/views/labelled_form_builder.rb'
  1264. # Cop supports --auto-correct.
  1265. Style/NestedTernaryOperator:
  1266. Exclude:
  1267. - 'app/helpers/queries_helper.rb'
  1268. - 'app/models/journal.rb'
  1269. # Cop supports --auto-correct.
  1270. # Configuration parameters: EnforcedStyle, MinBodyLength.
  1271. # SupportedStyles: skip_modifier_ifs, always
  1272. Style/Next:
  1273. Enabled: false
  1274. # Cop supports --auto-correct.
  1275. Style/Not:
  1276. Exclude:
  1277. - 'db/migrate/096_add_commit_access_permission.rb'
  1278. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1279. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1280. # Cop supports --auto-correct.
  1281. # Configuration parameters: EnforcedOctalStyle.
  1282. # SupportedOctalStyles: zero_with_o, zero_only
  1283. Style/NumericLiteralPrefix:
  1284. Exclude:
  1285. - 'test/unit/user_test.rb'
  1286. # Cop supports --auto-correct.
  1287. # Configuration parameters: Strict.
  1288. Style/NumericLiterals:
  1289. MinDigits: 9
  1290. # Cop supports --auto-correct.
  1291. # Configuration parameters: EnforcedStyle, IgnoredMethods.
  1292. # SupportedStyles: predicate, comparison
  1293. Style/NumericPredicate:
  1294. Enabled: false
  1295. # Configuration parameters: AllowedMethods.
  1296. # AllowedMethods: respond_to_missing?
  1297. Style/OptionalBooleanParameter:
  1298. Enabled: false
  1299. # Cop supports --auto-correct.
  1300. Style/OrAssignment:
  1301. Exclude:
  1302. - 'app/helpers/sort_helper.rb'
  1303. - 'app/models/repository/cvs.rb'
  1304. - 'app/models/user.rb'
  1305. - 'lib/redmine/helpers/diff.rb'
  1306. # Cop supports --auto-correct.
  1307. Style/ParallelAssignment:
  1308. Enabled: false
  1309. # Cop supports --auto-correct.
  1310. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
  1311. Style/ParenthesesAroundCondition:
  1312. Exclude:
  1313. - 'app/models/repository/subversion.rb'
  1314. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1315. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1316. # Cop supports --auto-correct.
  1317. # Configuration parameters: PreferredDelimiters.
  1318. Style/PercentLiteralDelimiters:
  1319. Enabled: false
  1320. # Cop supports --auto-correct.
  1321. Style/PerlBackrefs:
  1322. Enabled: false
  1323. # Cop supports --auto-correct.
  1324. # Configuration parameters: EnforcedStyle.
  1325. # SupportedStyles: short, verbose
  1326. Style/PreferredHashMethods:
  1327. Enabled: false
  1328. # Cop supports --auto-correct.
  1329. Style/Proc:
  1330. Enabled: false
  1331. # Cop supports --auto-correct.
  1332. Style/RedundantAssignment:
  1333. Exclude:
  1334. - 'app/models/mail_handler.rb'
  1335. - 'app/models/query.rb'
  1336. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1337. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1338. - 'lib/redmine/wiki_formatting.rb'
  1339. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  1340. # Cop supports --auto-correct.
  1341. Style/RedundantCondition:
  1342. Exclude:
  1343. - 'app/controllers/messages_controller.rb'
  1344. - 'app/controllers/previews_controller.rb'
  1345. - 'app/models/issue.rb'
  1346. # Cop supports --auto-correct.
  1347. Style/RedundantConditional:
  1348. Exclude:
  1349. - 'app/controllers/workflows_controller.rb'
  1350. - 'app/helpers/application_helper.rb'
  1351. - 'app/models/enumeration.rb'
  1352. - 'lib/redmine/field_format.rb'
  1353. # Cop supports --auto-correct.
  1354. Style/RedundantInterpolation:
  1355. Exclude:
  1356. - 'app/helpers/my_helper.rb'
  1357. - 'app/helpers/queries_helper.rb'
  1358. - 'app/models/query.rb'
  1359. - 'app/views/common/feed.atom.builder'
  1360. - 'app/views/journals/index.builder'
  1361. - 'lib/redmine/helpers/time_report.rb'
  1362. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1363. - 'lib/redmine/wiki_formatting.rb'
  1364. - 'test/functional/versions_controller_test.rb'
  1365. - 'test/functional/watchers_controller_test.rb'
  1366. # Cop supports --auto-correct.
  1367. Style/RedundantParentheses:
  1368. Exclude:
  1369. - 'app/controllers/search_controller.rb'
  1370. - 'app/models/enumeration.rb'
  1371. - 'app/models/principal.rb'
  1372. - 'app/models/repository/cvs.rb'
  1373. - 'lib/redmine/field_format.rb'
  1374. - 'lib/redmine/platform.rb'
  1375. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1376. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1377. - 'test/unit/project_test.rb'
  1378. - 'test/unit/user_test.rb'
  1379. - 'test/unit/version_test.rb'
  1380. # Cop supports --auto-correct.
  1381. Style/RedundantRegexpCharacterClass:
  1382. Exclude:
  1383. - 'app/helpers/application_helper.rb'
  1384. # Cop supports --auto-correct.
  1385. Style/RedundantRegexpEscape:
  1386. Enabled: false
  1387. # Cop supports --auto-correct.
  1388. # Configuration parameters: AllowMultipleReturnValues.
  1389. Style/RedundantReturn:
  1390. Enabled: false
  1391. # Cop supports --auto-correct.
  1392. Style/RedundantSelf:
  1393. Enabled: false
  1394. # Cop supports --auto-correct.
  1395. Style/RedundantSelfAssignment:
  1396. Exclude:
  1397. - 'lib/redmine/menu_manager.rb'
  1398. # Cop supports --auto-correct.
  1399. Style/RedundantSort:
  1400. Exclude:
  1401. - 'app/models/import.rb'
  1402. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1403. - 'test/functional/issues_controller_test.rb'
  1404. - 'test/unit/member_test.rb'
  1405. # Cop supports --auto-correct.
  1406. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  1407. # SupportedStyles: slashes, percent_r, mixed
  1408. Style/RegexpLiteral:
  1409. Enabled: false
  1410. # Cop supports --auto-correct.
  1411. Style/RescueModifier:
  1412. Exclude:
  1413. - 'app/helpers/avatars_helper.rb'
  1414. - 'app/models/custom_field.rb'
  1415. - 'app/models/import.rb'
  1416. - 'app/models/query.rb'
  1417. - 'app/models/repository.rb'
  1418. - 'lib/redmine/export/csv.rb'
  1419. - 'lib/redmine/field_format.rb'
  1420. - 'lib/redmine/search.rb'
  1421. - 'lib/redmine/wiki_formatting.rb'
  1422. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  1423. # Cop supports --auto-correct.
  1424. # Configuration parameters: EnforcedStyle.
  1425. # SupportedStyles: implicit, explicit
  1426. Style/RescueStandardError:
  1427. Enabled: false
  1428. # Cop supports --auto-correct.
  1429. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
  1430. # AllowedMethods: present?, blank?, presence, try, try!
  1431. Style/SafeNavigation:
  1432. Enabled: false
  1433. # Cop supports --auto-correct.
  1434. Style/SelfAssignment:
  1435. Exclude:
  1436. - 'app/controllers/repositories_controller.rb'
  1437. - 'app/helpers/reports_helper.rb'
  1438. - 'app/models/auth_source_ldap.rb'
  1439. - 'app/models/project.rb'
  1440. - 'app/models/query.rb'
  1441. - 'app/models/repository/cvs.rb'
  1442. - 'lib/redmine/helpers/calendar.rb'
  1443. - 'lib/redmine/helpers/gantt.rb'
  1444. - 'lib/redmine/helpers/time_report.rb'
  1445. # Cop supports --auto-correct.
  1446. # Configuration parameters: AllowAsExpressionSeparator.
  1447. Style/Semicolon:
  1448. Exclude:
  1449. - 'app/controllers/account_controller.rb'
  1450. - 'app/controllers/context_menus_controller.rb'
  1451. - 'app/controllers/journals_controller.rb'
  1452. - 'app/controllers/messages_controller.rb'
  1453. - 'app/controllers/repositories_controller.rb'
  1454. - 'app/controllers/search_controller.rb'
  1455. - 'app/models/issue.rb'
  1456. - 'app/models/issue_query.rb'
  1457. - 'app/models/journal.rb'
  1458. - 'app/models/mail_handler.rb'
  1459. - 'app/models/query.rb'
  1460. - 'lib/redmine/configuration.rb'
  1461. - 'lib/redmine/i18n.rb'
  1462. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1463. - 'lib/redmine/sort_criteria.rb'
  1464. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1465. # Cop supports --auto-correct.
  1466. # Configuration parameters: AllowIfMethodIsEmpty.
  1467. Style/SingleLineMethods:
  1468. Enabled: false
  1469. # Configuration parameters: AllowModifier.
  1470. Style/SoleNestedConditional:
  1471. Exclude:
  1472. - 'app/controllers/application_controller.rb'
  1473. - 'app/controllers/journals_controller.rb'
  1474. - 'app/controllers/repositories_controller.rb'
  1475. - 'app/controllers/wiki_controller.rb'
  1476. - 'app/models/board.rb'
  1477. - 'app/models/changeset.rb'
  1478. - 'app/models/issue.rb'
  1479. - 'app/models/issue_import.rb'
  1480. - 'app/models/issue_relation.rb'
  1481. - 'app/models/mail_handler.rb'
  1482. - 'app/models/principal.rb'
  1483. - 'app/models/project.rb'
  1484. - 'app/models/query.rb'
  1485. - 'app/models/time_entry.rb'
  1486. - 'app/models/token.rb'
  1487. - 'app/models/user_import.rb'
  1488. - 'app/models/version.rb'
  1489. - 'app/models/watcher.rb'
  1490. - 'app/models/wiki_page.rb'
  1491. - 'lib/redmine/core_ext/active_record.rb'
  1492. # Cop supports --auto-correct.
  1493. # Configuration parameters: .
  1494. # SupportedStyles: use_perl_names, use_english_names
  1495. Style/SpecialGlobalVars:
  1496. EnforcedStyle: use_perl_names
  1497. # Cop supports --auto-correct.
  1498. Style/StderrPuts:
  1499. Exclude:
  1500. - 'config/environment.rb'
  1501. - 'config/initializers/10-patches.rb'
  1502. # Cop supports --auto-correct.
  1503. Style/StringConcatenation:
  1504. Enabled: false
  1505. # Cop supports --auto-correct.
  1506. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  1507. # SupportedStyles: single_quotes, double_quotes
  1508. Style/StringLiterals:
  1509. Enabled: false
  1510. # Cop supports --auto-correct.
  1511. # Configuration parameters: EnforcedStyle.
  1512. # SupportedStyles: single_quotes, double_quotes
  1513. Style/StringLiteralsInInterpolation:
  1514. Exclude:
  1515. - 'app/models/issue_query.rb'
  1516. - 'config/environment.rb'
  1517. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1518. - 'lib/redmine/wiki_formatting.rb'
  1519. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1520. - 'test/unit/member_test.rb'
  1521. # Cop supports --auto-correct.
  1522. Style/StructInheritance:
  1523. Exclude:
  1524. - 'lib/redmine/notifiable.rb'
  1525. - 'lib/redmine/sudo_mode.rb'
  1526. # Cop supports --auto-correct.
  1527. # Configuration parameters: MinSize.
  1528. # SupportedStyles: percent, brackets
  1529. Style/SymbolArray:
  1530. EnforcedStyle: brackets
  1531. # Cop supports --auto-correct.
  1532. # Configuration parameters: IgnoredMethods.
  1533. # IgnoredMethods: respond_to, define_method
  1534. Style/SymbolProc:
  1535. Enabled: false
  1536. # Cop supports --auto-correct.
  1537. # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
  1538. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
  1539. Style/TernaryParentheses:
  1540. Enabled: false
  1541. # Cop supports --auto-correct.
  1542. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
  1543. # 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
  1544. Style/TrivialAccessors:
  1545. Exclude:
  1546. - 'app/models/issue.rb'
  1547. - 'app/models/journal.rb'
  1548. - 'app/models/query.rb'
  1549. - 'lib/redmine/access_control.rb'
  1550. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1551. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1552. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1553. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1554. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1555. # Cop supports --auto-correct.
  1556. Style/UnlessElse:
  1557. Exclude:
  1558. - 'app/controllers/auth_sources_controller.rb'
  1559. - 'app/controllers/trackers_controller.rb'
  1560. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1561. - 'lib/redmine/unified_diff.rb'
  1562. # Cop supports --auto-correct.
  1563. Style/VariableInterpolation:
  1564. Exclude:
  1565. - 'lib/redmine/configuration.rb'
  1566. # Cop supports --auto-correct.
  1567. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
  1568. # SupportedStyles: percent, brackets
  1569. Style/WordArray:
  1570. Enabled: false
  1571. # Cop supports --auto-correct.
  1572. Style/ZeroLengthPredicate:
  1573. Exclude:
  1574. - 'app/models/import.rb'
  1575. - 'app/models/mail_handler.rb'
  1576. - 'app/models/user.rb'
  1577. - 'lib/redmine/field_format.rb'
  1578. - 'lib/redmine/unified_diff.rb'
  1579. - 'lib/redmine/wiki_formatting/macros.rb'
  1580. - 'test/functional/custom_fields_controller_test.rb'
  1581. - 'test/object_helpers.rb'
  1582. - 'test/unit/activity_test.rb'
  1583. - 'test/unit/custom_field_test.rb'
  1584. # Cop supports --auto-correct.
  1585. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  1586. # URISchemes: http, https
  1587. Layout/LineLength:
  1588. Max: 461