Commit 6cd5e77 evgeniygerasimov
committed
1 parent 696dc40 commit 6cd5e77 Copy full SHA for 6cd5e77
File tree 2 files changed +27
-2
lines changed
2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: Copyright (c) 2021-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length,shellcheck
5
+ name : custom-pylint
6
+ " on " :
7
+ push :
8
+ branches :
9
+ - master
10
+ pull_request :
11
+ branches :
12
+ - master
13
+ jobs :
14
+ custom-lint :
15
+ timeout-minutes : 15
16
+ runs-on : ubuntu-24.04
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-python@v5
20
+ with :
21
+ python-version : 3.11
22
+ - run : |
23
+ pip install pylint
24
+ pylint --load-plugins=custom_checkers -d all -e C0411 .
Original file line number Diff line number Diff line change 5
5
# This metric counts the number of getter and setter methods in a class.
6
6
7
7
import sys
8
+ from typing import Final
8
9
from javalang import tree , parse
9
10
10
11
sys .setrecursionlimit (10000 )
@@ -29,8 +30,8 @@ def analyze_method(method: tree.MethodDeclaration) -> str | None:
29
30
30
31
31
32
if __name__ == '__main__' :
32
- java = sys .argv [1 ]
33
- metrics = sys .argv [2 ]
33
+ java : Final [ str ] = sys .argv [1 ]
34
+ metrics : Final [ str ] = sys .argv [2 ]
34
35
35
36
getter_count = 0
36
37
setter_count = 0
You can’t perform that action at this time.
0 commit comments