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

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