Enable the Layout/IndentHeredoc cop
This commit is contained in:
parent
0be657c0d7
commit
99a49a8144
3 changed files with 23 additions and 26 deletions
|
@ -109,7 +109,7 @@ Layout/IndentHash:
|
||||||
EnforcedStyle: consistent
|
EnforcedStyle: consistent
|
||||||
|
|
||||||
Layout/IndentHeredoc:
|
Layout/IndentHeredoc:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
Layout/IndentationConsistency:
|
Layout/IndentationConsistency:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
|
@ -10,8 +10,8 @@ Apipie.configure do |config|
|
||||||
config.namespaced_resources = true
|
config.namespaced_resources = true
|
||||||
config.show_all_examples = true
|
config.show_all_examples = true
|
||||||
|
|
||||||
config.app_info = <<-EOS
|
config.app_info = <<~EOS
|
||||||
Description
|
Description
|
||||||
|
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
|
@ -14,40 +14,37 @@ namespace :dev do
|
||||||
puts 'creating token.rb file'
|
puts 'creating token.rb file'
|
||||||
res = `rake secret`.delete("\n")
|
res = `rake secret`.delete("\n")
|
||||||
file = File.new('config/initializers/token.rb', 'w+')
|
file = File.new('config/initializers/token.rb', 'w+')
|
||||||
comment = <<EOF
|
|
||||||
EOF
|
|
||||||
file.write(comment)
|
|
||||||
file.write("TPS::Application.config.SIADETOKEN = '#{res}'")
|
file.write("TPS::Application.config.SIADETOKEN = '#{res}'")
|
||||||
file.close
|
file.close
|
||||||
end
|
end
|
||||||
|
|
||||||
task :generate_franceconnect_file do
|
task :generate_franceconnect_file do
|
||||||
file = File.new('config/france_connect.yml', 'w+')
|
file = File.new('config/france_connect.yml', 'w+')
|
||||||
comment = <<EOF
|
comment = <<~EOF
|
||||||
particulier_identifier: plop
|
particulier_identifier: plop
|
||||||
particulier_secret: plip
|
particulier_secret: plip
|
||||||
|
|
||||||
particulier_redirect_uri: 'http://localhost:3000/france_connect/particulier/callback'
|
particulier_redirect_uri: 'http://localhost:3000/france_connect/particulier/callback'
|
||||||
|
|
||||||
particulier_authorization_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/authorize'
|
particulier_authorization_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/authorize'
|
||||||
particulier_token_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/token'
|
particulier_token_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/token'
|
||||||
particulier_userinfo_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/userinfo'
|
particulier_userinfo_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/userinfo'
|
||||||
particulier_logout_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/logout'
|
particulier_logout_endpoint: 'https://fcp.integ01.dev-franceconnect.fr/api/v1/logout'
|
||||||
EOF
|
EOF
|
||||||
file.write(comment)
|
file.write(comment)
|
||||||
file.close
|
file.close
|
||||||
end
|
end
|
||||||
|
|
||||||
task :generate_fog_credentials_file do
|
task :generate_fog_credentials_file do
|
||||||
puts 'creating fog_credentials.test.yml file'
|
puts 'creating fog_credentials.test.yml file'
|
||||||
content = <<EOF
|
content = <<~EOF
|
||||||
default:
|
default:
|
||||||
openstack_tenant: "ovh_fake_tenant_name"
|
openstack_tenant: "ovh_fake_tenant_name"
|
||||||
openstack_api_key: "ovh_fake_password"
|
openstack_api_key: "ovh_fake_password"
|
||||||
openstack_username: "ovh_fake_username"
|
openstack_username: "ovh_fake_username"
|
||||||
openstack_auth_url: "https://auth.cloud.ovh.net/v2.0/tokens"
|
openstack_auth_url: "https://auth.cloud.ovh.net/v2.0/tokens"
|
||||||
openstack_region: "SBG1"
|
openstack_region: "SBG1"
|
||||||
EOF
|
EOF
|
||||||
file = File.new("config/fog_credentials.test.yml", "w+")
|
file = File.new("config/fog_credentials.test.yml", "w+")
|
||||||
file.write(content)
|
file.write(content)
|
||||||
file.close
|
file.close
|
||||||
|
@ -55,9 +52,9 @@ EOF
|
||||||
|
|
||||||
task :generate_features_file do
|
task :generate_features_file do
|
||||||
puts 'creating features.yml file'
|
puts 'creating features.yml file'
|
||||||
content = <<EOF
|
content = <<~EOF
|
||||||
remote_storage: true
|
remote_storage: true
|
||||||
EOF
|
EOF
|
||||||
file = File.new("config/initializers/features.yml", "w+")
|
file = File.new("config/initializers/features.yml", "w+")
|
||||||
file.write(content)
|
file.write(content)
|
||||||
file.close
|
file.close
|
||||||
|
|
Loading…
Add table
Reference in a new issue