Commit 021d006
committed
Clear 5 Codacy main-branch findings
- rest_server: rename _JSONHandler.log_message parameter back to
``format`` so the signature matches BaseHTTPRequestHandler, silencing
PyLint W0221 (arguments-renamed); add a pylint disable comment because
the name deliberately shadows the builtin
- conf.py: add ``# pylint: disable=redefined-builtin`` next to the
existing ruff noqa for Sphinx's required ``copyright`` global (W0622)
- clipboard._linux_get/_linux_set: annotate the two subprocess.run
calls with nosemgrep for dangerous-subprocess-use-audit; the argv
list is built from an allowlist (xclip/xsel) located via shutil.which
- shell_process.exec_shell: same nosemgrep annotation on the Popen
call; argv is shlex-split then validated by ``_normalize_command``1 parent fa4acc1 commit 021d006
4 files changed
Lines changed: 6 additions & 3 deletions
File tree
- docs/source
- je_auto_control/utils
- clipboard
- rest_api
- shell_process
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments