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

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