0.7.17 • Published 1 year ago

@backstage/plugin-sonarqube v0.7.17

Weekly downloads
734
License
Apache-2.0
Repository
github
Last release
1 year 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

1 year ago

0.7.16

1 year ago

0.7.16-next.1

1 year ago

0.7.16-next.0

1 year ago

0.7.15

1 year ago

0.7.14

1 year ago

0.7.13

1 year ago

0.7.13-next.2

1 year ago

0.7.13-next.1

1 year ago

0.7.13-next.0

1 year ago

0.7.12

1 year ago

0.7.12-next.3

1 year ago

0.7.12-next.2

1 year ago

0.7.12-next.1

1 year ago

0.7.12-next.0

1 year ago

0.7.11

1 year ago

0.7.11-next.2

1 year ago

0.7.11-next.1

1 year ago

0.7.11-next.0

1 year 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

2 years ago

0.6.8-next.3

2 years ago

0.6.7

2 years ago

0.6.8-next.0

2 years ago

0.6.8-next.1

2 years ago

0.6.7-next.2

2 years ago

0.6.7-next.1

2 years ago

0.6.6

2 years ago

0.6.6-next.3

2 years ago

0.6.7-next.0

2 years ago

0.6.3

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.5-next.0

2 years ago

0.6.5-next.2

2 years ago

0.6.5-next.1

2 years ago

0.6.6-next.0

2 years ago

0.6.6-next.1

2 years ago

0.6.6-next.2

2 years ago

0.6.2-next.2

2 years ago

0.6.2-next.1

2 years ago

0.6.2

2 years ago

0.6.3-next.1

2 years ago

0.6.3-next.2

2 years ago

0.6.3-next.0

2 years ago

0.5.0

3 years ago

0.6.2-next.0

2 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

3 years ago

0.3.6-next.2

3 years ago

0.3.6-next.0

3 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

3 years ago

0.3.5-next.2

3 years ago

0.3.5-next.0

3 years ago

0.3.5-next.1

3 years ago

0.3.2

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.4-next.1

3 years ago

0.3.2-next.0

3 years ago

0.3.4-next.0

3 years ago

0.3.1

3 years ago

0.2.16-next.0

3 years ago

0.2.13-next.0

3 years ago

0.2.15-next.0

3 years ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.3.0

3 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

4 years ago

0.1.17

4 years ago

0.1.18

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 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