File tree Expand file tree Collapse file tree 3 files changed +109
-0
lines changed Expand file tree Collapse file tree 3 files changed +109
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
12+
13+ permissions :
14+ contents : read
15+ pull-requests : read
16+
17+ jobs :
18+ qlty :
19+ name : Qlty Check
20+ runs-on : ubuntu-latest
21+ timeout-minutes : 3
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
26+
27+ - name : Install qlty
28+ uses : qltysh/qlty-action/install@06730ef41b86b073c3813c0fc07a0c734980ce5d
29+
30+ - name : Run qlty check
31+ run : qlty check
32+
33+ - name : Run qlty code smells analysis
34+ run : qlty smells
Original file line number Diff line number Diff line change @@ -123,3 +123,9 @@ dmypy.json
123123
124124# Yarn cache
125125.yarn /
126+ # Qlty cache directories
127+ .qlty /cache
128+ .qlty /logs
129+ .qlty /out
130+ .qlty /plugin_cachedir
131+ .qlty /results
Original file line number Diff line number Diff line change 1+ # Qlty Configuration
2+ # Learn more at https://docs.qlty.sh
3+ config_version = " 0"
4+
5+ # Plugins configuration
6+ [[plugin ]]
7+ name = " actionlint"
8+
9+ [[plugin ]]
10+ name = " trufflehog"
11+
12+ [[plugin ]]
13+ name = " osv-scanner"
14+
15+ # Source configuration
16+ [[source ]]
17+ name = " default"
18+ default = true
19+
20+ # Exclusion patterns
21+ exclude_patterns = [
22+ " node_modules/**" ,
23+ " dist/**" ,
24+ " build/**" ,
25+ " coverage/**" ,
26+ " **/*.min.js" ,
27+ " **/*.min.css" ,
28+ " .git/**" ,
29+ ]
30+
31+ # Code Smells Configuration
32+ [smells ]
33+ mode = " comment"
34+
35+ [smells .boolean_logic ]
36+ enabled = true
37+ threshold = 4
38+
39+ [smells .nested_control_flow ]
40+ enabled = true
41+ threshold = 4
42+
43+ [smells .function_parameters ]
44+ enabled = true
45+ threshold = 5
46+
47+ [smells .function_length ]
48+ enabled = true
49+ threshold = 50
50+
51+ [smells .file_length ]
52+ enabled = true
53+ threshold = 500
54+
55+ [smells .cognitive_complexity ]
56+ enabled = true
57+ threshold = 15
58+
59+ [smells .duplicate_code ]
60+ enabled = true
61+ threshold = 6
62+
63+ [smells .large_class ]
64+ enabled = true
65+ threshold = 500
66+
67+ [smells .long_parameter_list ]
68+ enabled = true
69+ threshold = 2
You can’t perform that action at this time.
0 commit comments