diff --git a/.rubocop.yml b/.rubocop.yml index 171999072..219a99574 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -517,6 +517,9 @@ Style/RedundantSelf: Style/SafeNavigation: Enabled: true +Style/SingleLineMethods: + Enabled: true + Style/SoleNestedConditional: Enabled: true diff --git a/config/sitemap.rb b/config/sitemap.rb index 8886fd7b3..24b0e8ce3 100644 --- a/config/sitemap.rb +++ b/config/sitemap.rb @@ -1,6 +1,9 @@ # not use compression class SitemapGenerator::FileAdapter - def gzip(stream, data); stream.write(data); stream.close end + def gzip(stream, data) + stream.write(data) + stream.close + end end SitemapGenerator::Sitemap.namer = SitemapGenerator::SimpleNamer.new(:sitemap, extension: ".xml")