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

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