0.0.0-nightly-202191222240 • Published 4 years ago

@backstage/plugin-sonarqube v0.0.0-nightly-202191222240

Weekly downloads
734
License
Apache-2.0
Repository
github
Last release
4 years ago

SonarQube Plugin

The SonarQube Plugin displays code statistics from SonarCloud or SonarQube.

Sonar Card

Getting Started

  1. Install the SonarQube Plugin:
# From your Backstage root directory
cd packages/app
yarn add @backstage/plugin-sonarqube
  1. Add the EntitySonarQubeCard to the EntityPage:
  // packages/app/src/components/catalog/EntityPage.tsx
+ import { EntitySonarQubeCard } from '@backstage/plugin-sonarqube';

 ...

 const overviewContent = (
   <Grid container spacing={3} alignItems="stretch">
     <Grid item md={6}>
       <EntityAboutCard variant="gridItem" />
     </Grid>
+    <Grid item md={6}>
+      <EntitySonarQubeCard variant="gridItem" />
+    </Grid>
   </Grid>
 );
  1. Add the proxy config:

    Provide a method for your Backstage backend to get to your SonarQube API end point. Add configuration to your app-config.yaml file depending on the product you use.

SonarCloud

proxy:
  '/sonarqube':
    target: https://sonarcloud.io/api
    allowedMethods: ['GET']
    auth: '${SONARQUBE_TOKEN}:'
    # Environmental variable: SONARQUBE_TOKEN
    # Fetch the sonar-auth-token from https://sonarcloud.io/account/security/

SonarQube

proxy:
  '/sonarqube':
    target: https://your.sonarqube.instance.com/api
    allowedMethods: ['GET']
    auth: '${SONARQUBE_TOKEN}:'
    # Environmental variable: SONARQUBE_TOKEN
    # Fetch the sonar-auth-token from https://sonarcloud.io/account/security/

sonarQube:
  baseUrl: https://your.sonarqube.instance.com
  1. Get and provide SONARQUBE_TOKEN as an env variable (https://sonarcloud.io/account/security or https://docs.sonarqube.org/latest/user-guide/user-token/)

  2. Run the following commands in the root folder of the project to install and compile the changes.

yarn install
yarn tsc
  1. Add the sonarqube.org/project-key annotation to the catalog-info.yaml file of the target repo for which code quality analysis is needed.
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: backstage
  description: |
    Backstage is an open-source developer portal that puts the developer experience first.
  annotations:
    sonarqube.org/project-key: YOUR_PROJECT_KEY
spec:
  type: library
  owner: CNCF
  lifecycle: experimental
0.7.17

2 years ago

0.7.16

2 years ago

0.7.16-next.1

2 years ago

0.7.16-next.0

2 years ago

0.7.15

2 years ago

0.7.14

2 years ago

0.7.13

2 years ago

0.7.13-next.2

2 years ago

0.7.13-next.1

2 years ago

0.7.13-next.0

2 years ago

0.7.12

2 years ago

0.7.12-next.3

2 years ago

0.7.12-next.2

2 years ago

0.7.12-next.1

2 years ago

0.7.12-next.0

2 years ago

0.7.11

2 years ago

0.7.11-next.2

2 years ago

0.7.11-next.1

2 years ago

0.7.11-next.0

2 years ago

0.7.10

2 years ago

0.7.10-next.3

2 years ago

0.7.10-next.2

2 years ago

0.7.10-next.1

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.9

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.8

2 years ago

0.7.7

2 years ago

0.7.5-next.1

2 years ago

0.7.5-next.2

2 years ago

0.7.5-next.3

2 years ago

0.7.2-next.0

2 years ago

0.7.2-next.2

2 years ago

0.7.2-next.1

2 years ago

0.7.1-next.1

2 years ago

0.7.1-next.2

2 years ago

0.7.10-next.0

2 years ago

0.7.8-next.0

2 years ago

0.7.8-next.1

2 years ago

0.7.8-next.2

2 years ago

0.7.4-next.0

2 years ago

0.7.6-next.0

2 years ago

0.7.6-next.2

2 years ago

0.7.6-next.1

2 years ago

0.7.1-next.0

2 years ago

0.7.0

2 years ago

0.6.8-next.2

3 years ago

0.6.8-next.3

2 years ago

0.6.7

3 years ago

0.6.8-next.0

3 years ago

0.6.8-next.1

3 years ago

0.6.7-next.2

3 years ago

0.6.7-next.1

3 years ago

0.6.6

3 years ago

0.6.6-next.3

3 years ago

0.6.7-next.0

3 years ago

0.6.3

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.6.5-next.0

3 years ago

0.6.5-next.2

3 years ago

0.6.5-next.1

3 years ago

0.6.6-next.0

3 years ago

0.6.6-next.1

3 years ago

0.6.6-next.2

3 years ago

0.6.2-next.2

3 years ago

0.6.2-next.1

3 years ago

0.6.2

3 years ago

0.6.3-next.1

3 years ago

0.6.3-next.2

3 years ago

0.6.3-next.0

3 years ago

0.5.0

3 years ago

0.6.2-next.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.1-next.1

3 years ago

0.5.1-next.0

3 years ago

0.5.1-next.3

3 years ago

0.5.1-next.2

3 years ago

0.5.1-next.4

3 years ago

0.4.3-next.0

3 years ago

0.4.3-next.1

3 years ago

0.4.2

3 years ago

0.4.2-next.2

3 years ago

0.4.2-next.0

3 years ago

0.4.2-next.1

3 years ago

0.4.1-next.2

3 years ago

0.4.1-next.1

3 years ago

0.4.1-next.0

3 years ago

0.4.1

3 years ago

0.3.6-next.1

4 years ago

0.3.6-next.2

4 years ago

0.3.6-next.0

4 years ago

0.3.8-next.0

3 years ago

0.4.0-next.2

3 years ago

0.4.0-next.1

3 years ago

0.3.6

3 years ago

0.3.7

3 years ago

0.3.7-next.1

3 years ago

0.3.7-next.0

3 years ago

0.3.7-next.3

3 years ago

0.3.7-next.2

3 years ago

0.4.0

3 years ago

0.3.5

4 years ago

0.3.5-next.2

4 years ago

0.3.5-next.0

4 years ago

0.3.5-next.1

4 years ago

0.3.2

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.4-next.1

4 years ago

0.3.2-next.0

4 years ago

0.3.4-next.0

4 years ago

0.3.1

4 years ago

0.2.16-next.0

4 years ago

0.2.13-next.0

4 years ago

0.2.15-next.0

4 years ago

0.2.17

4 years ago

0.2.16

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.3.0

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.22

4 years ago

0.1.21

4 years ago

0.1.20

4 years ago

0.1.19

5 years ago

0.1.17

5 years ago

0.1.18

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.1-alpha.26

5 years ago