forked from Trustie/forgeplus
17 lines
745 B
Ruby
17 lines
745 B
Ruby
# begin
|
|
# config = Rails.application.config_for(:configuration)
|
|
# sonarqube_config = config.dig('sonarqube')
|
|
# raise 'sonar config missing' if sonarqube_config.blank?
|
|
# rescue => ex
|
|
# raise ex if Rails.env.production?
|
|
|
|
# puts %Q{\033[33m [warning] soanrqube config or configuration.yml missing,
|
|
# please add it or execute 'cp config/configuration.yml.example config/configuration.yml' \033[0m}
|
|
# end
|
|
# if sonarqube_config.present?
|
|
# Sonarqube.configure do |config|
|
|
# config.endpoint = sonarqube_config["url"] # API endpoint URL, default: ENV['SONARQUBE_API_ENDPOINT']
|
|
# config.private_token = sonarqube_config["secret"] # user's private token, default: ENV['SONARQUBE_API_PRIVATE_TOKEN']
|
|
# end
|
|
# end
|