Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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