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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659
  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/UselessAssignment:
  392. Enabled: false
  393. # Configuration parameters: CheckForMethodsWithNoSideEffects.
  394. Lint/Void:
  395. Exclude:
  396. - 'app/models/query.rb'
  397. - 'app/models/time_entry.rb'
  398. - 'app/models/wiki_content_version.rb'
  399. - 'lib/redmine/unified_diff.rb'
  400. Naming/ConstantName:
  401. Exclude:
  402. - 'app/models/document_category.rb'
  403. - 'app/models/issue_priority.rb'
  404. - 'app/models/time_entry_activity.rb'
  405. - 'lib/redmine/helpers/gantt.rb'
  406. # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
  407. # 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
  408. Naming/FileName:
  409. Exclude:
  410. - 'config/initializers/00-core_plugins.rb'
  411. - 'config/initializers/10-patches.rb'
  412. - 'config/initializers/20-mime_types.rb'
  413. - 'config/initializers/30-redmine.rb'
  414. # Configuration parameters: EnforcedStyleForLeadingUnderscores.
  415. # SupportedStylesForLeadingUnderscores: disallowed, required, optional
  416. Naming/MemoizedInstanceVariableName:
  417. Exclude:
  418. - 'app/controllers/email_addresses_controller.rb'
  419. - 'app/controllers/users_controller.rb'
  420. - 'app/controllers/workflows_controller.rb'
  421. - 'app/models/issue.rb'
  422. - 'app/models/project.rb'
  423. - 'app/models/query.rb'
  424. - 'app/models/role.rb'
  425. - 'lib/redmine/field_format.rb'
  426. - 'lib/redmine/helpers/calendar.rb'
  427. - 'lib/redmine/search.rb'
  428. # Configuration parameters: EnforcedStyle, IgnoredPatterns.
  429. # SupportedStyles: snake_case, camelCase
  430. Naming/MethodName:
  431. Exclude:
  432. - 'lib/redmine/export/pdf.rb'
  433. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  434. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  435. - 'test/helpers/application_helper_test.rb'
  436. # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
  437. # AllowedNames: io, id, to, by, on, in, at, ip, db, os
  438. Naming/MethodParameterName:
  439. Enabled: false
  440. # Cop supports --auto-correct.
  441. # Configuration parameters: PreferredName.
  442. Naming/RescuedExceptionsVariableName:
  443. Exclude:
  444. - 'app/models/user.rb'
  445. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  446. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  447. # Configuration parameters: EnforcedStyle.
  448. # SupportedStyles: snake_case, camelCase
  449. Naming/VariableName:
  450. Exclude:
  451. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  452. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  453. # Configuration parameters: EnforcedStyle.
  454. # SupportedStyles: snake_case, normalcase, non_integer
  455. Naming/VariableNumber:
  456. Exclude:
  457. - 'test/functional/versions_controller_test.rb'
  458. - 'test/helpers/application_helper_test.rb'
  459. - 'test/unit/lib/redmine/export/pdf_test.rb'
  460. - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
  461. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  462. - 'test/unit/project_test.rb'
  463. Performance/FixedSize:
  464. Exclude:
  465. - 'test/integration/api_test/issues_test.rb'
  466. - 'test/integration/attachments_test.rb'
  467. # Cop supports --auto-correct.
  468. Performance/RedundantMatch:
  469. Exclude:
  470. - 'app/models/issue_relation.rb'
  471. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  472. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  473. # Cop supports --auto-correct.
  474. # Configuration parameters: MaxKeyValuePairs.
  475. Performance/RedundantMerge:
  476. Exclude:
  477. - 'app/controllers/issues_controller.rb'
  478. - 'app/helpers/application_helper.rb'
  479. - 'app/helpers/avatars_helper.rb'
  480. - 'app/helpers/custom_fields_helper.rb'
  481. - 'app/helpers/workflows_helper.rb'
  482. - 'app/models/auth_source_ldap.rb'
  483. - 'app/models/principal.rb'
  484. - 'lib/redmine/access_control.rb'
  485. - 'test/functional/imports_controller_test.rb'
  486. - 'test/unit/issue_import_test.rb'
  487. - 'test/unit/time_entry_import_test.rb'
  488. # Cop supports --auto-correct.
  489. Performance/StringReplacement:
  490. Exclude:
  491. - 'app/helpers/application_helper.rb'
  492. - 'app/helpers/imports_helper.rb'
  493. - 'app/helpers/settings_helper.rb'
  494. - 'lib/redmine/core_ext/string/conversions.rb'
  495. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  496. - 'test/functional/repositories_cvs_controller_test.rb'
  497. - 'test/functional/repositories_git_controller_test.rb'
  498. - 'test/helpers/application_helper_test.rb'
  499. - 'test/integration/repositories_git_test.rb'
  500. - 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb'
  501. - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
  502. - 'test/unit/repository_cvs_test.rb'
  503. - 'test/unit/repository_git_test.rb'
  504. # Configuration parameters: Include.
  505. # Include: app/models/**/*.rb
  506. Rails/ActiveRecordOverride:
  507. Exclude:
  508. - 'app/models/email_address.rb'
  509. - 'app/models/issue.rb'
  510. - 'app/models/journal.rb'
  511. - 'app/models/member.rb'
  512. # Cop supports --auto-correct.
  513. Rails/ApplicationController:
  514. Exclude:
  515. - 'app/controllers/mail_handler_controller.rb'
  516. - 'app/controllers/sys_controller.rb'
  517. - 'test/unit/lib/redmine/hook_test.rb'
  518. # Cop supports --auto-correct.
  519. Rails/ApplicationMailer:
  520. Exclude:
  521. - 'app/models/mail_handler.rb'
  522. - 'app/models/mailer.rb'
  523. # Cop supports --auto-correct.
  524. Rails/ApplicationRecord:
  525. Enabled: false
  526. # Cop supports --auto-correct.
  527. # Configuration parameters: Include.
  528. # Include: **/test/**/*
  529. Rails/AssertNot:
  530. Enabled: false
  531. # Cop supports --auto-correct.
  532. # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
  533. Rails/Blank:
  534. Exclude:
  535. - 'app/controllers/application_controller.rb'
  536. - 'app/controllers/context_menus_controller.rb'
  537. - 'app/controllers/repositories_controller.rb'
  538. - 'app/controllers/watchers_controller.rb'
  539. - 'app/helpers/queries_helper.rb'
  540. - 'app/helpers/repositories_helper.rb'
  541. - 'app/models/mailer.rb'
  542. - 'app/models/query.rb'
  543. - 'app/models/repository/git.rb'
  544. - 'app/models/role.rb'
  545. - 'lib/redmine/field_format.rb'
  546. - 'lib/redmine/wiki_formatting/macros.rb'
  547. # Configuration parameters: Include.
  548. # Include: db/migrate/*.rb
  549. Rails/CreateTableWithTimestamps:
  550. Enabled: false
  551. # Configuration parameters: EnforcedStyle.
  552. # SupportedStyles: strict, flexible
  553. Rails/Date:
  554. Enabled: false
  555. # Cop supports --auto-correct.
  556. # Configuration parameters: EnforceForPrefixed.
  557. Rails/Delegate:
  558. Exclude:
  559. - 'app/models/changeset.rb'
  560. - 'app/models/custom_field.rb'
  561. - 'app/models/custom_field_enumeration.rb'
  562. - 'app/models/custom_field_value.rb'
  563. - 'app/models/custom_value.rb'
  564. - 'app/models/group.rb'
  565. - 'app/models/message.rb'
  566. - 'app/models/repository.rb'
  567. - 'app/models/repository/git.rb'
  568. - 'app/models/time_entry_activity.rb'
  569. - 'app/models/wiki_content.rb'
  570. - 'app/models/wiki_content_version.rb'
  571. - 'lib/redmine/menu_manager.rb'
  572. # Cop supports --auto-correct.
  573. # Configuration parameters: Whitelist.
  574. # Whitelist: find_by_sql
  575. Rails/DynamicFindBy:
  576. Enabled: false
  577. # Configuration parameters: Include.
  578. # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
  579. Rails/Exit:
  580. Exclude:
  581. - 'lib/**/*.rake'
  582. - 'config/environment.rb'
  583. - 'config/initializers/10-patches.rb'
  584. - 'config/routes.rb'
  585. # Configuration parameters: EnforcedStyle.
  586. # SupportedStyles: slashes, arguments
  587. Rails/FilePath:
  588. Exclude:
  589. - 'app/models/attachment.rb'
  590. - 'app/models/import.rb'
  591. - 'app/models/setting.rb'
  592. - 'config/environment.rb'
  593. - 'config/initializers/00-core_plugins.rb'
  594. - 'config/initializers/10-patches.rb'
  595. - 'lib/redmine/configuration.rb'
  596. - 'lib/redmine/export/pdf.rb'
  597. - 'lib/redmine/plugin.rb'
  598. - 'lib/redmine/version.rb'
  599. - 'test/application_system_test_case.rb'
  600. - 'test/functional/custom_fields_controller_test.rb'
  601. - 'test/functional/settings_controller_test.rb'
  602. - 'test/test_helper.rb'
  603. - 'test/unit/lib/redmine/configuration_test.rb'
  604. - 'test/unit/lib/redmine/i18n_test.rb'
  605. - 'test/unit/lib/redmine/plugin_test.rb'
  606. # Cop supports --auto-correct.
  607. # Configuration parameters: Include.
  608. # Include: app/models/**/*.rb
  609. Rails/FindBy:
  610. Exclude:
  611. - 'app/models/attachment.rb'
  612. - 'app/models/enumeration.rb'
  613. - 'app/models/issue_import.rb'
  614. - 'app/models/repository.rb'
  615. - 'app/models/repository/cvs.rb'
  616. - 'app/models/repository/git.rb'
  617. - 'app/models/repository/mercurial.rb'
  618. - 'app/models/time_entry_query.rb'
  619. - 'app/models/user.rb'
  620. - 'app/models/wiki.rb'
  621. - 'app/models/wiki_content_version.rb'
  622. # Cop supports --auto-correct.
  623. # Configuration parameters: Include.
  624. # Include: app/models/**/*.rb
  625. Rails/FindEach:
  626. Exclude:
  627. - 'app/models/auth_source.rb'
  628. - 'app/models/group.rb'
  629. - 'app/models/issue.rb'
  630. - 'app/models/issue_status.rb'
  631. - 'app/models/project.rb'
  632. - 'app/models/query.rb'
  633. - 'app/models/repository.rb'
  634. - 'app/models/setting.rb'
  635. - 'app/models/watcher.rb'
  636. - 'app/models/wiki_page.rb'
  637. # Configuration parameters: Include.
  638. # Include: app/models/**/*.rb
  639. Rails/HasAndBelongsToMany:
  640. Exclude:
  641. - 'app/models/changeset.rb'
  642. - 'app/models/custom_field.rb'
  643. - 'app/models/group.rb'
  644. - 'app/models/issue.rb'
  645. - 'app/models/issue_custom_field.rb'
  646. - 'app/models/project.rb'
  647. - 'app/models/query.rb'
  648. - 'app/models/role.rb'
  649. - 'app/models/tracker.rb'
  650. - 'app/models/user.rb'
  651. # Configuration parameters: Include.
  652. # Include: app/models/**/*.rb
  653. Rails/HasManyOrHasOneDependent:
  654. Exclude:
  655. - 'app/models/auth_source.rb'
  656. - 'app/models/document_category.rb'
  657. - 'app/models/issue_priority.rb'
  658. - 'app/models/issue_status.rb'
  659. - 'app/models/project.rb'
  660. - 'app/models/time_entry_activity.rb'
  661. - 'app/models/tracker.rb'
  662. - 'app/models/wiki.rb'
  663. # Cop supports --auto-correct.
  664. # Configuration parameters: EnforcedStyle.
  665. # SupportedStyles: numeric, symbolic
  666. Rails/HttpStatus:
  667. Exclude:
  668. - 'app/controllers/mail_handler_controller.rb'
  669. - 'app/controllers/sys_controller.rb'
  670. - 'app/controllers/watchers_controller.rb'
  671. # Configuration parameters: Include.
  672. # Include: app/models/**/*.rb
  673. Rails/InverseOf:
  674. Exclude:
  675. - 'app/models/board.rb'
  676. - 'app/models/custom_field.rb'
  677. - 'app/models/document_category.rb'
  678. - 'app/models/issue.rb'
  679. - 'app/models/issue_category.rb'
  680. - 'app/models/issue_priority.rb'
  681. - 'app/models/issue_status.rb'
  682. - 'app/models/journal.rb'
  683. - 'app/models/member.rb'
  684. - 'app/models/news.rb'
  685. - 'app/models/principal.rb'
  686. - 'app/models/project.rb'
  687. - 'app/models/repository.rb'
  688. - 'app/models/repository/mercurial.rb'
  689. - 'app/models/time_entry_activity.rb'
  690. - 'app/models/user.rb'
  691. - 'app/models/version.rb'
  692. - 'app/models/wiki.rb'
  693. - 'app/models/wiki_page.rb'
  694. # Configuration parameters: Include.
  695. # Include: app/controllers/**/*.rb
  696. Rails/LexicallyScopedActionFilter:
  697. Exclude:
  698. - 'app/controllers/projects_controller.rb'
  699. # Cop supports --auto-correct.
  700. Rails/LinkToBlank:
  701. Exclude:
  702. - 'app/helpers/avatars_helper.rb'
  703. # Configuration parameters: Include.
  704. # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
  705. Rails/Output:
  706. Exclude:
  707. - 'app/models/mail_handler.rb'
  708. - 'config/routes.rb'
  709. - 'lib/redmine/unified_diff.rb'
  710. Rails/OutputSafety:
  711. Enabled: false
  712. # Cop supports --auto-correct.
  713. Rails/PluralizationGrammar:
  714. Exclude:
  715. - 'lib/redmine/helpers/time_report.rb'
  716. - 'test/functional/gantts_controller_test.rb'
  717. - 'test/unit/mailer_test.rb'
  718. - 'test/unit/query_test.rb'
  719. # Cop supports --auto-correct.
  720. Rails/Presence:
  721. Exclude:
  722. - 'app/controllers/activities_controller.rb'
  723. - 'app/helpers/application_helper.rb'
  724. - 'app/models/repository.rb'
  725. - 'lib/redmine/codeset_util.rb'
  726. - 'lib/redmine/i18n.rb'
  727. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  728. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  729. - 'lib/redmine/scm/adapters/git_adapter.rb'
  730. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  731. - 'lib/redmine/sort_criteria.rb'
  732. # Cop supports --auto-correct.
  733. # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
  734. Rails/Present:
  735. Enabled: false
  736. # Cop supports --auto-correct.
  737. # Configuration parameters: Include.
  738. # Include: app/models/**/*.rb
  739. Rails/ReadWriteAttribute:
  740. Exclude:
  741. - 'app/models/attachment.rb'
  742. - 'app/models/auth_source_ldap.rb'
  743. - 'app/models/changeset.rb'
  744. - 'app/models/custom_field.rb'
  745. - 'app/models/email_address.rb'
  746. - 'app/models/issue.rb'
  747. - 'app/models/journal_detail.rb'
  748. - 'app/models/message.rb'
  749. - 'app/models/query.rb'
  750. - 'app/models/repository.rb'
  751. - 'app/models/repository/git.rb'
  752. - 'app/models/role.rb'
  753. - 'app/models/setting.rb'
  754. - 'app/models/time_entry.rb'
  755. - 'app/models/user.rb'
  756. - 'app/models/user_preference.rb'
  757. - 'app/models/wiki_page.rb'
  758. Rails/ReflectionClassName:
  759. Exclude:
  760. - 'lib/redmine/nested_set/issue_nested_set.rb'
  761. - 'lib/redmine/nested_set/project_nested_set.rb'
  762. # Cop supports --auto-correct.
  763. # Configuration parameters: Include.
  764. # Include: **/test/**/*
  765. Rails/RefuteMethods:
  766. Exclude:
  767. - 'test/functional/projects_controller_test.rb'
  768. - 'test/functional/wiki_controller_test.rb'
  769. - 'test/integration/account_test.rb'
  770. - 'test/integration/api_test/my_test.rb'
  771. - 'test/unit/attachment_test.rb'
  772. - 'test/unit/custom_field_test.rb'
  773. - 'test/unit/lib/redmine/project_jump_box_test.rb'
  774. - 'test/unit/mail_handler_test.rb'
  775. # Configuration parameters: Blacklist, Whitelist.
  776. # Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
  777. Rails/SkipsModelValidations:
  778. Enabled: false
  779. # Cop supports --auto-correct.
  780. # Configuration parameters: EnforcedStyle.
  781. # SupportedStyles: strict, flexible
  782. Rails/TimeZone:
  783. Enabled: false
  784. # Cop supports --auto-correct.
  785. # Configuration parameters: Include.
  786. # Include: app/models/**/*.rb
  787. Rails/Validation:
  788. Enabled: false
  789. Security/Eval:
  790. Exclude:
  791. - 'app/helpers/attachments_helper.rb'
  792. - 'app/models/user.rb'
  793. - 'config/initializers/00-core_plugins.rb'
  794. Security/Open:
  795. Exclude:
  796. - 'app/models/version.rb'
  797. # Cop supports --auto-correct.
  798. Security/YAMLLoad:
  799. Exclude:
  800. - 'Gemfile'
  801. - 'app/models/setting.rb'
  802. - 'lib/redmine/configuration.rb'
  803. # Configuration parameters: EnforcedStyle.
  804. # SupportedStyles: inline, group
  805. Style/AccessModifierDeclarations:
  806. Exclude:
  807. - 'app/controllers/application_controller.rb'
  808. - 'app/controllers/repositories_controller.rb'
  809. - 'app/models/group_builtin.rb'
  810. - 'app/models/issue.rb'
  811. - 'app/models/query.rb'
  812. - 'app/models/repository.rb'
  813. - 'app/models/repository/bazaar.rb'
  814. - 'app/models/repository/cvs.rb'
  815. - 'app/models/repository/git.rb'
  816. - 'app/models/repository/mercurial.rb'
  817. - 'app/models/user.rb'
  818. - 'app/models/user_preference.rb'
  819. - 'app/models/wiki_page.rb'
  820. - 'lib/redmine/field_format.rb'
  821. - 'lib/redmine/plugin.rb'
  822. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  823. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  824. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  825. - 'test/functional/issues_controller_test.rb'
  826. - 'test/unit/lib/redmine/helpers/gantt_test.rb'
  827. # Cop supports --auto-correct.
  828. # Configuration parameters: EnforcedStyle.
  829. # SupportedStyles: prefer_alias, prefer_alias_method
  830. Style/Alias:
  831. Exclude:
  832. - 'app/controllers/repositories_controller.rb'
  833. - 'app/models/custom_field_enumeration.rb'
  834. - 'app/models/enumeration.rb'
  835. - 'app/models/issue.rb'
  836. - 'app/models/issue_category.rb'
  837. - 'app/models/issue_query.rb'
  838. - 'app/models/issue_status.rb'
  839. - 'app/models/member.rb'
  840. - 'app/models/project.rb'
  841. - 'app/models/user.rb'
  842. - 'app/models/version.rb'
  843. - 'config/initializers/10-patches.rb'
  844. - 'lib/redmine/export/pdf.rb'
  845. - 'lib/redmine/menu_manager.rb'
  846. - 'lib/redmine/plugin.rb'
  847. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  848. - 'lib/redmine/wiki_formatting/textile/formatter.rb'
  849. # Cop supports --auto-correct.
  850. # Configuration parameters: EnforcedStyle.
  851. # SupportedStyles: always, conditionals
  852. Style/AndOr:
  853. Exclude:
  854. - 'app/controllers/account_controller.rb'
  855. - 'app/controllers/application_controller.rb'
  856. - 'app/controllers/calendars_controller.rb'
  857. - 'app/helpers/repositories_helper.rb'
  858. - 'app/models/query.rb'
  859. - 'db/migrate/022_serialize_possibles_values.rb'
  860. - 'lib/redmine/export/pdf.rb'
  861. - 'lib/redmine/field_format.rb'
  862. - 'lib/redmine/helpers/gantt.rb'
  863. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  864. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  865. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  866. - 'lib/redmine/scm/adapters/git_adapter.rb'
  867. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  868. - 'lib/redmine/wiki_formatting.rb'
  869. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  870. # Cop supports --auto-correct.
  871. # Configuration parameters: EnforcedStyle.
  872. # SupportedStyles: percent_q, bare_percent
  873. Style/BarePercentLiterals:
  874. Exclude:
  875. - 'test/integration/api_test/api_test.rb'
  876. # Cop supports --auto-correct.
  877. Style/BlockComments:
  878. Exclude:
  879. - 'lib/diff.rb'
  880. # Cop supports --auto-correct.
  881. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
  882. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
  883. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  884. # FunctionalMethods: let, let!, subject, watch
  885. # IgnoredMethods: lambda, proc, it
  886. Style/BlockDelimiters:
  887. Enabled: false
  888. # Cop supports --auto-correct.
  889. # Configuration parameters: EnforcedStyle.
  890. # SupportedStyles: braces, no_braces, context_dependent
  891. Style/BracesAroundHashParameters:
  892. Enabled: false
  893. # Cop supports --auto-correct.
  894. # Configuration parameters: AutoCorrect, EnforcedStyle.
  895. # SupportedStyles: nested, compact
  896. Style/ClassAndModuleChildren:
  897. Enabled: false
  898. # Cop supports --auto-correct.
  899. Style/ClassMethods:
  900. Exclude:
  901. - 'lib/diff.rb'
  902. Style/ClassVars:
  903. Exclude:
  904. - 'app/models/attachment.rb'
  905. - 'config/initializers/10-patches.rb'
  906. - 'lib/redmine/activity.rb'
  907. - 'lib/redmine/export/pdf.rb'
  908. - 'lib/redmine/hook.rb'
  909. - 'lib/redmine/i18n.rb'
  910. - 'lib/redmine/menu_manager.rb'
  911. - 'lib/redmine/my_page.rb'
  912. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  913. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  914. - 'lib/redmine/scm/adapters/git_adapter.rb'
  915. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  916. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  917. - 'lib/redmine/search.rb'
  918. - 'lib/redmine/themes.rb'
  919. - 'lib/redmine/wiki_formatting.rb'
  920. - 'lib/redmine/wiki_formatting/macros.rb'
  921. - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
  922. - 'test/helpers/activities_helper_test.rb'
  923. # Cop supports --auto-correct.
  924. Style/ColonMethodCall:
  925. Exclude:
  926. - 'Gemfile'
  927. - 'app/controllers/admin_controller.rb'
  928. - 'app/models/setting.rb'
  929. - 'lib/redmine/configuration.rb'
  930. - 'lib/redmine/export/pdf.rb'
  931. - 'lib/redmine/wiki_formatting.rb'
  932. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  933. - 'test/test_helper.rb'
  934. - 'test/unit/default_data_test.rb'
  935. - 'test/unit/lib/redmine/export/pdf_test.rb'
  936. # Cop supports --auto-correct.
  937. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
  938. # SupportedStyles: assign_to_condition, assign_inside_condition
  939. Style/ConditionalAssignment:
  940. Enabled: false
  941. Style/Documentation:
  942. Enabled: false
  943. Style/DoubleNegation:
  944. Exclude:
  945. - 'app/controllers/application_controller.rb'
  946. - 'app/helpers/application_helper.rb'
  947. - 'app/models/attachment.rb'
  948. - 'app/models/issue_import.rb'
  949. - 'app/models/mailer.rb'
  950. - 'app/models/query.rb'
  951. - 'app/models/user.rb'
  952. - 'lib/redmine/sudo_mode.rb'
  953. # Cop supports --auto-correct.
  954. Style/EachWithObject:
  955. Exclude:
  956. - 'app/controllers/repositories_controller.rb'
  957. - 'app/helpers/queries_helper.rb'
  958. - 'app/models/issue.rb'
  959. - 'app/models/issue_import.rb'
  960. - 'app/models/journal.rb'
  961. - 'app/models/mail_handler.rb'
  962. - 'app/models/project.rb'
  963. - 'app/models/query.rb'
  964. - 'app/models/repository.rb'
  965. - 'app/models/setting.rb'
  966. - 'app/models/time_entry_import.rb'
  967. - 'app/models/workflow_permission.rb'
  968. - 'config/initializers/10-patches.rb'
  969. - 'lib/redmine/acts/positioned.rb'
  970. - 'lib/redmine/configuration.rb'
  971. - 'lib/redmine/i18n.rb'
  972. - 'lib/redmine/mime_type.rb'
  973. - 'lib/redmine/my_page.rb'
  974. - 'lib/redmine/sort_criteria.rb'
  975. - 'test/test_helper.rb'
  976. # Cop supports --auto-correct.
  977. Style/EmptyCaseCondition:
  978. Exclude:
  979. - 'app/models/auth_source_ldap.rb'
  980. - 'app/models/issue_priority.rb'
  981. # Cop supports --auto-correct.
  982. # Configuration parameters: EnforcedStyle.
  983. # SupportedStyles: empty, nil, both
  984. Style/EmptyElse:
  985. Exclude:
  986. - 'app/models/mail_handler.rb'
  987. # Cop supports --auto-correct.
  988. # Configuration parameters: EnforcedStyle.
  989. # SupportedStyles: compact, expanded
  990. Style/EmptyMethod:
  991. Enabled: false
  992. Style/EvalWithLocation:
  993. Exclude:
  994. - 'app/helpers/attachments_helper.rb'
  995. # Cop supports --auto-correct.
  996. Style/ExpandPathArguments:
  997. Enabled: false
  998. # Cop supports --auto-correct.
  999. # Configuration parameters: EnforcedStyle.
  1000. # SupportedStyles: each, for
  1001. Style/For:
  1002. Exclude:
  1003. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  1004. - 'lib/redmine/export/pdf/wiki_pdf_helper.rb'
  1005. # Cop supports --auto-correct.
  1006. # Configuration parameters: EnforcedStyle.
  1007. # SupportedStyles: format, sprintf, percent
  1008. Style/FormatString:
  1009. Exclude:
  1010. - 'app/helpers/application_helper.rb'
  1011. - 'app/helpers/queries_helper.rb'
  1012. - 'app/models/query.rb'
  1013. - 'config/initializers/10-patches.rb'
  1014. - 'lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb'
  1015. - 'lib/redmine/export/csv.rb'
  1016. - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
  1017. - 'lib/redmine/helpers/gantt.rb'
  1018. - 'lib/redmine/i18n.rb'
  1019. - 'lib/redmine/info.rb'
  1020. # Configuration parameters: AllowedVariables.
  1021. Style/GlobalVars:
  1022. Exclude:
  1023. - 'test/test_helper.rb'
  1024. # Configuration parameters: MinBodyLength.
  1025. Style/GuardClause:
  1026. Enabled: false
  1027. # Configuration parameters: AllowIfModifier.
  1028. Style/IfInsideElse:
  1029. Exclude:
  1030. - 'app/controllers/account_controller.rb'
  1031. - 'app/controllers/activities_controller.rb'
  1032. - 'app/controllers/application_controller.rb'
  1033. - 'app/helpers/application_helper.rb'
  1034. - 'app/helpers/issues_helper.rb'
  1035. - 'app/models/custom_field.rb'
  1036. - 'app/models/issue.rb'
  1037. - 'app/models/project.rb'
  1038. - 'app/models/query.rb'
  1039. - 'app/models/version.rb'
  1040. - 'config/initializers/10-patches.rb'
  1041. - 'lib/redmine/field_format.rb'
  1042. - 'lib/redmine/helpers/gantt.rb'
  1043. - 'lib/redmine/menu_manager.rb'
  1044. - 'lib/redmine/pop3.rb'
  1045. - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
  1046. - 'lib/redmine/views/builders/structure.rb'
  1047. # Cop supports --auto-correct.
  1048. Style/IfUnlessModifier:
  1049. Enabled: false
  1050. Style/IfUnlessModifierOfIfUnless:
  1051. Exclude:
  1052. - 'app/models/attachment.rb'
  1053. # Cop supports --auto-correct.
  1054. # Configuration parameters: InverseMethods, InverseBlocks.
  1055. Style/InverseMethods:
  1056. Exclude:
  1057. - 'app/controllers/roles_controller.rb'
  1058. - 'app/helpers/application_helper.rb'
  1059. - 'app/helpers/issues_helper.rb'
  1060. - 'app/helpers/repositories_helper.rb'
  1061. - 'app/models/document.rb'
  1062. - 'app/models/issue.rb'
  1063. - 'app/models/member.rb'
  1064. - 'app/models/message.rb'
  1065. - 'app/models/project.rb'
  1066. - 'app/models/tracker.rb'
  1067. - 'app/models/version.rb'
  1068. - 'app/models/wiki_content.rb'
  1069. - 'db/migrate/096_add_commit_access_permission.rb'
  1070. - 'lib/redmine/default_data/loader.rb'
  1071. - 'lib/redmine/helpers/diff.rb'
  1072. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1073. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1074. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1075. - 'test/unit/issue_test.rb'
  1076. - 'test/unit/query_test.rb'
  1077. # Cop supports --auto-correct.
  1078. # Configuration parameters: EnforcedStyle.
  1079. # SupportedStyles: line_count_dependent, lambda, literal
  1080. Style/Lambda:
  1081. Enabled: false
  1082. # Cop supports --auto-correct.
  1083. Style/LineEndConcatenation:
  1084. Enabled: false
  1085. # Cop supports --auto-correct.
  1086. # Configuration parameters: IgnoredMethods.
  1087. Style/MethodCallWithoutArgsParentheses:
  1088. Exclude:
  1089. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1090. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1091. # Cop supports --auto-correct.
  1092. # Configuration parameters: EnforcedStyle.
  1093. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
  1094. Style/MethodDefParentheses:
  1095. Exclude:
  1096. - 'lib/redmine/menu_manager.rb'
  1097. Style/MethodMissingSuper:
  1098. Exclude:
  1099. - 'lib/redmine/views/builders/structure.rb'
  1100. Style/MissingRespondToMissing:
  1101. Exclude:
  1102. - 'lib/redmine/views/builders/structure.rb'
  1103. Style/MixinUsage:
  1104. Exclude:
  1105. - 'test/test_helper.rb'
  1106. # Cop supports --auto-correct.
  1107. Style/MultilineIfModifier:
  1108. Exclude:
  1109. - 'app/helpers/application_helper.rb'
  1110. - 'app/helpers/attachments_helper.rb'
  1111. - 'app/helpers/custom_fields_helper.rb'
  1112. - 'app/helpers/projects_helper.rb'
  1113. - 'app/helpers/reports_helper.rb'
  1114. - 'app/helpers/repositories_helper.rb'
  1115. - 'app/helpers/search_helper.rb'
  1116. - 'app/models/issue_query.rb'
  1117. - 'app/models/query.rb'
  1118. - 'app/models/repository/bazaar.rb'
  1119. - 'app/models/time_entry_query.rb'
  1120. - 'app/views/common/feed.atom.builder'
  1121. - 'lib/redmine/access_keys.rb'
  1122. - 'lib/redmine/helpers/gantt.rb'
  1123. - 'lib/redmine/wiki_formatting.rb'
  1124. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1125. Style/MultilineTernaryOperator:
  1126. Exclude:
  1127. - 'app/controllers/workflows_controller.rb'
  1128. - 'app/helpers/settings_helper.rb'
  1129. - 'app/models/issue_query.rb'
  1130. - 'lib/redmine/ciphering.rb'
  1131. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1132. Style/MultipleComparison:
  1133. Exclude:
  1134. - 'app/helpers/application_helper.rb'
  1135. - 'app/helpers/workflows_helper.rb'
  1136. - 'app/models/import.rb'
  1137. - 'app/models/version.rb'
  1138. - 'app/models/wiki_page.rb'
  1139. - 'app/models/workflow_transition.rb'
  1140. # Cop supports --auto-correct.
  1141. # Configuration parameters: EnforcedStyle.
  1142. # SupportedStyles: literals, strict
  1143. Style/MutableConstant:
  1144. Enabled: false
  1145. # Cop supports --auto-correct.
  1146. # Configuration parameters: EnforcedStyle.
  1147. # SupportedStyles: both, prefix, postfix
  1148. Style/NegatedIf:
  1149. Exclude:
  1150. - 'app/controllers/application_controller.rb'
  1151. - 'app/controllers/messages_controller.rb'
  1152. - 'app/helpers/repositories_helper.rb'
  1153. - 'app/models/attachment.rb'
  1154. - 'app/models/auth_source_ldap.rb'
  1155. - 'app/models/custom_field.rb'
  1156. - 'app/models/project.rb'
  1157. - 'app/models/repository/cvs.rb'
  1158. - 'lib/diff.rb'
  1159. - 'lib/redmine/codeset_util.rb'
  1160. - 'lib/redmine/thumbnail.rb'
  1161. # Cop supports --auto-correct.
  1162. Style/NegatedWhile:
  1163. Exclude:
  1164. - 'app/helpers/application_helper.rb'
  1165. # Cop supports --auto-correct.
  1166. # Configuration parameters: AllowedMethods.
  1167. # 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
  1168. Style/NestedParenthesizedCalls:
  1169. Exclude:
  1170. - 'lib/redmine/views/labelled_form_builder.rb'
  1171. - 'test/unit/mail_handler_test.rb'
  1172. Style/NestedTernaryOperator:
  1173. Exclude:
  1174. - 'app/helpers/queries_helper.rb'
  1175. - 'app/models/journal.rb'
  1176. # Cop supports --auto-correct.
  1177. # Configuration parameters: EnforcedStyle, MinBodyLength.
  1178. # SupportedStyles: skip_modifier_ifs, always
  1179. Style/Next:
  1180. Enabled: false
  1181. # Cop supports --auto-correct.
  1182. Style/Not:
  1183. Exclude:
  1184. - 'db/migrate/096_add_commit_access_permission.rb'
  1185. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1186. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1187. # Cop supports --auto-correct.
  1188. # Configuration parameters: EnforcedOctalStyle.
  1189. # SupportedOctalStyles: zero_with_o, zero_only
  1190. Style/NumericLiteralPrefix:
  1191. Exclude:
  1192. - 'test/unit/user_test.rb'
  1193. # Cop supports --auto-correct.
  1194. # Configuration parameters: Strict.
  1195. Style/NumericLiterals:
  1196. MinDigits: 9
  1197. # Cop supports --auto-correct.
  1198. # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
  1199. # SupportedStyles: predicate, comparison
  1200. Style/NumericPredicate:
  1201. Enabled: false
  1202. # Cop supports --auto-correct.
  1203. Style/OrAssignment:
  1204. Exclude:
  1205. - 'app/helpers/sort_helper.rb'
  1206. - 'app/models/repository/cvs.rb'
  1207. - 'app/models/user.rb'
  1208. - 'lib/redmine/helpers/diff.rb'
  1209. # Cop supports --auto-correct.
  1210. Style/ParallelAssignment:
  1211. Enabled: false
  1212. # Cop supports --auto-correct.
  1213. # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
  1214. Style/ParenthesesAroundCondition:
  1215. Exclude:
  1216. - 'app/models/repository/subversion.rb'
  1217. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1218. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1219. # Cop supports --auto-correct.
  1220. # Configuration parameters: PreferredDelimiters.
  1221. Style/PercentLiteralDelimiters:
  1222. Enabled: false
  1223. # Cop supports --auto-correct.
  1224. Style/PerlBackrefs:
  1225. Enabled: false
  1226. # Cop supports --auto-correct.
  1227. # Configuration parameters: EnforcedStyle.
  1228. # SupportedStyles: short, verbose
  1229. Style/PreferredHashMethods:
  1230. Enabled: false
  1231. # Cop supports --auto-correct.
  1232. Style/Proc:
  1233. Enabled: false
  1234. # Cop supports --auto-correct.
  1235. # Configuration parameters: EnforcedStyle.
  1236. # SupportedStyles: compact, exploded
  1237. Style/RaiseArgs:
  1238. Exclude:
  1239. - 'app/models/auth_source_ldap.rb'
  1240. - 'app/models/issue_query.rb'
  1241. - 'app/models/mailer.rb'
  1242. - 'app/models/query.rb'
  1243. - 'app/models/tracker.rb'
  1244. - 'app/models/user.rb'
  1245. - 'app/models/workflow_rule.rb'
  1246. - 'lib/redmine/access_control.rb'
  1247. - 'lib/redmine/default_data/loader.rb'
  1248. - 'lib/redmine/plugin.rb'
  1249. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1250. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1251. - 'lib/redmine/sort_criteria.rb'
  1252. # Cop supports --auto-correct.
  1253. Style/RedundantCondition:
  1254. Exclude:
  1255. - 'app/controllers/messages_controller.rb'
  1256. - 'app/controllers/previews_controller.rb'
  1257. - 'app/models/issue.rb'
  1258. # Cop supports --auto-correct.
  1259. Style/RedundantConditional:
  1260. Exclude:
  1261. - 'app/controllers/workflows_controller.rb'
  1262. - 'app/helpers/application_helper.rb'
  1263. - 'app/models/enumeration.rb'
  1264. - 'lib/redmine/field_format.rb'
  1265. # Cop supports --auto-correct.
  1266. Style/RedundantInterpolation:
  1267. Exclude:
  1268. - 'app/helpers/my_helper.rb'
  1269. - 'app/helpers/queries_helper.rb'
  1270. - 'app/models/query.rb'
  1271. - 'app/views/common/feed.atom.builder'
  1272. - 'app/views/journals/index.builder'
  1273. - 'lib/redmine/helpers/time_report.rb'
  1274. - 'lib/redmine/scm/adapters/subversion_adapter.rb'
  1275. - 'lib/redmine/wiki_formatting.rb'
  1276. - 'test/functional/versions_controller_test.rb'
  1277. - 'test/functional/watchers_controller_test.rb'
  1278. # Cop supports --auto-correct.
  1279. Style/RedundantParentheses:
  1280. Exclude:
  1281. - 'app/controllers/search_controller.rb'
  1282. - 'app/helpers/users_helper.rb'
  1283. - 'app/models/enumeration.rb'
  1284. - 'app/models/principal.rb'
  1285. - 'app/models/query.rb'
  1286. - 'app/models/repository/cvs.rb'
  1287. - 'app/models/version.rb'
  1288. - 'lib/redmine/field_format.rb'
  1289. - 'lib/redmine/helpers/gantt.rb'
  1290. - 'lib/redmine/platform.rb'
  1291. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1292. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1293. - 'test/unit/attachment_test.rb'
  1294. - 'test/unit/lib/redmine/export/pdf_test.rb'
  1295. - 'test/unit/project_test.rb'
  1296. - 'test/unit/user_test.rb'
  1297. - 'test/unit/version_test.rb'
  1298. # Cop supports --auto-correct.
  1299. # Configuration parameters: AllowMultipleReturnValues.
  1300. Style/RedundantReturn:
  1301. Enabled: false
  1302. # Cop supports --auto-correct.
  1303. Style/RedundantSelf:
  1304. Enabled: false
  1305. # Cop supports --auto-correct.
  1306. Style/RedundantSort:
  1307. Exclude:
  1308. - 'app/models/import.rb'
  1309. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1310. - 'test/functional/issues_controller_test.rb'
  1311. - 'test/unit/member_test.rb'
  1312. # Cop supports --auto-correct.
  1313. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  1314. # SupportedStyles: slashes, percent_r, mixed
  1315. Style/RegexpLiteral:
  1316. Enabled: false
  1317. # Cop supports --auto-correct.
  1318. Style/RescueModifier:
  1319. Exclude:
  1320. - 'app/controllers/application_controller.rb'
  1321. - 'app/controllers/attachments_controller.rb'
  1322. - 'app/controllers/imports_controller.rb'
  1323. - 'app/controllers/watchers_controller.rb'
  1324. - 'app/helpers/avatars_helper.rb'
  1325. - 'app/models/custom_field.rb'
  1326. - 'app/models/import.rb'
  1327. - 'app/models/query.rb'
  1328. - 'app/models/repository.rb'
  1329. - 'lib/redmine/export/csv.rb'
  1330. - 'lib/redmine/field_format.rb'
  1331. - 'lib/redmine/search.rb'
  1332. - 'lib/redmine/wiki_formatting.rb'
  1333. - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
  1334. # Cop supports --auto-correct.
  1335. # Configuration parameters: EnforcedStyle.
  1336. # SupportedStyles: implicit, explicit
  1337. Style/RescueStandardError:
  1338. Enabled: false
  1339. # Cop supports --auto-correct.
  1340. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
  1341. # AllowedMethods: present?, blank?, presence, try, try!
  1342. Style/SafeNavigation:
  1343. Enabled: false
  1344. # Cop supports --auto-correct.
  1345. Style/SelfAssignment:
  1346. Exclude:
  1347. - 'app/controllers/repositories_controller.rb'
  1348. - 'app/helpers/application_helper.rb'
  1349. - 'app/helpers/reports_helper.rb'
  1350. - 'app/models/auth_source_ldap.rb'
  1351. - 'app/models/project.rb'
  1352. - 'app/models/query.rb'
  1353. - 'app/models/repository/cvs.rb'
  1354. - 'lib/redmine/helpers/calendar.rb'
  1355. - 'lib/redmine/helpers/gantt.rb'
  1356. - 'lib/redmine/helpers/time_report.rb'
  1357. # Cop supports --auto-correct.
  1358. # Configuration parameters: AllowAsExpressionSeparator.
  1359. Style/Semicolon:
  1360. Exclude:
  1361. - 'app/controllers/account_controller.rb'
  1362. - 'app/controllers/context_menus_controller.rb'
  1363. - 'app/controllers/journals_controller.rb'
  1364. - 'app/controllers/messages_controller.rb'
  1365. - 'app/controllers/repositories_controller.rb'
  1366. - 'app/controllers/search_controller.rb'
  1367. - 'app/models/issue.rb'
  1368. - 'app/models/issue_query.rb'
  1369. - 'app/models/journal.rb'
  1370. - 'app/models/mail_handler.rb'
  1371. - 'app/models/project.rb'
  1372. - 'app/models/query.rb'
  1373. - 'app/models/tracker.rb'
  1374. - 'lib/redmine/configuration.rb'
  1375. - 'lib/redmine/i18n.rb'
  1376. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1377. - 'lib/redmine/sort_criteria.rb'
  1378. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1379. # Cop supports --auto-correct.
  1380. # Configuration parameters: AllowIfMethodIsEmpty.
  1381. Style/SingleLineMethods:
  1382. Enabled: false
  1383. # Cop supports --auto-correct.
  1384. # Configuration parameters: .
  1385. # SupportedStyles: use_perl_names, use_english_names
  1386. Style/SpecialGlobalVars:
  1387. EnforcedStyle: use_perl_names
  1388. # Cop supports --auto-correct.
  1389. Style/StderrPuts:
  1390. Exclude:
  1391. - 'config/environment.rb'
  1392. - 'config/initializers/10-patches.rb'
  1393. # Cop supports --auto-correct.
  1394. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  1395. # SupportedStyles: single_quotes, double_quotes
  1396. Style/StringLiterals:
  1397. Enabled: false
  1398. # Cop supports --auto-correct.
  1399. # Configuration parameters: EnforcedStyle.
  1400. # SupportedStyles: single_quotes, double_quotes
  1401. Style/StringLiteralsInInterpolation:
  1402. Exclude:
  1403. - 'app/models/issue_query.rb'
  1404. - 'config/environment.rb'
  1405. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1406. - 'lib/redmine/wiki_formatting.rb'
  1407. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  1408. - 'test/unit/member_test.rb'
  1409. Style/StructInheritance:
  1410. Exclude:
  1411. - 'lib/redmine/notifiable.rb'
  1412. - 'lib/redmine/sudo_mode.rb'
  1413. # Cop supports --auto-correct.
  1414. # Configuration parameters: MinSize.
  1415. # SupportedStyles: percent, brackets
  1416. Style/SymbolArray:
  1417. EnforcedStyle: brackets
  1418. # Cop supports --auto-correct.
  1419. # Configuration parameters: IgnoredMethods.
  1420. # IgnoredMethods: respond_to, define_method
  1421. Style/SymbolProc:
  1422. Enabled: false
  1423. # Cop supports --auto-correct.
  1424. # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
  1425. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
  1426. Style/TernaryParentheses:
  1427. Enabled: false
  1428. # Cop supports --auto-correct.
  1429. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
  1430. # 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
  1431. Style/TrivialAccessors:
  1432. Exclude:
  1433. - 'app/models/issue.rb'
  1434. - 'app/models/journal.rb'
  1435. - 'app/models/query.rb'
  1436. - 'lib/redmine/access_control.rb'
  1437. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1438. - 'lib/redmine/scm/adapters/cvs_adapter.rb'
  1439. - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
  1440. - 'lib/redmine/scm/adapters/git_adapter.rb'
  1441. - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
  1442. # Cop supports --auto-correct.
  1443. Style/UnlessElse:
  1444. Exclude:
  1445. - 'app/controllers/auth_sources_controller.rb'
  1446. - 'app/controllers/trackers_controller.rb'
  1447. - 'lib/redmine/scm/adapters/abstract_adapter.rb'
  1448. - 'lib/redmine/unified_diff.rb'
  1449. # Cop supports --auto-correct.
  1450. Style/VariableInterpolation:
  1451. Exclude:
  1452. - 'lib/redmine/configuration.rb'
  1453. # Cop supports --auto-correct.
  1454. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
  1455. # SupportedStyles: percent, brackets
  1456. Style/WordArray:
  1457. Enabled: false
  1458. # Cop supports --auto-correct.
  1459. Style/ZeroLengthPredicate:
  1460. Exclude:
  1461. - 'app/models/import.rb'
  1462. - 'app/models/mail_handler.rb'
  1463. - 'app/models/user.rb'
  1464. - 'lib/redmine/field_format.rb'
  1465. - 'lib/redmine/unified_diff.rb'
  1466. - 'lib/redmine/wiki_formatting/macros.rb'
  1467. - 'test/functional/custom_fields_controller_test.rb'
  1468. - 'test/object_helpers.rb'
  1469. - 'test/unit/activity_test.rb'
  1470. - 'test/unit/custom_field_test.rb'
  1471. # Cop supports --auto-correct.
  1472. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  1473. # URISchemes: http, https
  1474. Layout/LineLength:
  1475. Max: 461