0.1.35 • Published 18 days ago

@backstage/plugin-code-climate v0.1.35

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

Code Climate Plugin

The Code Climate Plugin displays a few stats from the quality section from Code Climate.

Code Climate Card

Getting Started

  1. Install the Code Climate Plugin:
# From your Backstage root directory
cd packages/app
yarn add @backstage/plugin-code-climate
  1. Add the EntityCodeClimateCard to the EntityPage:
// packages/app/src/components/catalog/EntityPage.tsx

import { EntityCodeClimateCard } from '@backstage/plugin-code-climate';

const overviewContent = (
  <Grid container spacing={3} alignItems="stretch">
    // ...
    <Grid item>
      <EntityCodeClimateCard />
    </Grid>
    // ...
  </Grid>
);
  1. Add the proxy config:
# app-config.yaml

proxy:
  '/codeclimate/api':
    target: https://api.codeclimate.com/v1
    headers:
      Authorization: Token token=${CODECLIMATE_TOKEN}
  1. Create a new API access token (https://codeclimate.com/profile/tokens) and provide CODECLIMATE_TOKEN as an env variable.

  2. Add the codeclimate.com/repo-id annotation to your catalog-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:
    codeclimate.com/repo-id: YOUR_REPO_ID
spec:
  type: library
  owner: CNCF
  lifecycle: experimental

Demo Mode

The plugin provides a MockAPI that always returns dummy data instead of talking to the Code Climate backend. You can add it by overriding the codeClimateApiRef:

// packages/app/src/apis.ts

import { createApiFactory } from '@backstage/core-plugin-api';
import {
  MockCodeClimateApi,
  codeClimateApiRef,
} from '@backstage/plugin-code-climate';

export const apis = [
  // ...

  createApiFactory(codeClimateApiRef, new MockCodeClimateApi()),
];
0.1.35

21 days ago

0.1.34

24 days ago

0.1.34-next.1

1 month ago

0.1.34-next.0

1 month ago

0.1.33

1 month ago

0.1.32

2 months ago

0.1.31

2 months ago

0.1.31-next.2

2 months ago

0.1.31-next.1

2 months ago

0.1.31-next.0

2 months ago

0.1.30

3 months ago

0.1.30-next.3

3 months ago

0.1.30-next.2

3 months ago

0.1.30-next.1

3 months ago

0.1.30-next.0

4 months ago

0.1.29

4 months ago

0.1.29-next.2

4 months ago

0.1.29-next.1

4 months ago

0.1.29-next.0

5 months ago

0.1.28

5 months ago

0.1.28-next.3

5 months ago

0.1.28-next.2

5 months ago

0.1.28-next.1

5 months ago

0.1.24-next.3

8 months ago

0.1.28-next.0

6 months ago

0.1.24-next.1

8 months ago

0.1.24-next.2

8 months ago

0.1.23-next.0

9 months ago

0.1.21-next.2

9 months ago

0.1.21-next.0

10 months ago

0.1.21-next.1

9 months ago

0.1.20-next.2

10 months ago

0.1.20-next.1

10 months ago

0.1.26-next.0

7 months ago

0.1.26-next.1

6 months ago

0.1.26-next.2

6 months ago

0.1.25-next.1

7 months ago

0.1.25-next.0

8 months ago

0.1.25-next.2

7 months ago

0.1.27

6 months ago

0.1.20

10 months ago

0.1.21

9 months ago

0.1.22

9 months ago

0.1.23

9 months ago

0.1.24

8 months ago

0.1.25

7 months ago

0.1.26

6 months ago

0.1.19-next.2

11 months ago

0.1.19-next.3

11 months ago

0.1.20-next.0

11 months ago

0.1.19

11 months ago

0.1.18-next.2

1 year ago

0.1.18-next.1

1 year ago

0.1.19-next.0

12 months ago

0.1.19-next.1

12 months ago

0.1.18

12 months ago

0.1.18-next.0

1 year ago

0.1.17-next.3

1 year ago

0.1.17

1 year ago

0.1.15

1 year ago

0.1.16-next.2

1 year ago

0.1.16-next.0

1 year ago

0.1.16-next.1

1 year ago

0.1.17-next.2

1 year ago

0.1.17-next.1

1 year ago

0.1.17-next.0

1 year ago

0.1.16

1 year ago

0.1.15-next.2

1 year ago

0.1.15-next.1

1 year ago

0.1.15-next.0

1 year ago

0.1.14

1 year ago

0.1.14-next.2

1 year ago

0.1.14-next.1

1 year ago

0.1.10

2 years ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14-next.0

1 year ago

0.1.11-next.0

2 years ago

0.1.12-next.1

1 year ago

0.1.12-next.0

1 year ago

0.1.12-next.3

1 year ago

0.1.12-next.2

1 year ago

0.1.11-next.1

2 years ago

0.1.12-next.4

1 year ago

0.1.10-next.2

2 years ago

0.1.10-next.1

2 years ago

0.1.10-next.0

2 years ago

0.1.9-next.2

2 years ago

0.1.9-next.3

2 years ago

0.1.9-next.0

2 years ago

0.1.9-next.1

2 years ago

0.1.9

2 years ago

0.1.7-next.2

2 years ago

0.1.7-next.3

2 years ago

0.1.7-next.0

2 years ago

0.1.7-next.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.8-next.1

2 years ago

0.1.6-next.1

2 years ago

0.1.8-next.0

2 years ago

0.1.6-next.0

2 years ago

0.1.5-next.2

2 years ago

0.1.5-next.0

2 years ago

0.1.5-next.1

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.4-next.0

2 years ago

0.1.2-next.0

2 years ago

0.1.4-next.1

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago