Refactor forgotten static get in services (#5794)

Co-authored-by: Guillaume <g.alabre@thecodingmachine.com>
This commit is contained in:
homersimpsons
2020-11-05 21:35:10 +01:00
committed by GitHub
parent f165c9f8dd
commit 3597b7e80f
16 changed files with 108 additions and 170 deletions

View File

@@ -52,9 +52,7 @@ const legacySchema = Joi.array()
.required()
module.exports = class SonarBase extends BaseJsonService {
static get auth() {
return { userKey: 'sonarqube_token', serviceKey: 'sonar' }
}
static auth = { userKey: 'sonarqube_token', serviceKey: 'sonar' }
async fetch({ sonarVersion, server, component, metricName }) {
const useLegacyApi = isLegacyVersion({ sonarVersion })