add sonarqube for projects

This commit is contained in:
kingChan
2024-05-30 11:50:08 +08:00
parent ed4b4062e0
commit 983edca9a3
5 changed files with 38 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
Sonarqube.configure do |config|
config.endpoint = 'http://172.20.32.202:9999' # API endpoint URL, default: ENV['SONARQUBE_API_ENDPOINT']
config.private_token = 'squ_fb81f52a7b2c2db00c71c29f71c9595f48c2ff3f' # user's private token, default: ENV['SONARQUBE_API_PRIVATE_TOKEN']
# Optional
# config.user_agent = 'Custom User Agent' # user agent, default: 'Sonarqube Ruby Gem [version]'
end

View File

@@ -48,7 +48,7 @@ defaults format: :json do
end
end
scope ':owner' do
scope ':owner' do
resource :users, path: '/', only: [:update, :edit, :destroy] do
collection do
get :send_email_vefify_code
@@ -76,6 +76,7 @@ defaults format: :json do
collection do
get :compare
get :blame
get :sonar_search
end
end