Skip to content

Commit ea9c119

Browse files
authored
Merge pull request #9645 from Fryguy/switch_to_qlty
Switch to qlty
2 parents 7032788 + 7cbc02f commit ea9c119

File tree

6 files changed

+119
-87
lines changed

6 files changed

+119
-87
lines changed

.codeclimate.yml

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

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,7 @@ jobs:
7272
if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.3' &&
7373
matrix.test-suite == 'spec' }}"
7474
continue-on-error: true
75-
uses: paambaati/codeclimate-action@v9
75+
uses: qltysh/qlty-action/coverage@v2
76+
with:
77+
token: "${{ secrets.QLTY_COVERAGE_TOKEN }}"
78+
files: coverage/.resultset.json

.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/.shellcheckrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source-path=SCRIPTDIR

.qlty/qlty.toml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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/**", ".git/", "**.gif", "**.html", "**.json", "**.png", "**.svg", "**.xml", "**.yaml", "**.yml", "app/assets/javascripts/dhtmlx*/", "config/dictionary_strings.rb", "config/model_attributes.rb", "config/yaml_strings.rb", "db/schema.rb", "db/schema.yml", "db/fixtures/**/*.yml", "db/migrate/20130923182042_collapsed_initial_migration.rb", "locale/", "public/javascripts/timeline/", "spec/", "test/", "tmp/", "vendor/assets/",
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 = 88
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 = 20
80+
81+
[[source]]
82+
name = "default"
83+
default = true
84+
85+
[[plugin]]
86+
name = "eslint"
87+
version = "8.57.0"
88+
package_file = "package.json"
89+
package_filters = ["eslint", "jest"]
90+
91+
[[plugin]]
92+
name = "rubocop"
93+
94+
[[plugin.fetch]]
95+
url = "https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml"
96+
path = ".rubocop_base.yml"
97+
98+
[[plugin.fetch]]
99+
url = "https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml"
100+
path = ".rubocop_cc_base.yml"
101+
102+
[[plugin]]
103+
name = "stylelint"
104+
package_file = "package.json"
105+
package_filters = ["stylelint"]

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
[![Gem Version](https://badge.fury.io/rb/manageiq-ui-classic.svg)](http://badge.fury.io/rb/manageiq-ui-classic)
44
[![CI](https://github.com/ManageIQ/manageiq-ui-classic/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/ManageIQ/manageiq-ui-classic/actions/workflows/ci.yaml)
5-
[![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-ui-classic.svg)](https://codeclimate.com/github/ManageIQ/manageiq-ui-classic)
6-
[![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-ui-classic/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-ui-classic/coverage)
7-
[![Coverage Status](https://coveralls.io/repos/github/ManageIQ/manageiq-ui-classic/badge.svg?branch=master)](https://coveralls.io/github/ManageIQ/manageiq-ui-classic?branch=master)
5+
[![Maintainability](https://qlty.sh/gh/ManageIQ/projects/manageiq-ui-classic/maintainability.svg)](https://qlty.sh/gh/ManageIQ/projects/manageiq-ui-classic)
6+
[![Code Coverage](https://qlty.sh/gh/ManageIQ/projects/manageiq-ui-classic/coverage.svg)](https://qlty.sh/gh/ManageIQ/projects/manageiq-ui-classic)
87

98
[![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq/ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
109

0 commit comments

Comments
 (0)