Include below content in .rubocop.yml will cause rubocop autocorect failed
.rubocop.yml
inherit_gem: rubocop-discourse: default.yml
Please see the related issue