Skip to content

Commit c1eb84d

Browse files
Merge pull request #693 from lawnstarter/PE-56204
build(coverage): migrates codeclimate to QLTY PE-56204
2 parents 21385bd + 19a7694 commit c1eb84d

File tree

5 files changed

+111
-47
lines changed

5 files changed

+111
-47
lines changed

.codeclimate.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: build
22
on: [push, pull_request]
33

4+
permissions: {}
5+
46
jobs:
57
build:
8+
permissions:
9+
id-token: write
10+
contents: read
611
runs-on: ubuntu-latest
712

813
steps:
@@ -21,18 +26,11 @@ jobs:
2126
- name: Run ESLint
2227
run: yarn lint
2328

24-
- name: Setup Code Climate
25-
uses: remarkablemark/setup-codeclimate@v2
26-
27-
- name: Run Tests and Upload Coverage
28-
run: |
29-
cc-test-reporter before-build
30-
yarn test:coverage
31-
cc-test-reporter after-build --exit-code $?
32-
env:
33-
CC_TEST_REPORTER_ID: 9b36beb22e04451e6414fcc28926f995c253d94877f616b50d192255196fbb68
34-
35-
- name: Codecov
36-
uses: codecov/codecov-action@v5
37-
env:
38-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
29+
- name: Run Tests
30+
run: yarn test:coverage
31+
32+
- name: Upload coverage to Qlty
33+
uses: qltysh/qlty-action/coverage@v1
34+
with:
35+
oidc: true
36+
files: coverage/lcov.info

.qlty/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*
2+
!configs
3+
!configs/**
4+
!hooks
5+
!hooks/**
6+
!qlty.toml
7+
!.gitignore

.qlty/configs/.yamllint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
rules:
2+
document-start: disable
3+
quoted-strings:
4+
required: only-when-needed
5+
extra-allowed: ["{|}"]
6+
key-duplicates: {}
7+
octal-values:
8+
forbid-implicit-octal: true

.qlty/qlty.toml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# This file was automatically generated by `qlty init`.
2+
# You can modify it to suit your needs.
3+
# We recommend you to commit this file to your repository.
4+
#
5+
# This configuration is used by both Qlty CLI and Qlty Cloud.
6+
#
7+
# Qlty CLI -- Code quality toolkit for developers
8+
# Qlty Cloud -- Fully automated Code Health Platform
9+
#
10+
# Try Qlty Cloud: https://qlty.sh
11+
#
12+
# For a guide to configuration, visit https://qlty.sh/d/config
13+
# Or for a full reference, visit https://qlty.sh/d/qlty-toml
14+
config_version = "0"
15+
16+
exclude_patterns = [
17+
"*_min.*",
18+
"*-min.*",
19+
"*.min.*",
20+
"**/.yarn/**",
21+
"**/*.d.ts",
22+
"**/assets/**",
23+
"**/bower_components/**",
24+
"**/build/**",
25+
"**/cache/**",
26+
"**/config/**",
27+
"**/db/**",
28+
"**/deps/**",
29+
"**/dist/**",
30+
"**/extern/**",
31+
"**/external/**",
32+
"**/generated/**",
33+
"**/Godeps/**",
34+
"**/gradlew/**",
35+
"**/mvnw/**",
36+
"**/node_modules/**",
37+
"**/protos/**",
38+
"**/seed/**",
39+
"**/target/**",
40+
"**/templates/**",
41+
"**/testdata/**",
42+
"**/vendor/**",
43+
]
44+
45+
test_patterns = [
46+
"**/test/**",
47+
"**/spec/**",
48+
"**/*.test.*",
49+
"**/*.spec.*",
50+
"**/*_test.*",
51+
"**/*_spec.*",
52+
"**/test_*.*",
53+
"**/spec_*.*",
54+
]
55+
56+
[smells]
57+
mode = "comment"
58+
59+
[smells.boolean_logic]
60+
threshold = 4
61+
62+
[smells.file_complexity]
63+
threshold = 110
64+
65+
[smells.return_statements]
66+
threshold = 4
67+
68+
[smells.nested_control_flow]
69+
threshold = 4
70+
71+
[smells.function_parameters]
72+
threshold = 4
73+
74+
[smells.function_complexity]
75+
threshold = 5
76+
77+
[smells.duplication]
78+
enabled = true
79+
threshold = 62
80+
81+
[[source]]
82+
name = "default"
83+
default = true

0 commit comments

Comments
 (0)