mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
add sonarqube for projects
This commit is contained in:
6
config/initializers/sonarqube.rb
Normal file
6
config/initializers/sonarqube.rb
Normal 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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user