You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.rubocop_todo.yml 57KB

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