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

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