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

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