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

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