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

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