Enable the Layout/IndentHeredoc cop

This commit is contained in:
gregoirenovel 2018-01-15 19:09:08 +01:00
parent 0be657c0d7
commit 99a49a8144
3 changed files with 23 additions and 26 deletions

View file

@ -109,7 +109,7 @@ Layout/IndentHash:
EnforcedStyle: consistent
Layout/IndentHeredoc:
Enabled: false
Enabled: true
Layout/IndentationConsistency:
Enabled: false

View file

@ -10,7 +10,7 @@ Apipie.configure do |config|
config.namespaced_resources = true
config.show_all_examples = true
config.app_info = <<-EOS
config.app_info = <<~EOS
Description
EOS

View file

@ -14,16 +14,13 @@ namespace :dev do
puts 'creating token.rb file'
res = `rake secret`.delete("\n")
file = File.new('config/initializers/token.rb', 'w+')
comment = <<EOF
EOF
file.write(comment)
file.write("TPS::Application.config.SIADETOKEN = '#{res}'")
file.close
end
task :generate_franceconnect_file do
file = File.new('config/france_connect.yml', 'w+')
comment = <<EOF
comment = <<~EOF
particulier_identifier: plop
particulier_secret: plip
@ -40,7 +37,7 @@ EOF
task :generate_fog_credentials_file do
puts 'creating fog_credentials.test.yml file'
content = <<EOF
content = <<~EOF
default:
openstack_tenant: "ovh_fake_tenant_name"
openstack_api_key: "ovh_fake_password"
@ -55,7 +52,7 @@ EOF
task :generate_features_file do
puts 'creating features.yml file'
content = <<EOF
content = <<~EOF
remote_storage: true
EOF
file = File.new("config/initializers/features.yml", "w+")