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

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