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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
  3. # using RuboCop version 0.75.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/AlignArguments:
  12. Enabled: false
  13. # Cop supports --auto-correct.
  14. # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
  15. # SupportedHashRocketStyles: key, separator, table
  16. # SupportedColonStyles: key, separator, table
  17. # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
  18. Layout/AlignHash:
  19. Enabled: false
  20. # Cop supports --auto-correct.
  21. # Configuration parameters: EnforcedStyleAlignWith.
  22. # SupportedStylesAlignWith: either, start_of_block, start_of_line
  23. Layout/BlockAlignment:
  24. Exclude:
  25. - 'app/helpers/queries_helper.rb'
  26. - 'app/models/principal.rb'
  27. - 'app/models/project.rb'
  28. - 'app/models/time_entry.rb'
  29. # Cop supports --auto-correct.
  30. Layout/BlockEndNewline:
  31. Exclude:
  32. - 'app/controllers/auth_sources_controller.rb'
  33. - 'app/controllers/files_controller.rb'
  34. - 'app/models/message.rb'
  35. # Cop supports --auto-correct.
  36. # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
  37. # SupportedStyles: case, end
  38. Layout/CaseIndentation:
  39. Exclude:
  40. - 'config/initializers/10-patches.rb'
  41. # Cop supports --auto-correct.
  42. Layout/ClosingHeredocIndentation:
  43. Exclude:
  44. - 'test/integration/lib/redmine/hook_test.rb'
  45. - 'test/unit/lib/redmine/unified_diff_test.rb'
  46. - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
  47. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  48. - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
  49. - 'test/unit/lib/redmine/wiki_formatting_test.rb'
  50. # Cop supports --auto-correct.
  51. Layout/ClosingParenthesisIndentation:
  52. Enabled: false
  53. # Cop supports --auto-correct.
  54. # Configuration parameters: EnforcedStyle.
  55. # SupportedStyles: leading, trailing
  56. Layout/DotPosition:
  57. Enabled: false
  58. # Cop supports --auto-correct.
  59. Layout/EmptyLineAfterGuardClause:
  60. Enabled: false
  61. # Cop supports --auto-correct.
  62. Layout/EmptyLines:
  63. Exclude:
  64. - 'config/routes.rb'
  65. - 'db/migrate/001_setup.rb'
  66. - 'lib/redmine/sudo_mode.rb'
  67. - 'test/helpers/application_helper_test.rb'
  68. # Cop supports --auto-correct.
  69. # Configuration parameters: EnforcedStyle.
  70. # SupportedStyles: around, only_before
  71. Layout/EmptyLinesAroundAccessModifier:
  72. Exclude:
  73. - 'app/controllers/previews_controller.rb'
  74. - 'config/initializers/10-patches.rb'
  75. - 'lib/redmine/syntax_highlighting.rb'
  76. # Cop supports --auto-correct.
  77. # Configuration parameters: EnforcedStyle.
  78. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
  79. Layout/EmptyLinesAroundClassBody:
  80. Enabled: false
  81. # Cop supports --auto-correct.
  82. Layout/EmptyLinesAroundExceptionHandlingKeywords:
  83. Exclude:
  84. - 'app/controllers/activities_controller.rb'
  85. - 'app/controllers/imports_controller.rb'
  86. - 'app/controllers/wiki_controller.rb'
  87. - 'test/functional/settings_controller_test.rb'
  88. # Cop supports --auto-correct.
  89. Layout/EmptyLinesAroundMethodBody:
  90. Exclude:
  91. - 'app/models/query.rb'
  92. - 'db/migrate/001_setup.rb'
  93. - 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
  94. - 'test/functional/journals_controller_test.rb'
  95. - 'test/functional/users_controller_test.rb'
  96. - 'test/integration/account_test.rb'
  97. - 'test/unit/attachment_test.rb'
  98. - 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
  99. - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
  100. - 'test/unit/lib/redmine/unified_diff_test.rb'
  101. # Cop supports --auto-correct.
  102. # Configuration parameters: EnforcedStyle.
  103. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
  104. Layout/EmptyLinesAroundModuleBody:
  105. Enabled: false
  106. # Cop supports --auto-correct.
  107. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
  108. Layout/ExtraSpacing:
  109. Enabled: false
  110. # Cop supports --auto-correct.
  111. # Configuration parameters: IndentationWidth.
  112. Layout/IndentAssignment:
  113. Exclude:
  114. - 'app/helpers/application_helper.rb'
  115. - 'test/unit/lib/redmine/helpers/gantt_test.rb'
  116. # Cop supports --auto-correct.
  117. # Configuration parameters: EnforcedStyle, IndentationWidth.
  118. # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
  119. Layout/IndentFirstArgument:
  120. Enabled: false
  121. # Cop supports --auto-correct.
  122. # Configuration parameters: EnforcedStyle, IndentationWidth.
  123. # SupportedStyles: special_inside_parentheses, consistent, align_brackets
  124. Layout/IndentFirstArrayElement:
  125. Enabled: false
  126. # Cop supports --auto-correct.
  127. # Configuration parameters: EnforcedStyle, IndentationWidth.
  128. # SupportedStyles: special_inside_parentheses, consistent, align_braces
  129. Layout/IndentFirstHashElement:
  130. Enabled: false
  131. # Cop supports --auto-correct.
  132. # Configuration parameters: EnforcedStyle.
  133. # SupportedStyles: squiggly, active_support, powerpack, unindent
  134. Layout/IndentHeredoc:
  135. Exclude:
  136. - 'test/integration/lib/redmine/hook_test.rb'
  137. - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
  138. - 'test/unit/lib/redmine/unified_diff_test.rb'
  139. - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
  140. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  141. - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
  142. - 'test/unit/lib/redmine/wiki_formatting_test.rb'
  143. # Cop supports --auto-correct.
  144. # Configuration parameters: EnforcedStyle.
  145. # SupportedStyles: normal, indented_internal_methods
  146. Layout/IndentationConsistency:
  147. Exclude:
  148. - 'test/mocks/open_id_authentication_mock.rb'
  149. # Cop supports --auto-correct.
  150. # Configuration parameters: Width, IgnoredPatterns.
  151. Layout/IndentationWidth:
  152. Enabled: false
  153. # Cop supports --auto-correct.
  154. # Configuration parameters: EnforcedStyle.
  155. # SupportedStyles: symmetrical, new_line, same_line
  156. Layout/MultilineArrayBraceLayout:
  157. Exclude:
  158. - 'app/helpers/projects_helper.rb'
  159. - 'app/helpers/settings_helper.rb'
  160. - 'app/helpers/users_helper.rb'
  161. # Cop supports --auto-correct.
  162. Layout/MultilineBlockLayout:
  163. Exclude:
  164. - 'app/controllers/auth_sources_controller.rb'
  165. - 'app/controllers/auto_completes_controller.rb'
  166. - 'app/models/message.rb'
  167. # Cop supports --auto-correct.
  168. # Configuration parameters: EnforcedStyle.
  169. # SupportedStyles: symmetrical, new_line, same_line
  170. Layout/MultilineHashBraceLayout:
  171. Enabled: false
  172. # Cop supports --auto-correct.
  173. # Configuration parameters: EnforcedStyle.
  174. # SupportedStyles: symmetrical, new_line, same_line
  175. Layout/MultilineMethodCallBraceLayout:
  176. Enabled: false
  177. # Cop supports --auto-correct.
  178. # Configuration parameters: EnforcedStyle, IndentationWidth.
  179. # SupportedStyles: aligned, indented, indented_relative_to_receiver
  180. Layout/MultilineMethodCallIndentation:
  181. Enabled: false
  182. # Cop supports --auto-correct.
  183. # Configuration parameters: EnforcedStyle, IndentationWidth.
  184. # SupportedStyles: aligned, indented
  185. Layout/MultilineOperationIndentation:
  186. Enabled: false
  187. # Cop supports --auto-correct.
  188. Layout/RescueEnsureAlignment:
  189. Exclude:
  190. - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
  191. # Cop supports --auto-correct.
  192. Layout/SpaceAfterComma:
  193. Enabled: false
  194. # Cop supports --auto-correct.
  195. Layout/SpaceAfterNot:
  196. Enabled: false
  197. # Cop supports --auto-correct.
  198. # Configuration parameters: EnforcedStyle.
  199. # SupportedStyles: space, no_space
  200. Layout/SpaceAroundEqualsInParameterDefault:
  201. Enabled: false
  202. # Cop supports --auto-correct.
  203. # Configuration parameters: AllowForAlignment.
  204. Layout/SpaceAroundOperators:
  205. Enabled: false
  206. # Cop supports --auto-correct.
  207. Layout/SpaceBeforeComma:
  208. Exclude:
  209. - 'test/mocks/open_id_authentication_mock.rb'
  210. # Cop supports --auto-correct.
  211. # Configuration parameters: AllowForAlignment.
  212. Layout/SpaceBeforeFirstArg:
  213. Exclude:
  214. - 'test/helpers/issues_helper_test.rb'
  215. - 'test/helpers/search_helper_test.rb'
  216. - 'test/unit/lib/redmine/menu_manager_test.rb'
  217. # Cop supports --auto-correct.
  218. Layout/SpaceBeforeSemicolon:
  219. Exclude:
  220. - 'app/models/user_preference.rb'
  221. - 'config/initializers/10-patches.rb'
  222. # Cop supports --auto-correct.
  223. # Configuration parameters: EnforcedStyle.
  224. # SupportedStyles: require_no_space, require_space
  225. Layout/SpaceInLambdaLiteral:
  226. Exclude:
  227. - 'app/helpers/application_helper.rb'
  228. # Cop supports --auto-correct.
  229. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  230. # SupportedStyles: space, no_space, compact
  231. # SupportedStylesForEmptyBrackets: space, no_space
  232. Layout/SpaceInsideArrayLiteralBrackets:
  233. Exclude:
  234. - 'app/controllers/projects_controller.rb'
  235. - 'app/helpers/timelog_helper.rb'
  236. - 'app/models/query.rb'
  237. - 'lib/diff.rb'
  238. - 'lib/redmine/i18n.rb'
  239. - 'test/mocks/open_id_authentication_mock.rb'
  240. - 'test/unit/mailer_localisation_test.rb'
  241. - 'test/unit/mailer_test.rb'
  242. - 'test/unit/search_test.rb'
  243. # Cop supports --auto-correct.
  244. # Configuration parameters: EnforcedStyle.
  245. # SupportedStyles: space, no_space
  246. Layout/SpaceInsideParens:
  247. Enabled: false
  248. # Cop supports --auto-correct.
  249. Layout/SpaceInsidePercentLiteralDelimiters:
  250. Exclude:
  251. - 'app/models/project.rb'
  252. # Cop supports --auto-correct.
  253. # Configuration parameters: EnforcedStyle.
  254. # SupportedStyles: space, no_space
  255. Layout/SpaceInsideStringInterpolation:
  256. Exclude:
  257. - 'app/helpers/application_helper.rb'
  258. - 'app/helpers/workflows_helper.rb'
  259. - 'app/models/issue_query.rb'
  260. - 'app/models/mail_handler.rb'
  261. - 'lib/redmine/core_ext/string/inflections.rb'
  262. - 'test/integration/admin_test.rb'
  263. Lint/AmbiguousBlockAssociation:
  264. Enabled: false
  265. Lint/AmbiguousOperator:
  266. Exclude:
  267. - 'app/controllers/application_controller.rb'
  268. - 'app/helpers/application_helper.rb'
  269. - 'test/unit/custom_field_test.rb'
  270. - 'test/unit/member_test.rb'
  271. Lint/AmbiguousRegexpLiteral:
  272. Enabled: false
  273. # Configuration parameters: AllowSafeAssignment.
  274. Lint/AssignmentInCondition:
  275. Enabled: false
  276. # Cop supports --auto-correct.
  277. Lint/DeprecatedClassMethods:
  278. Exclude:
  279. - 'Gemfile'
  280. - 'app/models/import.rb'
  281. - 'config/application.rb'
  282. - 'config/boot.rb'
  283. - 'config/routes.rb'
  284. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  285. - 'lib/redmine/thumbnail.rb'
  286. - 'lib/redmine/utils.rb'
  287. - 'test/functional/issues_controller_test.rb'
  288. - 'test/unit/attachment_test.rb'
  289. - 'test/unit/issue_import_test.rb'
  290. Lint/EmptyWhen:
  291. Exclude:
  292. - 'app/controllers/issues_controller.rb'
  293. - 'app/controllers/wiki_controller.rb'
  294. # Configuration parameters: AllowComments.
  295. Lint/HandleExceptions:
  296. Exclude:
  297. - 'app/controllers/activities_controller.rb'
  298. - 'app/models/import.rb'
  299. - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
  300. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  301. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  302. Lint/InterpolationCheck:
  303. Exclude:
  304. - 'app/models/user.rb'
  305. # Cop supports --auto-correct.
  306. Lint/LiteralInInterpolation:
  307. Exclude:
  308. - 'test/unit/mail_handler_test.rb'
  309. Lint/Loop:
  310. Exclude:
  311. - 'lib/redmine/helpers/gantt.rb'
  312. Lint/ParenthesesAsGroupedExpression:
  313. Exclude:
  314. - 'lib/redmine/field_format.rb'
  315. - 'test/functional/account_controller_test.rb'
  316. - 'test/functional/email_addresses_controller_test.rb'
  317. - 'test/functional/my_controller_test.rb'
  318. - 'test/functional/settings_controller_test.rb'
  319. - 'test/functional/users_controller_test.rb'
  320. - 'test/helpers/application_helper_test.rb'
  321. - 'test/unit/attachment_test.rb'
  322. - 'test/unit/lib/redmine/export/pdf_test.rb'
  323. # Cop supports --auto-correct.
  324. Lint/SendWithMixinArgument:
  325. Exclude:
  326. - 'lib/redmine/acts/positioned.rb'
  327. - 'test/object_helpers.rb'
  328. Lint/ShadowingOuterLocalVariable:
  329. Enabled: false
  330. # Cop supports --auto-correct.
  331. Lint/StringConversionInInterpolation:
  332. Exclude:
  333. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  334. - 'test/functional/repositories_filesystem_controller_test.rb'
  335. - 'test/functional/repositories_git_controller_test.rb'
  336. - 'test/functional/repositories_mercurial_controller_test.rb'
  337. # Cop supports --auto-correct.
  338. Lint/UnifiedInteger:
  339. Exclude:
  340. - 'test/unit/query_test.rb'
  341. # Cop supports --auto-correct.
  342. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
  343. Lint/UnusedBlockArgument:
  344. Enabled: false
  345. # Cop supports --auto-correct.
  346. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
  347. Lint/UnusedMethodArgument:
  348. Enabled: false
  349. Lint/UriEscapeUnescape:
  350. Exclude:
  351. - 'lib/redmine/field_format.rb'
  352. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  353. - 'test/functional/wiki_controller_test.rb'
  354. Lint/UselessAssignment:
  355. Enabled: false
  356. # Configuration parameters: CheckForMethodsWithNoSideEffects.
  357. Lint/Void:
  358. Exclude:
  359. - 'app/models/query.rb'
  360. - 'app/models/time_entry.rb'
  361. - 'app/models/wiki_content_version.rb'
  362. - 'lib/redmine/unified_diff.rb'
  363. Naming/ConstantName:
  364. Exclude:
  365. - 'app/models/document_category.rb'
  366. - 'app/models/issue_priority.rb'
  367. - 'app/models/time_entry_activity.rb'
  368. - 'lib/redmine/helpers/gantt.rb'
  369. # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
  370. # 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
  371. Naming/FileName:
  372. Exclude:
  373. - 'config/initializers/00-core_plugins.rb'
  374. - 'config/initializers/10-patches.rb'
  375. - 'config/initializers/20-mime_types.rb'
  376. - 'config/initializers/30-redmine.rb'
  377. # Configuration parameters: EnforcedStyleForLeadingUnderscores.
  378. # SupportedStylesForLeadingUnderscores: disallowed, required, optional
  379. Naming/MemoizedInstanceVariableName:
  380. Exclude:
  381. - 'app/controllers/email_addresses_controller.rb'
  382. - 'app/controllers/users_controller.rb'
  383. - 'app/controllers/workflows_controller.rb'
  384. - 'app/models/issue.rb'
  385. - 'app/models/project.rb'
  386. - 'app/models/query.rb'
  387. - 'app/models/role.rb'
  388. - 'lib/redmine/field_format.rb'
  389. - 'lib/redmine/helpers/calendar.rb'
  390. - 'lib/redmine/search.rb'
  391. # Configuration parameters: EnforcedStyle, IgnoredPatterns.
  392. # SupportedStyles: snake_case, camelCase
  393. Naming/MethodName:
  394. Exclude:
  395. - 'lib/redmine/export/pdf.rb'
  396. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  397. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  398. - 'test/helpers/application_helper_test.rb'
  399. # Cop supports --auto-correct.
  400. # Configuration parameters: PreferredName.
  401. Naming/RescuedExceptionsVariableName:
  402. Exclude:
  403. - 'app/models/user.rb'
  404. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  405. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  406. # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
  407. # AllowedNames: io, id, to, by, on, in, at, ip, db
  408. Naming/UncommunicativeMethodParamName:
  409. Enabled: false
  410. # Configuration parameters: EnforcedStyle.
  411. # SupportedStyles: snake_case, camelCase
  412. Naming/VariableName:
  413. Exclude:
  414. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  415. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  416. # Configuration parameters: EnforcedStyle.
  417. # SupportedStyles: snake_case, normalcase, non_integer
  418. Naming/VariableNumber:
  419. Exclude:
  420. - 'test/functional/versions_controller_test.rb'
  421. - 'test/helpers/application_helper_test.rb'
  422. - 'test/unit/lib/redmine/export/pdf_test.rb'
  423. - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
  424. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  425. - 'test/unit/project_test.rb'
  426. Performance/FixedSize:
  427. Exclude:
  428. - 'test/integration/api_test/issues_test.rb'
  429. - 'test/integration/attachments_test.rb'
  430. # Cop supports --auto-correct.
  431. Performance/RedundantMatch:
  432. Exclude:
  433. - 'app/models/issue_relation.rb'
  434. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  435. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  436. # Cop supports --auto-correct.
  437. # Configuration parameters: MaxKeyValuePairs.
  438. Performance/RedundantMerge:
  439. Exclude:
  440. - 'app/controllers/issues_controller.rb'
  441. - 'app/helpers/application_helper.rb'
  442. - 'app/helpers/avatars_helper.rb'
  443. - 'app/helpers/custom_fields_helper.rb'
  444. - 'app/helpers/workflows_helper.rb'
  445. - 'app/models/auth_source_ldap.rb'
  446. - 'app/models/principal.rb'
  447. - 'lib/redmine/access_control.rb'
  448. - 'test/functional/imports_controller_test.rb'
  449. - 'test/unit/issue_import_test.rb'
  450. - 'test/unit/time_entry_import_test.rb'
  451. # Cop supports --auto-correct.
  452. Performance/StringReplacement:
  453. Exclude:
  454. - 'app/helpers/application_helper.rb'
  455. - 'app/helpers/imports_helper.rb'
  456. - 'app/helpers/settings_helper.rb'
  457. - 'lib/redmine/core_ext/string/conversions.rb'
  458. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  459. - 'test/helpers/application_helper_test.rb'
  460. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  461. # Configuration parameters: Include.
  462. # Include: app/models/**/*.rb
  463. Rails/ActiveRecordOverride:
  464. Exclude:
  465. - 'app/models/email_address.rb'
  466. - 'app/models/issue.rb'
  467. - 'app/models/journal.rb'
  468. - 'app/models/member.rb'
  469. # Cop supports --auto-correct.
  470. Rails/ApplicationRecord:
  471. Enabled: false
  472. # Cop supports --auto-correct.
  473. # Configuration parameters: Include.
  474. # Include: **/test/**/*
  475. Rails/AssertNot:
  476. Enabled: false
  477. # Cop supports --auto-correct.
  478. # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
  479. Rails/Blank:
  480. Exclude:
  481. - 'app/controllers/application_controller.rb'
  482. - 'app/controllers/context_menus_controller.rb'
  483. - 'app/controllers/repositories_controller.rb'
  484. - 'app/controllers/watchers_controller.rb'
  485. - 'app/helpers/queries_helper.rb'
  486. - 'app/helpers/repositories_helper.rb'
  487. - 'app/models/mailer.rb'
  488. - 'app/models/query.rb'
  489. - 'app/models/repository/git.rb'
  490. - 'app/models/role.rb'
  491. - 'lib/redmine/field_format.rb'
  492. - 'lib/redmine/wiki_formatting/macros.rb'
  493. # Configuration parameters: Include.
  494. # Include: db/migrate/*.rb
  495. Rails/CreateTableWithTimestamps:
  496. Enabled: false
  497. # Configuration parameters: EnforcedStyle.
  498. # SupportedStyles: strict, flexible
  499. Rails/Date:
  500. Enabled: false
  501. # Cop supports --auto-correct.
  502. # Configuration parameters: EnforceForPrefixed.
  503. Rails/Delegate:
  504. Exclude:
  505. - 'app/models/changeset.rb'
  506. - 'app/models/custom_field.rb'
  507. - 'app/models/custom_field_enumeration.rb'
  508. - 'app/models/custom_field_value.rb'
  509. - 'app/models/custom_value.rb'
  510. - 'app/models/group.rb'
  511. - 'app/models/message.rb'
  512. - 'app/models/repository.rb'
  513. - 'app/models/repository/git.rb'
  514. - 'app/models/time_entry_activity.rb'
  515. - 'app/models/wiki_content.rb'
  516. - 'app/models/wiki_content_version.rb'
  517. - 'lib/redmine/menu_manager.rb'
  518. # Cop supports --auto-correct.
  519. # Configuration parameters: Whitelist.
  520. # Whitelist: find_by_sql
  521. Rails/DynamicFindBy:
  522. Enabled: false
  523. # Configuration parameters: Include.
  524. # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
  525. Rails/Exit:
  526. Exclude:
  527. - 'lib/**/*.rake'
  528. - 'config/environment.rb'
  529. - 'config/initializers/10-patches.rb'
  530. - 'config/routes.rb'
  531. # Configuration parameters: EnforcedStyle.
  532. # SupportedStyles: slashes, arguments
  533. Rails/FilePath:
  534. Enabled: false
  535. # Cop supports --auto-correct.
  536. # Configuration parameters: Include.
  537. # Include: app/models/**/*.rb
  538. Rails/FindBy:
  539. Exclude:
  540. - 'app/models/attachment.rb'
  541. - 'app/models/enumeration.rb'
  542. - 'app/models/issue_import.rb'
  543. - 'app/models/repository.rb'
  544. - 'app/models/repository/cvs.rb'
  545. - 'app/models/repository/git.rb'
  546. - 'app/models/repository/mercurial.rb'
  547. - 'app/models/time_entry_query.rb'
  548. - 'app/models/user.rb'
  549. - 'app/models/wiki.rb'
  550. - 'app/models/wiki_content_version.rb'
  551. # Cop supports --auto-correct.
  552. # Configuration parameters: Include.
  553. # Include: app/models/**/*.rb
  554. Rails/FindEach:
  555. Exclude:
  556. - 'app/models/auth_source.rb'
  557. - 'app/models/group.rb'
  558. - 'app/models/issue.rb'
  559. - 'app/models/issue_status.rb'
  560. - 'app/models/project.rb'
  561. - 'app/models/query.rb'
  562. - 'app/models/repository.rb'
  563. - 'app/models/setting.rb'
  564. - 'app/models/watcher.rb'
  565. - 'app/models/wiki_page.rb'
  566. # Configuration parameters: Include.
  567. # Include: app/models/**/*.rb
  568. Rails/HasAndBelongsToMany:
  569. Exclude:
  570. - 'app/models/changeset.rb'
  571. - 'app/models/custom_field.rb'
  572. - 'app/models/group.rb'
  573. - 'app/models/issue.rb'
  574. - 'app/models/issue_custom_field.rb'
  575. - 'app/models/project.rb'
  576. - 'app/models/query.rb'
  577. - 'app/models/role.rb'
  578. - 'app/models/tracker.rb'
  579. - 'app/models/user.rb'
  580. # Configuration parameters: Include.
  581. # Include: app/models/**/*.rb
  582. Rails/HasManyOrHasOneDependent:
  583. Exclude:
  584. - 'app/models/auth_source.rb'
  585. - 'app/models/document_category.rb'
  586. - 'app/models/issue_priority.rb'
  587. - 'app/models/issue_status.rb'
  588. - 'app/models/project.rb'
  589. - 'app/models/time_entry_activity.rb'
  590. - 'app/models/tracker.rb'
  591. - 'app/models/wiki.rb'
  592. # Cop supports --auto-correct.
  593. # Configuration parameters: EnforcedStyle.
  594. # SupportedStyles: numeric, symbolic
  595. Rails/HttpStatus:
  596. Exclude:
  597. - 'app/controllers/mail_handler_controller.rb'
  598. - 'app/controllers/sys_controller.rb'
  599. - 'app/controllers/watchers_controller.rb'
  600. # Configuration parameters: Include.
  601. # Include: app/models/**/*.rb
  602. Rails/InverseOf:
  603. Enabled: false
  604. # Configuration parameters: Include.
  605. # Include: app/controllers/**/*.rb
  606. Rails/LexicallyScopedActionFilter:
  607. Exclude:
  608. - 'app/controllers/projects_controller.rb'
  609. # Cop supports --auto-correct.
  610. Rails/LinkToBlank:
  611. Exclude:
  612. - 'app/helpers/avatars_helper.rb'
  613. # Configuration parameters: Include.
  614. # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
  615. Rails/Output:
  616. Exclude:
  617. - 'app/models/mail_handler.rb'
  618. - 'config/routes.rb'
  619. - 'lib/redmine/unified_diff.rb'
  620. Rails/OutputSafety:
  621. Enabled: false
  622. # Cop supports --auto-correct.
  623. Rails/PluralizationGrammar:
  624. Exclude:
  625. - 'lib/redmine/helpers/time_report.rb'
  626. - 'test/functional/gantts_controller_test.rb'
  627. - 'test/unit/mailer_test.rb'
  628. - 'test/unit/query_test.rb'
  629. # Cop supports --auto-correct.
  630. Rails/Presence:
  631. Exclude:
  632. - 'app/controllers/activities_controller.rb'
  633. - 'app/helpers/application_helper.rb'
  634. - 'app/models/repository.rb'
  635. - 'lib/redmine/codeset_util.rb'
  636. - 'lib/redmine/i18n.rb'
  637. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  638. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  639. - 'lib/redmine/scm/adapters/git_adapter.rb'
  640. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  641. - 'lib/redmine/sort_criteria.rb'
  642. # Cop supports --auto-correct.
  643. # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
  644. Rails/Present:
  645. Enabled: false
  646. # Cop supports --auto-correct.
  647. # Configuration parameters: Include.
  648. # Include: app/models/**/*.rb
  649. Rails/ReadWriteAttribute:
  650. Enabled: false
  651. Rails/ReflectionClassName:
  652. Exclude:
  653. - 'lib/redmine/nested_set/issue_nested_set.rb'
  654. - 'lib/redmine/nested_set/project_nested_set.rb'
  655. # Cop supports --auto-correct.
  656. # Configuration parameters: Include.
  657. # Include: **/test/**/*
  658. Rails/RefuteMethods:
  659. Exclude:
  660. - 'test/functional/projects_controller_test.rb'
  661. - 'test/functional/wiki_controller_test.rb'
  662. - 'test/integration/account_test.rb'
  663. - 'test/integration/api_test/my_test.rb'
  664. - 'test/unit/attachment_test.rb'
  665. - 'test/unit/custom_field_test.rb'
  666. - 'test/unit/lib/redmine/project_jump_box_test.rb'
  667. - 'test/unit/mail_handler_test.rb'
  668. # Configuration parameters: Blacklist, Whitelist.
  669. # Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
  670. Rails/SkipsModelValidations:
  671. Enabled: false
  672. # Cop supports --auto-correct.
  673. # Configuration parameters: EnforcedStyle.
  674. # SupportedStyles: strict, flexible
  675. Rails/TimeZone:
  676. Enabled: false
  677. # Cop supports --auto-correct.
  678. # Configuration parameters: Include.
  679. # Include: app/models/**/*.rb
  680. Rails/Validation:
  681. Enabled: false
  682. Security/Eval:
  683. Exclude:
  684. - 'app/helpers/attachments_helper.rb'
  685. - 'app/models/user.rb'
  686. - 'config/initializers/00-core_plugins.rb'
  687. Security/Open:
  688. Exclude:
  689. - 'app/models/version.rb'
  690. # Cop supports --auto-correct.
  691. Security/YAMLLoad:
  692. Exclude:
  693. - 'Gemfile'
  694. - 'app/models/setting.rb'
  695. - 'lib/redmine/configuration.rb'
  696. # Configuration parameters: EnforcedStyle.
  697. # SupportedStyles: inline, group
  698. Style/AccessModifierDeclarations:
  699. Enabled: false
  700. # Cop supports --auto-correct.
  701. # Configuration parameters: EnforcedStyle.
  702. # SupportedStyles: prefer_alias, prefer_alias_method
  703. Style/Alias:
  704. Enabled: false
  705. # Cop supports --auto-correct.
  706. # Configuration parameters: EnforcedStyle.
  707. # SupportedStyles: always, conditionals
  708. Style/AndOr:
  709. Enabled: false
  710. # Cop supports --auto-correct.
  711. # Configuration parameters: EnforcedStyle.
  712. # SupportedStyles: percent_q, bare_percent
  713. Style/BarePercentLiterals:
  714. Exclude:
  715. - 'test/integration/api_test/api_test.rb'
  716. # Cop supports --auto-correct.
  717. Style/BlockComments:
  718. Exclude:
  719. - 'lib/diff.rb'
  720. # Cop supports --auto-correct.
  721. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
  722. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
  723. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  724. # FunctionalMethods: let, let!, subject, watch
  725. # IgnoredMethods: lambda, proc, it
  726. Style/BlockDelimiters:
  727. Enabled: false
  728. # Cop supports --auto-correct.
  729. # Configuration parameters: EnforcedStyle.
  730. # SupportedStyles: braces, no_braces, context_dependent
  731. Style/BracesAroundHashParameters:
  732. Enabled: false
  733. # Cop supports --auto-correct.
  734. # Configuration parameters: AutoCorrect, EnforcedStyle.
  735. # SupportedStyles: nested, compact
  736. Style/ClassAndModuleChildren:
  737. Enabled: false
  738. # Cop supports --auto-correct.
  739. Style/ClassMethods:
  740. Exclude:
  741. - 'lib/diff.rb'
  742. Style/ClassVars:
  743. Enabled: false
  744. # Cop supports --auto-correct.
  745. Style/ColonMethodCall:
  746. Exclude:
  747. - 'Gemfile'
  748. - 'app/controllers/admin_controller.rb'
  749. - 'app/models/setting.rb'
  750. - 'lib/redmine/configuration.rb'
  751. - 'lib/redmine/export/pdf.rb'
  752. - 'lib/redmine/wiki_formatting.rb'
  753. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  754. - 'test/test_helper.rb'
  755. - 'test/unit/default_data_test.rb'
  756. - 'test/unit/lib/redmine/export/pdf_test.rb'
  757. # Cop supports --auto-correct.
  758. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  759. # SupportedStyles: assign_to_condition, assign_inside_condition
  760. Style/ConditionalAssignment:
  761. Enabled: false
  762. Style/Documentation:
  763. Enabled: false
  764. Style/DoubleNegation:
  765. Exclude:
  766. - 'app/controllers/application_controller.rb'
  767. - 'app/helpers/application_helper.rb'
  768. - 'app/models/attachment.rb'
  769. - 'app/models/issue_import.rb'
  770. - 'app/models/mailer.rb'
  771. - 'app/models/query.rb'
  772. - 'app/models/user.rb'
  773. - 'lib/redmine/sudo_mode.rb'
  774. # Cop supports --auto-correct.
  775. Style/EachWithObject:
  776. Enabled: false
  777. # Cop supports --auto-correct.
  778. Style/EmptyCaseCondition:
  779. Exclude:
  780. - 'app/models/auth_source_ldap.rb'
  781. - 'app/models/issue_priority.rb'
  782. # Cop supports --auto-correct.
  783. # Configuration parameters: EnforcedStyle.
  784. # SupportedStyles: empty, nil, both
  785. Style/EmptyElse:
  786. Exclude:
  787. - 'app/helpers/avatars_helper.rb'
  788. - 'app/models/import.rb'
  789. - 'app/models/mail_handler.rb'
  790. - 'app/models/query.rb'
  791. # Cop supports --auto-correct.
  792. # Configuration parameters: EnforcedStyle.
  793. # SupportedStyles: compact, expanded
  794. Style/EmptyMethod:
  795. Enabled: false
  796. Style/EvalWithLocation:
  797. Exclude:
  798. - 'app/helpers/attachments_helper.rb'
  799. # Cop supports --auto-correct.
  800. Style/ExpandPathArguments:
  801. Enabled: false
  802. # Cop supports --auto-correct.
  803. # Configuration parameters: EnforcedStyle.
  804. # SupportedStyles: each, for
  805. Style/For:
  806. Exclude:
  807. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  808. - 'lib/redmine/export/pdf/wiki_pdf_helper.rb'
  809. # Cop supports --auto-correct.
  810. # Configuration parameters: EnforcedStyle.
  811. # SupportedStyles: format, sprintf, percent
  812. Style/FormatString:
  813. Exclude:
  814. - 'app/helpers/application_helper.rb'
  815. - 'app/helpers/queries_helper.rb'
  816. - 'app/models/query.rb'
  817. - 'config/initializers/10-patches.rb'
  818. - 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
  819. - 'lib/redmine/export/csv.rb'
  820. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  821. - 'lib/redmine/helpers/gantt.rb'
  822. - 'lib/redmine/i18n.rb'
  823. - 'lib/redmine/info.rb'
  824. # Configuration parameters: AllowedVariables.
  825. Style/GlobalVars:
  826. Exclude:
  827. - 'test/test_helper.rb'
  828. # Configuration parameters: MinBodyLength.
  829. Style/GuardClause:
  830. Enabled: false
  831. # Configuration parameters: AllowIfModifier.
  832. Style/IfInsideElse:
  833. Enabled: false
  834. # Cop supports --auto-correct.
  835. Style/IfUnlessModifier:
  836. Enabled: false
  837. Style/IfUnlessModifierOfIfUnless:
  838. Exclude:
  839. - 'app/models/attachment.rb'
  840. # Cop supports --auto-correct.
  841. # Configuration parameters: InverseMethods, InverseBlocks.
  842. Style/InverseMethods:
  843. Enabled: false
  844. # Cop supports --auto-correct.
  845. # Configuration parameters: EnforcedStyle.
  846. # SupportedStyles: line_count_dependent, lambda, literal
  847. Style/Lambda:
  848. Enabled: false
  849. # Cop supports --auto-correct.
  850. Style/LineEndConcatenation:
  851. Enabled: false
  852. # Cop supports --auto-correct.
  853. # Configuration parameters: IgnoredMethods.
  854. Style/MethodCallWithoutArgsParentheses:
  855. Exclude:
  856. - 'app/models/repository/cvs.rb'
  857. - 'lib/redmine/export/pdf.rb'
  858. - 'lib/redmine/helpers/gantt.rb'
  859. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  860. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  861. - 'test/unit/activity_test.rb'
  862. # Cop supports --auto-correct.
  863. # Configuration parameters: EnforcedStyle.
  864. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
  865. Style/MethodDefParentheses:
  866. Exclude:
  867. - 'lib/redmine/menu_manager.rb'
  868. Style/MethodMissingSuper:
  869. Exclude:
  870. - 'lib/redmine/views/builders/structure.rb'
  871. Style/MissingRespondToMissing:
  872. Exclude:
  873. - 'lib/redmine/views/builders/structure.rb'
  874. Style/MixinUsage:
  875. Exclude:
  876. - 'test/test_helper.rb'
  877. Style/MultilineBlockChain:
  878. Exclude:
  879. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  880. # Cop supports --auto-correct.
  881. Style/MultilineIfModifier:
  882. Enabled: false
  883. Style/MultilineTernaryOperator:
  884. Exclude:
  885. - 'app/controllers/workflows_controller.rb'
  886. - 'app/helpers/settings_helper.rb'
  887. - 'app/models/issue_query.rb'
  888. - 'app/models/issue_relation.rb'
  889. - 'app/models/mail_handler.rb'
  890. - 'app/models/message.rb'
  891. - 'lib/redmine/ciphering.rb'
  892. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  893. - 'lib/redmine/scm/adapters/git_adapter.rb'
  894. Style/MultipleComparison:
  895. Exclude:
  896. - 'app/helpers/application_helper.rb'
  897. - 'app/helpers/workflows_helper.rb'
  898. - 'app/models/import.rb'
  899. - 'app/models/version.rb'
  900. - 'app/models/wiki_page.rb'
  901. - 'app/models/workflow_transition.rb'
  902. # Cop supports --auto-correct.
  903. # Configuration parameters: EnforcedStyle.
  904. # SupportedStyles: literals, strict
  905. Style/MutableConstant:
  906. Enabled: false
  907. # Cop supports --auto-correct.
  908. # Configuration parameters: EnforcedStyle.
  909. # SupportedStyles: both, prefix, postfix
  910. Style/NegatedIf:
  911. Exclude:
  912. - 'app/controllers/application_controller.rb'
  913. - 'app/controllers/messages_controller.rb'
  914. - 'app/helpers/repositories_helper.rb'
  915. - 'app/models/attachment.rb'
  916. - 'app/models/auth_source_ldap.rb'
  917. - 'app/models/custom_field.rb'
  918. - 'app/models/project.rb'
  919. - 'app/models/repository/cvs.rb'
  920. - 'lib/diff.rb'
  921. - 'lib/redmine/codeset_util.rb'
  922. - 'lib/redmine/thumbnail.rb'
  923. # Cop supports --auto-correct.
  924. Style/NegatedWhile:
  925. Exclude:
  926. - 'app/helpers/application_helper.rb'
  927. # Cop supports --auto-correct.
  928. # Configuration parameters: Whitelist.
  929. # Whitelist: 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
  930. Style/NestedParenthesizedCalls:
  931. Exclude:
  932. - 'lib/redmine/views/labelled_form_builder.rb'
  933. - 'test/unit/mail_handler_test.rb'
  934. Style/NestedTernaryOperator:
  935. Exclude:
  936. - 'app/helpers/queries_helper.rb'
  937. - 'app/models/issue_relation.rb'
  938. - 'app/models/journal.rb'
  939. # Cop supports --auto-correct.
  940. # Configuration parameters: EnforcedStyle, MinBodyLength.
  941. # SupportedStyles: skip_modifier_ifs, always
  942. Style/Next:
  943. Enabled: false
  944. # Cop supports --auto-correct.
  945. Style/Not:
  946. Exclude:
  947. - 'db/migrate/096_add_commit_access_permission.rb'
  948. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  949. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  950. # Cop supports --auto-correct.
  951. # Configuration parameters: EnforcedOctalStyle.
  952. # SupportedOctalStyles: zero_with_o, zero_only
  953. Style/NumericLiteralPrefix:
  954. Exclude:
  955. - 'test/unit/user_test.rb'
  956. # Cop supports --auto-correct.
  957. # Configuration parameters: Strict.
  958. Style/NumericLiterals:
  959. MinDigits: 9
  960. # Cop supports --auto-correct.
  961. # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
  962. # SupportedStyles: predicate, comparison
  963. Style/NumericPredicate:
  964. Enabled: false
  965. # Cop supports --auto-correct.
  966. Style/OrAssignment:
  967. Exclude:
  968. - 'app/helpers/sort_helper.rb'
  969. - 'app/models/repository/cvs.rb'
  970. - 'app/models/user.rb'
  971. - 'lib/redmine/helpers/diff.rb'
  972. # Cop supports --auto-correct.
  973. Style/ParallelAssignment:
  974. Enabled: false
  975. # Cop supports --auto-correct.
  976. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
  977. Style/ParenthesesAroundCondition:
  978. Exclude:
  979. - 'app/models/repository/subversion.rb'
  980. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  981. - 'lib/redmine/scm/adapters/git_adapter.rb'
  982. # Cop supports --auto-correct.
  983. # Configuration parameters: PreferredDelimiters.
  984. Style/PercentLiteralDelimiters:
  985. Enabled: false
  986. # Cop supports --auto-correct.
  987. Style/PerlBackrefs:
  988. Enabled: false
  989. # Cop supports --auto-correct.
  990. # Configuration parameters: EnforcedStyle.
  991. # SupportedStyles: short, verbose
  992. Style/PreferredHashMethods:
  993. Enabled: false
  994. # Cop supports --auto-correct.
  995. Style/Proc:
  996. Enabled: false
  997. # Cop supports --auto-correct.
  998. # Configuration parameters: EnforcedStyle.
  999. # SupportedStyles: compact, exploded
  1000. Style/RaiseArgs:
  1001. Exclude:
  1002. - 'app/models/auth_source_ldap.rb'
  1003. - 'app/models/issue_query.rb'
  1004. - 'app/models/mailer.rb'
  1005. - 'app/models/query.rb'
  1006. - 'app/models/tracker.rb'
  1007. - 'app/models/user.rb'
  1008. - 'app/models/workflow_rule.rb'
  1009. - 'lib/redmine/access_control.rb'
  1010. - 'lib/redmine/default_data/loader.rb'
  1011. - 'lib/redmine/plugin.rb'
  1012. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1013. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1014. - 'lib/redmine/sort_criteria.rb'
  1015. # Cop supports --auto-correct.
  1016. Style/RedundantConditional:
  1017. Exclude:
  1018. - 'app/controllers/workflows_controller.rb'
  1019. - 'app/helpers/application_helper.rb'
  1020. - 'app/models/enumeration.rb'
  1021. - 'lib/redmine/field_format.rb'
  1022. # Cop supports --auto-correct.
  1023. Style/RedundantParentheses:
  1024. Enabled: false
  1025. # Cop supports --auto-correct.
  1026. # Configuration parameters: AllowMultipleReturnValues.
  1027. Style/RedundantReturn:
  1028. Enabled: false
  1029. # Cop supports --auto-correct.
  1030. Style/RedundantSelf:
  1031. Enabled: false
  1032. # Cop supports --auto-correct.
  1033. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  1034. # SupportedStyles: slashes, percent_r, mixed
  1035. Style/RegexpLiteral:
  1036. Enabled: false
  1037. # Cop supports --auto-correct.
  1038. Style/RescueModifier:
  1039. Exclude:
  1040. - 'app/controllers/application_controller.rb'
  1041. - 'app/controllers/attachments_controller.rb'
  1042. - 'app/controllers/imports_controller.rb'
  1043. - 'app/controllers/watchers_controller.rb'
  1044. - 'app/helpers/avatars_helper.rb'
  1045. - 'app/models/custom_field.rb'
  1046. - 'app/models/import.rb'
  1047. - 'app/models/query.rb'
  1048. - 'app/models/repository.rb'
  1049. - 'lib/redmine/export/csv.rb'
  1050. - 'lib/redmine/field_format.rb'
  1051. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1052. - 'lib/redmine/search.rb'
  1053. - 'lib/redmine/wiki_formatting.rb'
  1054. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  1055. # Cop supports --auto-correct.
  1056. # Configuration parameters: EnforcedStyle.
  1057. # SupportedStyles: implicit, explicit
  1058. Style/RescueStandardError:
  1059. Enabled: false
  1060. # Cop supports --auto-correct.
  1061. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
  1062. # Whitelist: present?, blank?, presence, try, try!
  1063. Style/SafeNavigation:
  1064. Enabled: false
  1065. # Cop supports --auto-correct.
  1066. Style/SelfAssignment:
  1067. Exclude:
  1068. - 'app/controllers/repositories_controller.rb'
  1069. - 'app/helpers/application_helper.rb'
  1070. - 'app/helpers/reports_helper.rb'
  1071. - 'app/models/auth_source_ldap.rb'
  1072. - 'app/models/project.rb'
  1073. - 'app/models/query.rb'
  1074. - 'app/models/repository/cvs.rb'
  1075. - 'lib/redmine/helpers/calendar.rb'
  1076. - 'lib/redmine/helpers/gantt.rb'
  1077. - 'lib/redmine/helpers/time_report.rb'
  1078. # Cop supports --auto-correct.
  1079. # Configuration parameters: AllowAsExpressionSeparator.
  1080. Style/Semicolon:
  1081. Enabled: false
  1082. # Cop supports --auto-correct.
  1083. # Configuration parameters: AllowIfMethodIsEmpty.
  1084. Style/SingleLineMethods:
  1085. Enabled: false
  1086. # Cop supports --auto-correct.
  1087. # Configuration parameters: .
  1088. # SupportedStyles: use_perl_names, use_english_names
  1089. Style/SpecialGlobalVars:
  1090. EnforcedStyle: use_perl_names
  1091. # Cop supports --auto-correct.
  1092. Style/StderrPuts:
  1093. Exclude:
  1094. - 'config/environment.rb'
  1095. - 'config/initializers/10-patches.rb'
  1096. # Cop supports --auto-correct.
  1097. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  1098. # SupportedStyles: single_quotes, double_quotes
  1099. Style/StringLiterals:
  1100. Enabled: false
  1101. # Cop supports --auto-correct.
  1102. # Configuration parameters: EnforcedStyle.
  1103. # SupportedStyles: single_quotes, double_quotes
  1104. Style/StringLiteralsInInterpolation:
  1105. Exclude:
  1106. - 'app/models/issue_query.rb'
  1107. - 'config/environment.rb'
  1108. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1109. - 'lib/redmine/wiki_formatting.rb'
  1110. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1111. - 'test/unit/member_test.rb'
  1112. Style/StructInheritance:
  1113. Exclude:
  1114. - 'lib/redmine/notifiable.rb'
  1115. - 'lib/redmine/sudo_mode.rb'
  1116. # Cop supports --auto-correct.
  1117. # Configuration parameters: MinSize.
  1118. # SupportedStyles: percent, brackets
  1119. Style/SymbolArray:
  1120. EnforcedStyle: brackets
  1121. # Cop supports --auto-correct.
  1122. # Configuration parameters: IgnoredMethods.
  1123. # IgnoredMethods: respond_to, define_method
  1124. Style/SymbolProc:
  1125. Enabled: false
  1126. # Cop supports --auto-correct.
  1127. # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
  1128. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
  1129. Style/TernaryParentheses:
  1130. Enabled: false
  1131. # Cop supports --auto-correct.
  1132. # Configuration parameters: EnforcedStyleForMultiline.
  1133. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  1134. Style/TrailingCommaInHashLiteral:
  1135. Enabled: false
  1136. # Cop supports --auto-correct.
  1137. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
  1138. # Whitelist: 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
  1139. Style/TrivialAccessors:
  1140. Exclude:
  1141. - 'app/models/issue.rb'
  1142. - 'app/models/journal.rb'
  1143. - 'app/models/query.rb'
  1144. - 'lib/redmine/access_control.rb'
  1145. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1146. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1147. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1148. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1149. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1150. # Cop supports --auto-correct.
  1151. Style/UnlessElse:
  1152. Exclude:
  1153. - 'app/controllers/auth_sources_controller.rb'
  1154. - 'app/controllers/trackers_controller.rb'
  1155. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1156. - 'lib/redmine/unified_diff.rb'
  1157. # Cop supports --auto-correct.
  1158. Style/UnneededCondition:
  1159. Exclude:
  1160. - 'app/controllers/messages_controller.rb'
  1161. - 'app/controllers/previews_controller.rb'
  1162. - 'app/models/issue.rb'
  1163. # Cop supports --auto-correct.
  1164. Style/UnneededInterpolation:
  1165. Exclude:
  1166. - 'app/helpers/my_helper.rb'
  1167. - 'app/helpers/queries_helper.rb'
  1168. - 'app/models/query.rb'
  1169. - 'app/views/common/feed.atom.builder'
  1170. - 'app/views/journals/index.builder'
  1171. - 'lib/redmine/helpers/time_report.rb'
  1172. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1173. - 'lib/redmine/wiki_formatting.rb'
  1174. - 'test/functional/versions_controller_test.rb'
  1175. - 'test/functional/watchers_controller_test.rb'
  1176. - 'test/unit/repository_mercurial_test.rb'
  1177. # Cop supports --auto-correct.
  1178. Style/UnneededSort:
  1179. Exclude:
  1180. - 'app/models/import.rb'
  1181. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1182. - 'test/functional/issues_controller_test.rb'
  1183. - 'test/unit/member_test.rb'
  1184. # Cop supports --auto-correct.
  1185. Style/VariableInterpolation:
  1186. Exclude:
  1187. - 'lib/redmine/configuration.rb'
  1188. # Cop supports --auto-correct.
  1189. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
  1190. # SupportedStyles: percent, brackets
  1191. Style/WordArray:
  1192. Enabled: false
  1193. # Cop supports --auto-correct.
  1194. Style/ZeroLengthPredicate:
  1195. Exclude:
  1196. - 'app/models/import.rb'
  1197. - 'app/models/mail_handler.rb'
  1198. - 'app/models/user.rb'
  1199. - 'lib/redmine/field_format.rb'
  1200. - 'lib/redmine/unified_diff.rb'
  1201. - 'lib/redmine/wiki_formatting/macros.rb'
  1202. - 'test/functional/custom_fields_controller_test.rb'
  1203. - 'test/object_helpers.rb'
  1204. - 'test/unit/activity_test.rb'
  1205. - 'test/unit/custom_field_test.rb'