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

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