Skip to content

Commit

Permalink
Add config schema for the sonarqube plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dhenneke committed Nov 20, 2020
1 parent f9380b3 commit 26484d4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-flowers-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-sonarqube': patch
---

Add configuration schema
26 changes: 26 additions & 0 deletions plugins/sonarqube/config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright 2020 Spotify AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export interface Config {
/** Optional configurations for the SonarQube plugin */
sonarQube?: {
/**
* The base url of the sonarqube installation. Defaults to https://sonarcloud.io.
* @visibility frontend
*/
baseUrl: string;
};
}
6 changes: 4 additions & 2 deletions plugins/sonarqube/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"msw": "^0.21.2"
},
"files": [
"dist"
]
"dist",
"config.d.ts"
],
"configSchema": "config.d.ts"
}

0 comments on commit 26484d4

Please sign in to comment.