0.7.17 • Published 15 days ago

@backstage/plugin-sonarqube v0.7.17

Weekly downloads
734
License
Apache-2.0
Repository
github
Last release
15 days ago

SonarQube Plugin

The SonarQube Plugin displays code statistics from SonarCloud or SonarQube.

Sonar Card

Getting Started

  1. Install the SonarQube Plugin:
yarn add @backstage/plugin-sonarqube
  1. Add plugin to the app:
// packages/app/src/plugins.ts

export { plugin as SonarQube } from '@backstage/plugin-sonarqube';
  1. Add the SonarQubeCard to the EntityPage:
// packages/app/src/components/catalog/EntityPage.tsx

import { SonarQubeCard } from '@backstage/plugin-sonarqube';

const OverviewContent = ({ entity }: { entity: Entity }) => (
  <Grid container spacing={3} alignItems="stretch">
    // ...
    <Grid item xs={12} sm={6} md={4}>
      <SonarQubeCard entity={entity} />
    </Grid>
    // ...
  </Grid>
);
  1. Add the proxy config:

SonarCloud

// app-config.yaml

proxy:
  '/sonarqube':
    target: https://sonarcloud.io/api
    allowedMethods: ['GET']
    headers:
      Authorization:
        # Content: 'Basic base64("<api-key>:")' <-- note the trailing ':'
        # Example: Basic bXktYXBpLWtleTo=
        $env: SONARQUBE_AUTH_HEADER

SonarQube

// app-config.yaml

proxy:
  '/sonarqube':
    target: https://your.sonarqube.instance.com/api
    allowedMethods: ['GET']
    headers:
      Authorization:
        # Content: 'Basic base64("<api-key>:")' <-- note the trailing ':'
        # Example: Basic bXktYXBpLWtleTo=
        $env: SONARQUBE_AUTH_HEADER

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

  2. Add the sonarqube.org/project-key annotation to your component-info.yaml file:

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: Spotify
  lifecycle: experimental
0.7.17

17 days ago

0.7.16

20 days ago

0.7.16-next.1

27 days ago

0.7.16-next.0

1 month ago

0.7.15

1 month ago

0.7.14

1 month ago

0.7.13

2 months ago

0.7.13-next.2

2 months ago

0.7.13-next.1

2 months ago

0.7.13-next.0

2 months ago

0.7.12

3 months ago

0.7.12-next.3

3 months ago

0.7.12-next.2

3 months ago

0.7.12-next.1

3 months ago

0.7.12-next.0

3 months ago

0.7.11

4 months ago

0.7.11-next.2

4 months ago

0.7.11-next.1

4 months ago

0.7.11-next.0

4 months ago

0.7.10

5 months ago

0.7.10-next.3

5 months ago

0.7.10-next.2

5 months ago

0.7.10-next.1

5 months ago

0.7.2

9 months ago

0.7.1

10 months ago

0.7.4

9 months ago

0.7.3

9 months ago

0.7.9

6 months ago

0.7.6

7 months ago

0.7.5

8 months ago

0.7.8

6 months ago

0.7.7

7 months ago

0.7.5-next.1

8 months ago

0.7.5-next.2

8 months ago

0.7.5-next.3

8 months ago

0.7.2-next.0

10 months ago

0.7.2-next.2

9 months ago

0.7.2-next.1

9 months ago

0.7.1-next.1

10 months ago

0.7.1-next.2

10 months ago

0.7.10-next.0

6 months ago

0.7.8-next.0

7 months ago

0.7.8-next.1

6 months ago

0.7.8-next.2

6 months ago

0.7.4-next.0

9 months ago

0.7.6-next.0

7 months ago

0.7.6-next.2

7 months ago

0.7.6-next.1

7 months ago

0.7.1-next.0

10 months ago

0.7.0

11 months ago

0.6.8-next.2

11 months ago

0.6.8-next.3

11 months ago

0.6.7

12 months ago

0.6.8-next.0

12 months ago

0.6.8-next.1

11 months ago

0.6.7-next.2

12 months ago

0.6.7-next.1

1 year ago

0.6.6

1 year ago

0.6.6-next.3

1 year ago

0.6.7-next.0

1 year ago

0.6.3

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.5-next.0

1 year ago

0.6.5-next.2

1 year ago

0.6.5-next.1

1 year ago

0.6.6-next.0

1 year ago

0.6.6-next.1

1 year ago

0.6.6-next.2

1 year ago

0.6.2-next.2

1 year ago

0.6.2-next.1

1 year ago

0.6.2

1 year ago

0.6.3-next.1

1 year ago

0.6.3-next.2

1 year ago

0.6.3-next.0

1 year ago

0.5.0

1 year ago

0.6.2-next.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.1-next.1

1 year ago

0.5.1-next.0

1 year ago

0.5.1-next.3

1 year ago

0.5.1-next.2

1 year ago

0.5.1-next.4

1 year ago

0.4.3-next.0

2 years ago

0.4.3-next.1

1 year ago

0.4.2

2 years ago

0.4.2-next.2

2 years ago

0.4.2-next.0

2 years ago

0.4.2-next.1

2 years ago

0.4.1-next.2

2 years ago

0.4.1-next.1

2 years ago

0.4.1-next.0

2 years ago

0.4.1

2 years ago

0.3.6-next.1

2 years ago

0.3.6-next.2

2 years ago

0.3.6-next.0

2 years ago

0.3.8-next.0

2 years ago

0.4.0-next.2

2 years ago

0.4.0-next.1

2 years ago

0.3.6

2 years ago

0.3.7

2 years ago

0.3.7-next.1

2 years ago

0.3.7-next.0

2 years ago

0.3.7-next.3

2 years ago

0.3.7-next.2

2 years ago

0.4.0

2 years ago

0.3.5

2 years ago

0.3.5-next.2

2 years ago

0.3.5-next.0

2 years ago

0.3.5-next.1

2 years ago

0.3.2

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.4-next.1

2 years ago

0.3.2-next.0

2 years ago

0.3.4-next.0

2 years ago

0.3.1

2 years ago

0.2.16-next.0

2 years ago

0.2.13-next.0

2 years ago

0.2.15-next.0

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.3.0

2 years ago

0.2.9

2 years ago

0.2.7

2 years ago

0.2.8

2 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.1-alpha.26

4 years ago