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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851
  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.15.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.
  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. # Configuration parameters: Include.
  598. # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
  599. Rails/Exit:
  600. Exclude:
  601. - 'config/environment.rb'
  602. - 'config/initializers/10-patches.rb'
  603. - 'config/routes.rb'
  604. # Configuration parameters: EnforcedStyle.
  605. # SupportedStyles: slashes, arguments
  606. Rails/FilePath:
  607. Exclude:
  608. - 'app/models/attachment.rb'
  609. - 'app/models/import.rb'
  610. - 'app/models/setting.rb'
  611. - 'config/environment.rb'
  612. - 'config/initializers/00-core_plugins.rb'
  613. - 'config/initializers/10-patches.rb'
  614. - 'lib/redmine/configuration.rb'
  615. - 'lib/redmine/plugin.rb'
  616. - 'lib/redmine/twofa.rb'
  617. - 'lib/redmine/version.rb'
  618. - 'test/application_system_test_case.rb'
  619. - 'test/functional/custom_fields_controller_test.rb'
  620. - 'test/functional/settings_controller_test.rb'
  621. - 'test/test_helper.rb'
  622. - 'test/unit/lib/redmine/configuration_test.rb'
  623. - 'test/unit/lib/redmine/i18n_test.rb'
  624. - 'test/unit/lib/redmine/plugin_test.rb'
  625. # Cop supports --auto-correct.
  626. # Configuration parameters: Include.
  627. # Include: app/models/**/*.rb
  628. Rails/FindBy:
  629. Exclude:
  630. - 'app/models/enumeration.rb'
  631. - 'app/models/issue_import.rb'
  632. - 'app/models/repository.rb'
  633. - 'app/models/repository/cvs.rb'
  634. - 'app/models/repository/git.rb'
  635. - 'app/models/repository/mercurial.rb'
  636. - 'app/models/time_entry_query.rb'
  637. - 'app/models/user.rb'
  638. - 'app/models/wiki.rb'
  639. - 'app/models/wiki_content_version.rb'
  640. # Cop supports --auto-correct.
  641. # Configuration parameters: Include, IgnoredMethods.
  642. # Include: app/models/**/*.rb
  643. # IgnoredMethods: order, limit, select, lock
  644. Rails/FindEach:
  645. Exclude:
  646. - 'app/models/auth_source.rb'
  647. - 'app/models/group.rb'
  648. - 'app/models/issue.rb'
  649. - 'app/models/issue_status.rb'
  650. - 'app/models/project.rb'
  651. - 'app/models/query.rb'
  652. - 'app/models/repository.rb'
  653. - 'app/models/setting.rb'
  654. - 'app/models/watcher.rb'
  655. - 'app/models/wiki_page.rb'
  656. # Configuration parameters: Include.
  657. # Include: app/models/**/*.rb
  658. Rails/HasAndBelongsToMany:
  659. Exclude:
  660. - 'app/models/changeset.rb'
  661. - 'app/models/custom_field.rb'
  662. - 'app/models/group.rb'
  663. - 'app/models/issue.rb'
  664. - 'app/models/issue_custom_field.rb'
  665. - 'app/models/project.rb'
  666. - 'app/models/query.rb'
  667. - 'app/models/role.rb'
  668. - 'app/models/tracker.rb'
  669. - 'app/models/user.rb'
  670. # Configuration parameters: Include.
  671. # Include: app/models/**/*.rb
  672. Rails/HasManyOrHasOneDependent:
  673. Exclude:
  674. - 'app/models/auth_source.rb'
  675. - 'app/models/document_category.rb'
  676. - 'app/models/issue_priority.rb'
  677. - 'app/models/issue_status.rb'
  678. - 'app/models/project.rb'
  679. - 'app/models/time_entry_activity.rb'
  680. - 'app/models/tracker.rb'
  681. - 'app/models/wiki.rb'
  682. # Cop supports --auto-correct.
  683. # Configuration parameters: EnforcedStyle.
  684. # SupportedStyles: numeric, symbolic
  685. Rails/HttpStatus:
  686. Exclude:
  687. - 'app/controllers/mail_handler_controller.rb'
  688. - 'app/controllers/sys_controller.rb'
  689. - 'app/controllers/watchers_controller.rb'
  690. # Configuration parameters: Include.
  691. # Include: app/models/**/*.rb
  692. Rails/InverseOf:
  693. Exclude:
  694. - 'app/models/board.rb'
  695. - 'app/models/custom_field.rb'
  696. - 'app/models/document_category.rb'
  697. - 'app/models/issue.rb'
  698. - 'app/models/issue_category.rb'
  699. - 'app/models/issue_priority.rb'
  700. - 'app/models/issue_status.rb'
  701. - 'app/models/journal.rb'
  702. - 'app/models/member.rb'
  703. - 'app/models/news.rb'
  704. - 'app/models/principal.rb'
  705. - 'app/models/project.rb'
  706. - 'app/models/repository.rb'
  707. - 'app/models/repository/mercurial.rb'
  708. - 'app/models/time_entry_activity.rb'
  709. - 'app/models/user.rb'
  710. - 'app/models/version.rb'
  711. - 'app/models/wiki.rb'
  712. - 'app/models/wiki_page.rb'
  713. # Configuration parameters: Include.
  714. # Include: app/controllers/**/*.rb
  715. Rails/LexicallyScopedActionFilter:
  716. Exclude:
  717. - 'app/controllers/projects_controller.rb'
  718. # Cop supports --auto-correct.
  719. Rails/LinkToBlank:
  720. Exclude:
  721. - 'app/helpers/avatars_helper.rb'
  722. # Cop supports --auto-correct.
  723. # Configuration parameters: Include.
  724. # Include: config/routes.rb, config/routes/**/*.rb
  725. Rails/MatchRoute:
  726. Exclude:
  727. - 'config/routes.rb'
  728. # Cop supports --auto-correct.
  729. Rails/NegateInclude:
  730. Enabled: false
  731. # Configuration parameters: Include.
  732. # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
  733. Rails/Output:
  734. Exclude:
  735. - 'app/models/mail_handler.rb'
  736. - 'config/routes.rb'
  737. - 'lib/redmine/unified_diff.rb'
  738. Rails/OutputSafety:
  739. Enabled: false
  740. # Cop supports --auto-correct.
  741. Rails/Pluck:
  742. Exclude:
  743. - 'app/helpers/versions_helper.rb'
  744. - 'test/unit/query_test.rb'
  745. # Cop supports --auto-correct.
  746. Rails/PluralizationGrammar:
  747. Exclude:
  748. - 'lib/redmine/helpers/time_report.rb'
  749. - 'test/functional/gantts_controller_test.rb'
  750. - 'test/unit/mailer_test.rb'
  751. - 'test/unit/query_test.rb'
  752. # Cop supports --auto-correct.
  753. Rails/Presence:
  754. Exclude:
  755. - 'app/controllers/activities_controller.rb'
  756. - 'app/helpers/application_helper.rb'
  757. - 'app/models/repository.rb'
  758. - 'lib/redmine/codeset_util.rb'
  759. - 'lib/redmine/i18n.rb'
  760. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  761. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  762. - 'lib/redmine/scm/adapters/git_adapter.rb'
  763. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  764. - 'lib/redmine/sort_criteria.rb'
  765. # Cop supports --auto-correct.
  766. # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
  767. Rails/Present:
  768. Enabled: false
  769. # Cop supports --auto-correct.
  770. # Configuration parameters: Include.
  771. # Include: app/models/**/*.rb
  772. Rails/ReadWriteAttribute:
  773. Exclude:
  774. - 'app/models/attachment.rb'
  775. - 'app/models/auth_source_ldap.rb'
  776. - 'app/models/changeset.rb'
  777. - 'app/models/custom_field.rb'
  778. - 'app/models/email_address.rb'
  779. - 'app/models/issue.rb'
  780. - 'app/models/journal_detail.rb'
  781. - 'app/models/message.rb'
  782. - 'app/models/query.rb'
  783. - 'app/models/repository.rb'
  784. - 'app/models/repository/git.rb'
  785. - 'app/models/role.rb'
  786. - 'app/models/setting.rb'
  787. - 'app/models/time_entry.rb'
  788. - 'app/models/user.rb'
  789. - 'app/models/user_preference.rb'
  790. - 'app/models/wiki_page.rb'
  791. # Cop supports --auto-correct.
  792. Rails/RedundantForeignKey:
  793. Exclude:
  794. - 'app/models/changeset.rb'
  795. - 'app/models/custom_field.rb'
  796. - 'app/models/query.rb'
  797. - 'app/models/role.rb'
  798. Rails/ReflectionClassName:
  799. Exclude:
  800. - 'lib/redmine/nested_set/issue_nested_set.rb'
  801. - 'lib/redmine/nested_set/project_nested_set.rb'
  802. # Cop supports --auto-correct.
  803. # Configuration parameters: EnforcedStyle, Include.
  804. # SupportedStyles: assert_not, refute
  805. # Include: **/test/**/*
  806. Rails/RefuteMethods:
  807. Exclude:
  808. - 'test/functional/projects_controller_test.rb'
  809. - 'test/functional/wiki_controller_test.rb'
  810. - 'test/integration/account_test.rb'
  811. - 'test/integration/api_test/my_test.rb'
  812. - 'test/unit/attachment_test.rb'
  813. - 'test/unit/custom_field_test.rb'
  814. - 'test/unit/lib/redmine/project_jump_box_test.rb'
  815. # Cop supports --auto-correct.
  816. # Configuration parameters: EnforcedStyle.
  817. # SupportedStyles: conservative, aggressive
  818. Rails/ShortI18n:
  819. Exclude:
  820. - 'test/unit/issue_test.rb'
  821. - 'test/unit/member_test.rb'
  822. - 'test/unit/repository_test.rb'
  823. - 'test/unit/time_entry_test.rb'
  824. - 'test/unit/user_test.rb'
  825. - 'test/unit/version_test.rb'
  826. - 'test/unit/wiki_page_test.rb'
  827. # Configuration parameters: ForbiddenMethods, AllowedMethods.
  828. # 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
  829. Rails/SkipsModelValidations:
  830. Enabled: false
  831. # Cop supports --auto-correct.
  832. # Configuration parameters: EnforcedStyle.
  833. # SupportedStyles: strict, flexible
  834. Rails/TimeZone:
  835. Enabled: false
  836. # Cop supports --auto-correct.
  837. # Configuration parameters: Include.
  838. # Include: app/models/**/*.rb
  839. Rails/Validation:
  840. Enabled: false
  841. # Cop supports --auto-correct.
  842. Rails/WhereEquals:
  843. Exclude:
  844. - 'app/models/group.rb'
  845. - 'app/models/issue.rb'
  846. - 'app/models/repository.rb'
  847. - 'app/models/user.rb'
  848. - 'db/migrate/101_populate_changesets_user_id.rb'
  849. - 'db/migrate/20090614091200_fix_messages_sticky_null.rb'
  850. - 'db/migrate/20090704172350_populate_users_type.rb'
  851. - 'db/migrate/20101104182107_add_unique_index_on_members.rb'
  852. - 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
  853. - 'db/migrate/20120115143126_set_default_repositories.rb'
  854. - 'db/migrate/20120422150750_change_repositories_to_full_sti.rb'
  855. - 'lib/redmine/helpers/gantt.rb'
  856. - 'test/functional/issues_controller_test.rb'
  857. # Cop supports --auto-correct.
  858. # Configuration parameters: EnforcedStyle.
  859. # SupportedStyles: exists, where
  860. Rails/WhereExists:
  861. Exclude:
  862. - 'app/controllers/issues_controller.rb'
  863. - 'app/models/issue.rb'
  864. - 'app/models/project.rb'
  865. - 'app/models/user.rb'
  866. - 'app/models/watcher.rb'
  867. - 'lib/redmine/default_data/loader.rb'
  868. - 'test/functional/workflows_controller_test.rb'
  869. - 'test/unit/document_category_test.rb'
  870. - 'test/unit/enumeration_test.rb'
  871. - 'test/unit/issue_status_test.rb'
  872. - 'test/unit/project_test.rb'
  873. - 'test/unit/workflow_transition_test.rb'
  874. # Cop supports --auto-correct.
  875. Rails/WhereNot:
  876. Exclude:
  877. - 'app/models/import.rb'
  878. - 'app/models/user.rb'
  879. - 'db/migrate/20130710182539_add_queries_visibility.rb'
  880. - 'test/unit/issue_test.rb'
  881. - 'test/unit/project_test.rb'
  882. - 'test/unit/user_test.rb'
  883. Security/Eval:
  884. Exclude:
  885. - 'app/helpers/attachments_helper.rb'
  886. - 'app/models/user.rb'
  887. - 'config/initializers/00-core_plugins.rb'
  888. Security/Open:
  889. Exclude:
  890. - 'app/models/version.rb'
  891. # Cop supports --auto-correct.
  892. Security/YAMLLoad:
  893. Exclude:
  894. - 'Gemfile'
  895. - 'app/models/setting.rb'
  896. - 'lib/redmine/configuration.rb'
  897. # Cop supports --auto-correct.
  898. # Configuration parameters: EnforcedStyle.
  899. # SupportedStyles: separated, grouped
  900. Style/AccessorGrouping:
  901. Exclude:
  902. - 'app/models/user.rb'
  903. - 'lib/redmine/helpers/gantt.rb'
  904. - 'lib/redmine/unified_diff.rb'
  905. # Cop supports --auto-correct.
  906. # Configuration parameters: EnforcedStyle.
  907. # SupportedStyles: prefer_alias, prefer_alias_method
  908. Style/Alias:
  909. Exclude:
  910. - 'app/controllers/repositories_controller.rb'
  911. - 'app/models/custom_field_enumeration.rb'
  912. - 'app/models/enumeration.rb'
  913. - 'app/models/issue.rb'
  914. - 'app/models/issue_category.rb'
  915. - 'app/models/issue_query.rb'
  916. - 'app/models/issue_status.rb'
  917. - 'app/models/member.rb'
  918. - 'app/models/project.rb'
  919. - 'app/models/user.rb'
  920. - 'app/models/version.rb'
  921. - 'config/initializers/10-patches.rb'
  922. - 'lib/redmine/export/pdf.rb'
  923. - 'lib/redmine/menu_manager.rb'
  924. - 'lib/redmine/plugin.rb'
  925. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  926. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  927. # Cop supports --auto-correct.
  928. # Configuration parameters: EnforcedStyle.
  929. # SupportedStyles: always, conditionals
  930. Style/AndOr:
  931. Exclude:
  932. - 'app/controllers/account_controller.rb'
  933. - 'app/controllers/calendars_controller.rb'
  934. - 'app/helpers/repositories_helper.rb'
  935. - 'app/models/query.rb'
  936. - 'db/migrate/022_serialize_possibles_values.rb'
  937. - 'lib/redmine/export/pdf.rb'
  938. - 'lib/redmine/field_format.rb'
  939. - 'lib/redmine/helpers/gantt.rb'
  940. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  941. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  942. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  943. - 'lib/redmine/scm/adapters/git_adapter.rb'
  944. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  945. - 'lib/redmine/wiki_formatting.rb'
  946. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  947. # Cop supports --auto-correct.
  948. # Configuration parameters: EnforcedStyle.
  949. # SupportedStyles: percent_q, bare_percent
  950. Style/BarePercentLiterals:
  951. Exclude:
  952. - 'test/integration/api_test/api_test.rb'
  953. # Cop supports --auto-correct.
  954. Style/CaseLikeIf:
  955. Exclude:
  956. - 'app/controllers/wiki_controller.rb'
  957. - 'app/helpers/members_helper.rb'
  958. - 'app/models/issue_query.rb'
  959. - 'app/models/journal.rb'
  960. - 'app/models/repository/cvs.rb'
  961. - 'app/models/setting.rb'
  962. - 'app/models/time_entry.rb'
  963. - 'app/models/user.rb'
  964. - 'app/models/workflow_transition.rb'
  965. - 'lib/redmine/access_control.rb'
  966. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  967. - 'lib/redmine/field_format.rb'
  968. - 'lib/redmine/i18n.rb'
  969. - 'lib/redmine/plugin.rb'
  970. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  971. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  972. - 'lib/redmine/scm/adapters/git_adapter.rb'
  973. - 'lib/redmine/unified_diff.rb'
  974. # Cop supports --auto-correct.
  975. # Configuration parameters: EnforcedStyle.
  976. # SupportedStyles: nested, compact
  977. Style/ClassAndModuleChildren:
  978. Enabled: false
  979. # Cop supports --auto-correct.
  980. # Configuration parameters: IgnoredMethods.
  981. # IgnoredMethods: ==, equal?, eql?
  982. Style/ClassEqualityComparison:
  983. Exclude:
  984. - 'app/models/principal.rb'
  985. # Cop supports --auto-correct.
  986. Style/ClassMethods:
  987. Exclude:
  988. - 'lib/diff.rb'
  989. Style/ClassVars:
  990. Exclude:
  991. - 'app/models/attachment.rb'
  992. - 'config/initializers/10-patches.rb'
  993. - 'lib/redmine/activity.rb'
  994. - 'lib/redmine/hook.rb'
  995. - 'lib/redmine/i18n.rb'
  996. - 'lib/redmine/menu_manager.rb'
  997. - 'lib/redmine/my_page.rb'
  998. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  999. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1000. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1001. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1002. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1003. - 'lib/redmine/search.rb'
  1004. - 'lib/redmine/themes.rb'
  1005. - 'lib/redmine/twofa.rb'
  1006. - 'lib/redmine/wiki_formatting.rb'
  1007. - 'lib/redmine/wiki_formatting/macros.rb'
  1008. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  1009. - 'test/helpers/activities_helper_test.rb'
  1010. # Cop supports --auto-correct.
  1011. Style/CollectionCompact:
  1012. Exclude:
  1013. - 'app/controllers/issues_controller.rb'
  1014. - 'app/controllers/projects_controller.rb'
  1015. - 'lib/redmine/sudo_mode.rb'
  1016. # Cop supports --auto-correct.
  1017. Style/ColonMethodCall:
  1018. Exclude:
  1019. - 'Gemfile'
  1020. - 'app/controllers/admin_controller.rb'
  1021. - 'app/models/setting.rb'
  1022. - 'lib/redmine/configuration.rb'
  1023. - 'lib/redmine/export/pdf.rb'
  1024. - 'lib/redmine/wiki_formatting.rb'
  1025. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1026. - 'test/unit/default_data_test.rb'
  1027. - 'test/unit/lib/redmine/export/pdf_test.rb'
  1028. Style/CombinableLoops:
  1029. Exclude:
  1030. - 'app/models/wiki_page.rb'
  1031. - 'lib/redmine/default_data/loader.rb'
  1032. # Cop supports --auto-correct.
  1033. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  1034. # SupportedStyles: assign_to_condition, assign_inside_condition
  1035. Style/ConditionalAssignment:
  1036. Enabled: false
  1037. Style/DocumentDynamicEvalDefinition:
  1038. Exclude:
  1039. - 'app/helpers/attachments_helper.rb'
  1040. # Configuration parameters: AllowedConstants.
  1041. Style/Documentation:
  1042. Enabled: false
  1043. # Cop supports --auto-correct.
  1044. # Configuration parameters: EnforcedStyle.
  1045. # SupportedStyles: allowed_in_returns, forbidden
  1046. Style/DoubleNegation:
  1047. Exclude:
  1048. - 'app/models/issue_import.rb'
  1049. - 'app/models/mailer.rb'
  1050. - 'app/models/query.rb'
  1051. - 'app/models/user.rb'
  1052. - 'lib/redmine/sudo_mode.rb'
  1053. # Cop supports --auto-correct.
  1054. Style/EachWithObject:
  1055. Exclude:
  1056. - 'app/controllers/repositories_controller.rb'
  1057. - 'app/helpers/queries_helper.rb'
  1058. - 'app/models/issue.rb'
  1059. - 'app/models/issue_import.rb'
  1060. - 'app/models/journal.rb'
  1061. - 'app/models/mail_handler.rb'
  1062. - 'app/models/project.rb'
  1063. - 'app/models/query.rb'
  1064. - 'app/models/repository.rb'
  1065. - 'app/models/setting.rb'
  1066. - 'app/models/time_entry_import.rb'
  1067. - 'app/models/workflow_permission.rb'
  1068. - 'config/initializers/10-patches.rb'
  1069. - 'lib/redmine/acts/positioned.rb'
  1070. - 'lib/redmine/configuration.rb'
  1071. - 'lib/redmine/i18n.rb'
  1072. - 'lib/redmine/mime_type.rb'
  1073. - 'lib/redmine/my_page.rb'
  1074. - 'lib/redmine/sort_criteria.rb'
  1075. - 'test/test_helper.rb'
  1076. # Cop supports --auto-correct.
  1077. Style/EmptyCaseCondition:
  1078. Exclude:
  1079. - 'app/models/auth_source_ldap.rb'
  1080. - 'app/models/issue_priority.rb'
  1081. # Cop supports --auto-correct.
  1082. # Configuration parameters: EnforcedStyle.
  1083. # SupportedStyles: empty, nil, both
  1084. Style/EmptyElse:
  1085. Exclude:
  1086. - 'app/models/mail_handler.rb'
  1087. # Cop supports --auto-correct.
  1088. # Configuration parameters: EnforcedStyle.
  1089. # SupportedStyles: compact, expanded
  1090. Style/EmptyMethod:
  1091. Enabled: false
  1092. # Cop supports --auto-correct.
  1093. Style/EvalWithLocation:
  1094. Exclude:
  1095. - 'app/helpers/attachments_helper.rb'
  1096. # Cop supports --auto-correct.
  1097. Style/ExpandPathArguments:
  1098. Enabled: false
  1099. # Cop supports --auto-correct.
  1100. Style/ExplicitBlockArgument:
  1101. Exclude:
  1102. - 'app/models/board.rb'
  1103. - 'lib/redmine/activity/fetcher.rb'
  1104. - 'lib/redmine/menu_manager.rb'
  1105. - 'lib/redmine/plugin.rb'
  1106. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1107. - 'test/test_helper.rb'
  1108. # Cop supports --auto-correct.
  1109. # Configuration parameters: EnforcedStyle.
  1110. # SupportedStyles: format, sprintf, percent
  1111. Style/FormatString:
  1112. Exclude:
  1113. - 'app/models/query.rb'
  1114. - 'config/initializers/10-patches.rb'
  1115. - 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
  1116. - 'lib/redmine/export/csv.rb'
  1117. - 'lib/redmine/helpers/gantt.rb'
  1118. - 'lib/redmine/i18n.rb'
  1119. - 'lib/redmine/info.rb'
  1120. # Configuration parameters: AllowedVariables.
  1121. Style/GlobalVars:
  1122. Exclude:
  1123. - 'test/test_helper.rb'
  1124. # Configuration parameters: MinBodyLength.
  1125. Style/GuardClause:
  1126. Enabled: false
  1127. # Cop supports --auto-correct.
  1128. # Configuration parameters: EnforcedStyle.
  1129. # SupportedStyles: braces, no_braces
  1130. Style/HashAsLastArrayItem:
  1131. Exclude:
  1132. - 'app/controllers/enumerations_controller.rb'
  1133. - 'app/models/board.rb'
  1134. # Cop supports --auto-correct.
  1135. Style/HashEachMethods:
  1136. Exclude:
  1137. - 'app/controllers/application_controller.rb'
  1138. - 'app/controllers/groups_controller.rb'
  1139. - 'app/models/mailer.rb'
  1140. - 'app/models/role.rb'
  1141. - 'test/functional/issues_custom_fields_visibility_test.rb'
  1142. - 'test/unit/auth_source_ldap_test.rb'
  1143. # Cop supports --auto-correct.
  1144. # Configuration parameters: AllowIfModifier.
  1145. Style/IfInsideElse:
  1146. Exclude:
  1147. - 'app/controllers/account_controller.rb'
  1148. - 'app/controllers/activities_controller.rb'
  1149. - 'app/controllers/application_controller.rb'
  1150. - 'app/helpers/application_helper.rb'
  1151. - 'app/helpers/issues_helper.rb'
  1152. - 'app/models/custom_field.rb'
  1153. - 'app/models/issue.rb'
  1154. - 'app/models/project.rb'
  1155. - 'app/models/query.rb'
  1156. - 'app/models/version.rb'
  1157. - 'config/initializers/10-patches.rb'
  1158. - 'lib/redmine/field_format.rb'
  1159. - 'lib/redmine/helpers/gantt.rb'
  1160. - 'lib/redmine/menu_manager.rb'
  1161. - 'lib/redmine/pop3.rb'
  1162. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1163. - 'lib/redmine/views/builders/structure.rb'
  1164. # Cop supports --auto-correct.
  1165. Style/IfUnlessModifier:
  1166. Enabled: false
  1167. # Cop supports --auto-correct.
  1168. Style/IfUnlessModifierOfIfUnless:
  1169. Exclude:
  1170. - 'app/models/attachment.rb'
  1171. # Cop supports --auto-correct.
  1172. # Configuration parameters: AllowedMethods.
  1173. # AllowedMethods: nonzero?
  1174. Style/IfWithBooleanLiteralBranches:
  1175. Exclude:
  1176. - 'app/controllers/workflows_controller.rb'
  1177. - 'app/helpers/application_helper.rb'
  1178. - 'app/models/enumeration.rb'
  1179. - 'app/models/query.rb'
  1180. - 'lib/redmine/field_format.rb'
  1181. # Cop supports --auto-correct.
  1182. # Configuration parameters: InverseMethods, InverseBlocks.
  1183. Style/InverseMethods:
  1184. Exclude:
  1185. - 'app/helpers/application_helper.rb'
  1186. - 'app/helpers/issues_helper.rb'
  1187. - 'app/helpers/repositories_helper.rb'
  1188. - 'app/models/document.rb'
  1189. - 'app/models/issue.rb'
  1190. - 'app/models/member.rb'
  1191. - 'app/models/message.rb'
  1192. - 'app/models/project.rb'
  1193. - 'app/models/tracker.rb'
  1194. - 'app/models/version.rb'
  1195. - 'app/models/wiki_content.rb'
  1196. - 'db/migrate/096_add_commit_access_permission.rb'
  1197. - 'lib/redmine/default_data/loader.rb'
  1198. - 'lib/redmine/helpers/diff.rb'
  1199. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1200. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1201. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1202. - 'test/unit/issue_test.rb'
  1203. - 'test/unit/query_test.rb'
  1204. # Cop supports --auto-correct.
  1205. # Configuration parameters: EnforcedStyle.
  1206. # SupportedStyles: line_count_dependent, lambda, literal
  1207. Style/Lambda:
  1208. Enabled: false
  1209. # Cop supports --auto-correct.
  1210. Style/LineEndConcatenation:
  1211. Enabled: false
  1212. # Cop supports --auto-correct.
  1213. # Configuration parameters: IgnoredMethods.
  1214. Style/MethodCallWithoutArgsParentheses:
  1215. Exclude:
  1216. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1217. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1218. Style/MissingRespondToMissing:
  1219. Exclude:
  1220. - 'lib/redmine/views/builders/structure.rb'
  1221. Style/MixinUsage:
  1222. Exclude:
  1223. - 'test/test_helper.rb'
  1224. # Cop supports --auto-correct.
  1225. Style/MultilineIfModifier:
  1226. Exclude:
  1227. - 'app/helpers/attachments_helper.rb'
  1228. - 'app/helpers/custom_fields_helper.rb'
  1229. - 'app/helpers/projects_helper.rb'
  1230. - 'app/helpers/reports_helper.rb'
  1231. - 'app/helpers/repositories_helper.rb'
  1232. - 'app/helpers/search_helper.rb'
  1233. - 'app/models/issue_query.rb'
  1234. - 'app/models/query.rb'
  1235. - 'app/models/time_entry_query.rb'
  1236. - 'app/views/common/feed.atom.builder'
  1237. - 'lib/redmine/helpers/gantt.rb'
  1238. - 'lib/redmine/wiki_formatting.rb'
  1239. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1240. # Cop supports --auto-correct.
  1241. Style/MultilineTernaryOperator:
  1242. Exclude:
  1243. - 'lib/redmine/ciphering.rb'
  1244. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1245. # Cop supports --auto-correct.
  1246. Style/MultipleComparison:
  1247. Exclude:
  1248. - 'app/helpers/application_helper.rb'
  1249. - 'app/models/version.rb'
  1250. - 'app/models/wiki_page.rb'
  1251. # Cop supports --auto-correct.
  1252. # Configuration parameters: EnforcedStyle.
  1253. # SupportedStyles: literals, strict
  1254. Style/MutableConstant:
  1255. Enabled: false
  1256. # Cop supports --auto-correct.
  1257. # Configuration parameters: EnforcedStyle.
  1258. # SupportedStyles: both, prefix, postfix
  1259. Style/NegatedIf:
  1260. Exclude:
  1261. - 'app/controllers/application_controller.rb'
  1262. - 'app/controllers/messages_controller.rb'
  1263. - 'app/helpers/repositories_helper.rb'
  1264. - 'app/models/attachment.rb'
  1265. - 'app/models/auth_source_ldap.rb'
  1266. - 'app/models/custom_field.rb'
  1267. - 'app/models/project.rb'
  1268. - 'app/models/repository/cvs.rb'
  1269. - 'lib/diff.rb'
  1270. - 'lib/redmine/codeset_util.rb'
  1271. - 'lib/redmine/thumbnail.rb'
  1272. # Cop supports --auto-correct.
  1273. Style/NegatedWhile:
  1274. Exclude:
  1275. - 'app/helpers/application_helper.rb'
  1276. # Cop supports --auto-correct.
  1277. # Configuration parameters: AllowedMethods.
  1278. # 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
  1279. Style/NestedParenthesizedCalls:
  1280. Exclude:
  1281. - 'lib/redmine/views/labelled_form_builder.rb'
  1282. # Cop supports --auto-correct.
  1283. Style/NestedTernaryOperator:
  1284. Exclude:
  1285. - 'app/helpers/queries_helper.rb'
  1286. - 'app/models/journal.rb'
  1287. # Cop supports --auto-correct.
  1288. # Configuration parameters: EnforcedStyle, MinBodyLength.
  1289. # SupportedStyles: skip_modifier_ifs, always
  1290. Style/Next:
  1291. Enabled: false
  1292. # Cop supports --auto-correct.
  1293. Style/Not:
  1294. Exclude:
  1295. - 'db/migrate/096_add_commit_access_permission.rb'
  1296. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1297. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1298. # Cop supports --auto-correct.
  1299. # Configuration parameters: EnforcedOctalStyle.
  1300. # SupportedOctalStyles: zero_with_o, zero_only
  1301. Style/NumericLiteralPrefix:
  1302. Exclude:
  1303. - 'test/unit/user_test.rb'
  1304. # Cop supports --auto-correct.
  1305. # Configuration parameters: Strict.
  1306. Style/NumericLiterals:
  1307. MinDigits: 9
  1308. # Cop supports --auto-correct.
  1309. # Configuration parameters: EnforcedStyle, IgnoredMethods.
  1310. # SupportedStyles: predicate, comparison
  1311. Style/NumericPredicate:
  1312. Enabled: false
  1313. # Configuration parameters: AllowedMethods.
  1314. # AllowedMethods: respond_to_missing?
  1315. Style/OptionalBooleanParameter:
  1316. Enabled: false
  1317. # Cop supports --auto-correct.
  1318. Style/OrAssignment:
  1319. Exclude:
  1320. - 'app/helpers/sort_helper.rb'
  1321. - 'app/models/repository/cvs.rb'
  1322. - 'app/models/user.rb'
  1323. - 'lib/redmine/helpers/diff.rb'
  1324. # Cop supports --auto-correct.
  1325. Style/ParallelAssignment:
  1326. Enabled: false
  1327. # Cop supports --auto-correct.
  1328. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
  1329. Style/ParenthesesAroundCondition:
  1330. Exclude:
  1331. - 'app/models/repository/subversion.rb'
  1332. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1333. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1334. # Cop supports --auto-correct.
  1335. # Configuration parameters: PreferredDelimiters.
  1336. Style/PercentLiteralDelimiters:
  1337. Enabled: false
  1338. # Cop supports --auto-correct.
  1339. Style/PerlBackrefs:
  1340. Enabled: false
  1341. # Cop supports --auto-correct.
  1342. # Configuration parameters: EnforcedStyle.
  1343. # SupportedStyles: short, verbose
  1344. Style/PreferredHashMethods:
  1345. Enabled: false
  1346. # Cop supports --auto-correct.
  1347. Style/Proc:
  1348. Exclude:
  1349. - 'app/models/attachment.rb'
  1350. - 'app/models/document.rb'
  1351. - 'app/models/email_address.rb'
  1352. - 'app/models/issue.rb'
  1353. - 'app/models/journal.rb'
  1354. - 'app/models/message.rb'
  1355. - 'app/models/news.rb'
  1356. - 'app/models/setting.rb'
  1357. - 'app/models/time_entry.rb'
  1358. - 'app/models/token.rb'
  1359. - 'app/models/user.rb'
  1360. - 'app/models/wiki_content_version.rb'
  1361. - 'config/initializers/10-patches.rb'
  1362. - 'lib/redmine.rb'
  1363. - 'test/integration/lib/redmine/menu_manager_test.rb'
  1364. - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
  1365. - 'test/unit/lib/redmine/menu_manager/menu_item_test.rb'
  1366. # Cop supports --auto-correct.
  1367. # Configuration parameters: Methods.
  1368. Style/RedundantArgument:
  1369. Exclude:
  1370. - 'app/controllers/account_controller.rb'
  1371. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1372. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1373. - 'test/functional/projects_controller_test.rb'
  1374. - 'test/unit/issue_test.rb'
  1375. # Cop supports --auto-correct.
  1376. Style/RedundantAssignment:
  1377. Exclude:
  1378. - 'app/models/mail_handler.rb'
  1379. - 'app/models/query.rb'
  1380. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1381. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1382. - 'lib/redmine/wiki_formatting.rb'
  1383. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  1384. # Cop supports --auto-correct.
  1385. Style/RedundantBegin:
  1386. Exclude:
  1387. - 'app/controllers/issues_controller.rb'
  1388. - 'app/models/auth_source.rb'
  1389. - 'app/models/member.rb'
  1390. - 'app/models/repository.rb'
  1391. - 'app/models/setting.rb'
  1392. - 'lib/redmine/codeset_util.rb'
  1393. - 'lib/redmine/plugin.rb'
  1394. - 'test/unit/issue_nested_set_concurrency_test.rb'
  1395. - 'test/unit/project_nested_set_concurrency_test.rb'
  1396. - 'test/unit/query_test.rb'
  1397. # Cop supports --auto-correct.
  1398. Style/RedundantCondition:
  1399. Exclude:
  1400. - 'app/controllers/messages_controller.rb'
  1401. - 'app/controllers/previews_controller.rb'
  1402. - 'app/models/issue.rb'
  1403. # Cop supports --auto-correct.
  1404. Style/RedundantConditional:
  1405. Exclude:
  1406. - 'app/controllers/workflows_controller.rb'
  1407. - 'app/helpers/application_helper.rb'
  1408. - 'app/models/enumeration.rb'
  1409. - 'lib/redmine/field_format.rb'
  1410. # Cop supports --auto-correct.
  1411. Style/RedundantInterpolation:
  1412. Exclude:
  1413. - 'app/helpers/my_helper.rb'
  1414. - 'app/helpers/queries_helper.rb'
  1415. - 'app/models/query.rb'
  1416. - 'app/views/common/feed.atom.builder'
  1417. - 'app/views/journals/index.builder'
  1418. - 'lib/redmine/helpers/time_report.rb'
  1419. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1420. - 'lib/redmine/wiki_formatting.rb'
  1421. - 'test/functional/versions_controller_test.rb'
  1422. - 'test/functional/watchers_controller_test.rb'
  1423. # Cop supports --auto-correct.
  1424. Style/RedundantParentheses:
  1425. Exclude:
  1426. - 'app/controllers/search_controller.rb'
  1427. - 'app/models/enumeration.rb'
  1428. - 'app/models/principal.rb'
  1429. - 'app/models/repository/cvs.rb'
  1430. - 'lib/redmine/field_format.rb'
  1431. - 'lib/redmine/platform.rb'
  1432. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1433. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1434. - 'test/unit/project_test.rb'
  1435. - 'test/unit/user_test.rb'
  1436. - 'test/unit/version_test.rb'
  1437. # Cop supports --auto-correct.
  1438. Style/RedundantRegexpCharacterClass:
  1439. Exclude:
  1440. - 'app/helpers/application_helper.rb'
  1441. # Cop supports --auto-correct.
  1442. Style/RedundantRegexpEscape:
  1443. Enabled: false
  1444. # Cop supports --auto-correct.
  1445. # Configuration parameters: AllowMultipleReturnValues.
  1446. Style/RedundantReturn:
  1447. Enabled: false
  1448. # Cop supports --auto-correct.
  1449. Style/RedundantSelf:
  1450. Enabled: false
  1451. # Cop supports --auto-correct.
  1452. Style/RedundantSelfAssignment:
  1453. Exclude:
  1454. - 'lib/redmine/menu_manager.rb'
  1455. # Cop supports --auto-correct.
  1456. Style/RedundantSort:
  1457. Exclude:
  1458. - 'app/models/import.rb'
  1459. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1460. - 'test/functional/issues_controller_test.rb'
  1461. - 'test/unit/member_test.rb'
  1462. # Cop supports --auto-correct.
  1463. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  1464. # SupportedStyles: slashes, percent_r, mixed
  1465. Style/RegexpLiteral:
  1466. Enabled: false
  1467. # Cop supports --auto-correct.
  1468. Style/RescueModifier:
  1469. Exclude:
  1470. - 'app/helpers/avatars_helper.rb'
  1471. - 'app/models/custom_field.rb'
  1472. - 'app/models/import.rb'
  1473. - 'app/models/query.rb'
  1474. - 'app/models/repository.rb'
  1475. - 'lib/redmine/export/csv.rb'
  1476. - 'lib/redmine/field_format.rb'
  1477. - 'lib/redmine/search.rb'
  1478. - 'lib/redmine/wiki_formatting.rb'
  1479. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  1480. # Cop supports --auto-correct.
  1481. # Configuration parameters: EnforcedStyle.
  1482. # SupportedStyles: implicit, explicit
  1483. Style/RescueStandardError:
  1484. Enabled: false
  1485. # Cop supports --auto-correct.
  1486. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
  1487. # AllowedMethods: present?, blank?, presence, try, try!
  1488. Style/SafeNavigation:
  1489. Enabled: false
  1490. # Cop supports --auto-correct.
  1491. Style/SelfAssignment:
  1492. Exclude:
  1493. - 'app/controllers/repositories_controller.rb'
  1494. - 'app/helpers/reports_helper.rb'
  1495. - 'app/models/auth_source_ldap.rb'
  1496. - 'app/models/project.rb'
  1497. - 'app/models/query.rb'
  1498. - 'app/models/repository/cvs.rb'
  1499. - 'lib/redmine/helpers/calendar.rb'
  1500. - 'lib/redmine/helpers/gantt.rb'
  1501. - 'lib/redmine/helpers/time_report.rb'
  1502. # Cop supports --auto-correct.
  1503. # Configuration parameters: AllowAsExpressionSeparator.
  1504. Style/Semicolon:
  1505. Exclude:
  1506. - 'app/controllers/account_controller.rb'
  1507. - 'app/controllers/context_menus_controller.rb'
  1508. - 'app/controllers/journals_controller.rb'
  1509. - 'app/controllers/messages_controller.rb'
  1510. - 'app/controllers/repositories_controller.rb'
  1511. - 'app/models/journal.rb'
  1512. - 'app/models/mail_handler.rb'
  1513. - 'app/models/query.rb'
  1514. - 'lib/redmine/configuration.rb'
  1515. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1516. - 'lib/redmine/sort_criteria.rb'
  1517. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1518. # Cop supports --auto-correct.
  1519. # Configuration parameters: AllowIfMethodIsEmpty.
  1520. Style/SingleLineMethods:
  1521. Enabled: false
  1522. # Cop supports --auto-correct.
  1523. # Configuration parameters: AllowModifier.
  1524. Style/SoleNestedConditional:
  1525. Exclude:
  1526. - 'app/controllers/application_controller.rb'
  1527. - 'app/controllers/journals_controller.rb'
  1528. - 'app/controllers/wiki_controller.rb'
  1529. - 'app/models/board.rb'
  1530. - 'app/models/changeset.rb'
  1531. - 'app/models/issue.rb'
  1532. - 'app/models/issue_import.rb'
  1533. - 'app/models/issue_relation.rb'
  1534. - 'app/models/mail_handler.rb'
  1535. - 'app/models/principal.rb'
  1536. - 'app/models/project.rb'
  1537. - 'app/models/query.rb'
  1538. - 'app/models/time_entry.rb'
  1539. - 'app/models/user_import.rb'
  1540. - 'app/models/version.rb'
  1541. - 'app/models/watcher.rb'
  1542. - 'app/models/wiki_page.rb'
  1543. - 'lib/redmine/core_ext/active_record.rb'
  1544. # Cop supports --auto-correct.
  1545. # Configuration parameters: .
  1546. # SupportedStyles: use_perl_names, use_english_names
  1547. Style/SpecialGlobalVars:
  1548. EnforcedStyle: use_perl_names
  1549. # Cop supports --auto-correct.
  1550. Style/StderrPuts:
  1551. Exclude:
  1552. - 'config/environment.rb'
  1553. - 'config/initializers/10-patches.rb'
  1554. # Cop supports --auto-correct.
  1555. Style/StringChars:
  1556. Exclude:
  1557. - 'app/models/user.rb'
  1558. # Cop supports --auto-correct.
  1559. Style/StringConcatenation:
  1560. Enabled: false
  1561. # Cop supports --auto-correct.
  1562. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  1563. # SupportedStyles: single_quotes, double_quotes
  1564. Style/StringLiterals:
  1565. Enabled: false
  1566. # Cop supports --auto-correct.
  1567. # Configuration parameters: EnforcedStyle.
  1568. # SupportedStyles: single_quotes, double_quotes
  1569. Style/StringLiteralsInInterpolation:
  1570. Exclude:
  1571. - 'app/models/issue_query.rb'
  1572. - 'config/environment.rb'
  1573. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1574. - 'lib/redmine/wiki_formatting.rb'
  1575. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1576. - 'test/unit/member_test.rb'
  1577. # Cop supports --auto-correct.
  1578. Style/StructInheritance:
  1579. Exclude:
  1580. - 'lib/redmine/notifiable.rb'
  1581. - 'lib/redmine/sudo_mode.rb'
  1582. # Cop supports --auto-correct.
  1583. # Configuration parameters: MinSize.
  1584. # SupportedStyles: percent, brackets
  1585. Style/SymbolArray:
  1586. EnforcedStyle: brackets
  1587. # Cop supports --auto-correct.
  1588. # Configuration parameters: AllowMethodsWithArguments, IgnoredMethods.
  1589. # IgnoredMethods: respond_to, define_method
  1590. Style/SymbolProc:
  1591. Enabled: false
  1592. # Cop supports --auto-correct.
  1593. # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
  1594. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
  1595. Style/TernaryParentheses:
  1596. Enabled: false
  1597. # Cop supports --auto-correct.
  1598. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
  1599. # 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
  1600. Style/TrivialAccessors:
  1601. Exclude:
  1602. - 'app/models/issue.rb'
  1603. - 'app/models/journal.rb'
  1604. - 'app/models/query.rb'
  1605. - 'lib/redmine/access_control.rb'
  1606. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1607. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1608. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1609. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1610. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1611. # Cop supports --auto-correct.
  1612. Style/UnlessElse:
  1613. Exclude:
  1614. - 'app/controllers/auth_sources_controller.rb'
  1615. - 'app/controllers/trackers_controller.rb'
  1616. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1617. - 'lib/redmine/unified_diff.rb'
  1618. # Cop supports --auto-correct.
  1619. Style/VariableInterpolation:
  1620. Exclude:
  1621. - 'lib/redmine/configuration.rb'
  1622. # Cop supports --auto-correct.
  1623. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
  1624. # SupportedStyles: percent, brackets
  1625. Style/WordArray:
  1626. Enabled: false
  1627. # Cop supports --auto-correct.
  1628. Style/ZeroLengthPredicate:
  1629. Exclude:
  1630. - 'app/models/import.rb'
  1631. - 'app/models/mail_handler.rb'
  1632. - 'app/models/user.rb'
  1633. - 'lib/redmine/field_format.rb'
  1634. - 'lib/redmine/unified_diff.rb'
  1635. - 'lib/redmine/wiki_formatting/macros.rb'
  1636. - 'test/functional/custom_fields_controller_test.rb'
  1637. - 'test/object_helpers.rb'
  1638. - 'test/unit/activity_test.rb'
  1639. - 'test/unit/custom_field_test.rb'
  1640. # Cop supports --auto-correct.
  1641. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  1642. # URISchemes: http, https
  1643. Layout/LineLength:
  1644. Max: 194