THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

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

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