From 99a49a8144d127e41390e13f6677ef2f206b7cfd Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 15 Jan 2018 19:09:08 +0100 Subject: [PATCH] Enable the Layout/IndentHeredoc cop --- .rubocop.yml | 2 +- config/initializers/apipie.rb | 4 ++-- lib/tasks/dev.rake | 43 ++++++++++++++++------------------- 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 32a6c8b45..146ebb5d8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -109,7 +109,7 @@ Layout/IndentHash: EnforcedStyle: consistent Layout/IndentHeredoc: - Enabled: false + Enabled: true Layout/IndentationConsistency: Enabled: false diff --git a/config/initializers/apipie.rb b/config/initializers/apipie.rb index 383abc409..362020851 100644 --- a/config/initializers/apipie.rb +++ b/config/initializers/apipie.rb @@ -10,8 +10,8 @@ Apipie.configure do |config| config.namespaced_resources = true config.show_all_examples = true - config.app_info = <<-EOS -Description + config.app_info = <<~EOS + Description EOS end diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index 8e8d48257..b363774b1 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -14,40 +14,37 @@ namespace :dev do puts 'creating token.rb file' res = `rake secret`.delete("\n") file = File.new('config/initializers/token.rb', 'w+') - comment = <