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

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