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

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