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

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