Skip to content

Commit fb73d3a

Browse files
migrate codeclimate to qlty (#3875)
1 parent 2dad88e commit fb73d3a

File tree

4 files changed

+98
-48
lines changed

4 files changed

+98
-48
lines changed

.circleci/config.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ workflows:
77
- report:
88
requires:
99
- build
10-
10+
orbs:
11+
qlty: qltysh/[email protected]
1112
jobs:
1213
build:
1314
parallelism: 8
@@ -53,17 +54,7 @@ jobs:
5354
name: Remove test, mock and generated code
5455
command: |
5556
cat c_raw.out | grep -v generated | grep -v mock | grep -v test > c.out
56-
# Run coverage report for Code Climate
57-
- run:
58-
name: Setup Code Climate test-reporter
59-
command: |
60-
mkdir -p tmp/
61-
# download test reporter as a static binary
62-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/cc-test-reporter
63-
chmod +x ./tmp/cc-test-reporter
64-
./tmp/cc-test-reporter before-build
65-
# Upload results
66-
- run:
67-
name: Upload coverage
68-
command: |
69-
./tmp/cc-test-reporter after-build -t gocov --prefix github.com/nuts-foundation/nuts-node
57+
# Qlty Coverage Orb
58+
- qlty/coverage_publish:
59+
files: c.out
60+
format: coverprofile

.codeclimate.yml

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

README_template.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ See the `documentation <https://nuts-node.readthedocs.io/en/stable/>`_ for how t
1515
:target: https://nuts-node.readthedocs.io/en/latest/?badge=latest
1616
:alt: Documentation Status
1717

18-
.. image:: https://api.codeclimate.com/v1/badges/69f77bd34f3ac253cae0/test_coverage
19-
:target: https://codeclimate.com/github/nuts-foundation/nuts-node/test_coverage
18+
.. image:: https://qlty.sh/gh/nuts-foundation/projects/nuts-node/coverage.svg
19+
:target: https://qlty.sh/gh/nuts-foundation/projects/nuts-node
2020
:alt: Code coverage
2121

22-
.. image:: https://api.codeclimate.com/v1/badges/69f77bd34f3ac253cae0/maintainability
23-
:target: https://codeclimate.com/github/nuts-foundation/nuts-node/maintainability
22+
.. image:: https://qlty.sh/gh/nuts-foundation/projects/nuts-node/maintainability.svg
23+
:target: https://qlty.sh/gh/nuts-foundation/projects/nuts-node
2424
:alt: Maintainability
2525

2626
.. image:: https://github.com/nuts-foundation/nuts-node/actions/workflows/build-images.yaml/badge.svg

qlty.toml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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/**", "**/generated.go", "**/test/**/*.go", "**/test.go", "**/*_test.go", "**/test*.go", "**/mock/**/*.go", "**/mock.go", "**/*_mock.go", "docs/**/*.go", "codegen/**/*.go", "**/*.pb.go", "e2e-tests/**/*.go",
43+
"**/docs/**",
44+
]
45+
46+
test_patterns = [
47+
"**/test/**",
48+
"**/spec/**",
49+
"**/*.test.*",
50+
"**/*.spec.*",
51+
"**/*_test.*",
52+
"**/*_spec.*",
53+
"**/test_*.*",
54+
"**/spec_*.*",
55+
]
56+
57+
[smells]
58+
mode = "comment"
59+
60+
[smells.boolean_logic]
61+
threshold = 4
62+
63+
[smells.file_complexity]
64+
threshold = 55
65+
66+
[smells.return_statements]
67+
threshold = 4
68+
enabled = false
69+
70+
[smells.nested_control_flow]
71+
threshold = 4
72+
73+
[smells.function_parameters]
74+
threshold = 4
75+
76+
[smells.function_complexity]
77+
threshold = 5
78+
79+
[smells.duplication]
80+
enabled = true
81+
threshold = 20
82+
83+
[[source]]
84+
name = "default"
85+
default = true
86+
87+
[[plugin]]
88+
name = "gofmt"

0 commit comments

Comments
 (0)