troubadix 25.1.4__py3-none-any.whl → 25.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- troubadix/__version__.py +1 -1
- troubadix/argparser.py +6 -11
- troubadix/plugins/badwords.py +1 -1
- troubadix/standalone_plugins/last_modification.py +3 -4
- troubadix/troubadix.py +1 -1
- {troubadix-25.1.4.dist-info → troubadix-25.2.0.dist-info}/METADATA +2 -2
- {troubadix-25.1.4.dist-info → troubadix-25.2.0.dist-info}/RECORD +10 -10
- {troubadix-25.1.4.dist-info → troubadix-25.2.0.dist-info}/WHEEL +1 -1
- {troubadix-25.1.4.dist-info → troubadix-25.2.0.dist-info}/LICENSE +0 -0
- {troubadix-25.1.4.dist-info → troubadix-25.2.0.dist-info}/entry_points.txt +0 -0
troubadix/__version__.py
CHANGED
troubadix/argparser.py
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# You should have received a copy of the GNU General Public License
|
|
16
16
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
"""
|
|
18
|
+
"""Argument parser for troubadix"""
|
|
19
19
|
|
|
20
20
|
import sys
|
|
21
21
|
from argparse import ArgumentParser, Namespace
|
|
@@ -81,8 +81,7 @@ def parse_args(
|
|
|
81
81
|
"--full",
|
|
82
82
|
action="store_true",
|
|
83
83
|
help=(
|
|
84
|
-
"Checking the complete VT directory and "
|
|
85
|
-
"not only the added/changed scripts"
|
|
84
|
+
"Checking the complete VT directory and not only the added/changed scripts"
|
|
86
85
|
),
|
|
87
86
|
)
|
|
88
87
|
|
|
@@ -96,8 +95,7 @@ def parse_args(
|
|
|
96
95
|
"-r",
|
|
97
96
|
"--root",
|
|
98
97
|
type=directory_type,
|
|
99
|
-
help="Root directory for the nasl files. Will be derived from the "
|
|
100
|
-
"content if not set.",
|
|
98
|
+
help="Root directory for the nasl files. Will be derived from the content if not set.",
|
|
101
99
|
)
|
|
102
100
|
|
|
103
101
|
what_group = parser.add_mutually_exclusive_group(required=False)
|
|
@@ -152,8 +150,7 @@ def parse_args(
|
|
|
152
150
|
"--non-recursive",
|
|
153
151
|
action="store_true",
|
|
154
152
|
help=(
|
|
155
|
-
|
|
156
|
-
'Only usable with "-f"/"--full" or "-d"/"--dirs"'
|
|
153
|
+
'Don\'t run the script recursive. Only usable with "-f"/"--full" or "-d"/"--dirs"'
|
|
157
154
|
),
|
|
158
155
|
)
|
|
159
156
|
|
|
@@ -219,8 +216,7 @@ def parse_args(
|
|
|
219
216
|
default=max(1, cpu_count() // 2),
|
|
220
217
|
type=check_cpu_count,
|
|
221
218
|
help=(
|
|
222
|
-
"Define number of jobs, that should run simultaneously. "
|
|
223
|
-
"Default: %(default)s"
|
|
219
|
+
"Define number of jobs, that should run simultaneously. Default: %(default)s"
|
|
224
220
|
),
|
|
225
221
|
)
|
|
226
222
|
|
|
@@ -254,8 +250,7 @@ def parse_args(
|
|
|
254
250
|
and parsed_args.non_recursive
|
|
255
251
|
):
|
|
256
252
|
terminal.warning(
|
|
257
|
-
"'Argument '--non-recursive' is only usable with "
|
|
258
|
-
"'-f'/'--full' or '-d'/'--dirs'"
|
|
253
|
+
"'Argument '--non-recursive' is only usable with '-f'/'--full' or '-d'/'--dirs'"
|
|
259
254
|
)
|
|
260
255
|
sys.exit(1)
|
|
261
256
|
|
troubadix/plugins/badwords.py
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# You should have received a copy of the GNU General Public License
|
|
16
16
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
"""
|
|
18
|
+
"""checking badwords in NASL scripts with the NASLinter"""
|
|
19
19
|
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
from typing import Iterable, Iterator
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# You should have received a copy of the GNU General Public License
|
|
16
16
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
"""
|
|
18
|
+
"""updating the modification time in VTs that have been touched/edited"""
|
|
19
19
|
|
|
20
20
|
import datetime
|
|
21
21
|
import re
|
|
@@ -57,8 +57,7 @@ def update(nasl_file: Path, terminal: Terminal):
|
|
|
57
57
|
|
|
58
58
|
if not match_last_modification_any_value:
|
|
59
59
|
terminal.warning(
|
|
60
|
-
f'Ignoring "{nasl_file}" because it is missing a '
|
|
61
|
-
"last_modification tag."
|
|
60
|
+
f'Ignoring "{nasl_file}" because it is missing a last_modification tag.'
|
|
62
61
|
)
|
|
63
62
|
return
|
|
64
63
|
|
|
@@ -81,7 +80,7 @@ def update(nasl_file: Path, terminal: Terminal):
|
|
|
81
80
|
)
|
|
82
81
|
if not match_script_version:
|
|
83
82
|
terminal.warning(
|
|
84
|
-
f'Ignoring "{nasl_file}" because it is missing a
|
|
83
|
+
f'Ignoring "{nasl_file}" because it is missing a script_version.'
|
|
85
84
|
)
|
|
86
85
|
return
|
|
87
86
|
|
troubadix/troubadix.py
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# You should have received a copy of the GNU General Public License
|
|
16
16
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
"""
|
|
18
|
+
"""Main module for troubadix"""
|
|
19
19
|
|
|
20
20
|
import sys
|
|
21
21
|
from collections.abc import Iterable
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: troubadix
|
|
3
|
-
Version: 25.
|
|
3
|
+
Version: 25.2.0
|
|
4
4
|
Summary: A linting and QA check tool for NASL files
|
|
5
5
|
License: GPL-3.0-or-later
|
|
6
6
|
Author: Greenbone
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
20
|
Requires-Dist: chardet (>=4,<6)
|
|
21
21
|
Requires-Dist: charset-normalizer (>=3.2.0,<4.0.0)
|
|
22
|
-
Requires-Dist: codespell (==2.
|
|
22
|
+
Requires-Dist: codespell (==2.4.1)
|
|
23
23
|
Requires-Dist: gitpython (>=3.1.31,<4.0.0)
|
|
24
24
|
Requires-Dist: pontos (>=22.7,<26.0)
|
|
25
25
|
Requires-Dist: python-magic (>=0.4.25,<0.5.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
troubadix/__init__.py,sha256=K7sIXXDrC7YRb7BvIpdQ6ZfG_QkT0qUH_wAlHROVRfM,716
|
|
2
|
-
troubadix/__version__.py,sha256=
|
|
3
|
-
troubadix/argparser.py,sha256=
|
|
2
|
+
troubadix/__version__.py,sha256=QTadJ81jwpkZnU4x_0d0eHpUu7XI-SCf50-wCgo3SBk,103
|
|
3
|
+
troubadix/argparser.py,sha256=OFLyj2gUOdVUrN_DSyzSlhhkV0ti77naUvDcGVNUjtU,6929
|
|
4
4
|
troubadix/codespell/codespell.additions,sha256=NAYnQF79kdk4YhU_h8fpjAVVkqBm778aPHPPP7FEkZY,504
|
|
5
5
|
troubadix/codespell/codespell.exclude,sha256=W38XK8hoWWgLDCCJ7USj0YPhqzW68UN7va7bGA2n5eg,145449
|
|
6
6
|
troubadix/codespell/codespell.ignore,sha256=jeOZuryNNiKgj_KCr4-H2ff18wlCE5jo0vTTRUk4p4Q,1367
|
|
@@ -10,7 +10,7 @@ troubadix/helper/linguistic_exception_handler.py,sha256=Bq7ULjDdWTKUpFNTUX6XMPdD
|
|
|
10
10
|
troubadix/helper/patterns.py,sha256=_ifRnwHsPee9B0yRYSCsyFms4StWVWJq7I9YnQwToa8,9174
|
|
11
11
|
troubadix/plugin.py,sha256=3fQPj3Qe_hgwHerlYE4hbdzYMzRU557NxJ-UwtE9mOI,3525
|
|
12
12
|
troubadix/plugins/__init__.py,sha256=V5fHMg2qVWIYKVZJqHKpzgrQ5x87Pz5u-h-CxOx7Dls,7511
|
|
13
|
-
troubadix/plugins/badwords.py,sha256=
|
|
13
|
+
troubadix/plugins/badwords.py,sha256=hTC1tswk2QiaONrJgAseBMraprITfLVehu2CBPfs5P8,4601
|
|
14
14
|
troubadix/plugins/copyright_text.py,sha256=jYsLWmTbT_A78XQQxQFK-5kMMHkh3xdvlh7mEF2dZGU,3583
|
|
15
15
|
troubadix/plugins/copyright_year.py,sha256=XzM9MHVzOXwNLwHpfuaWj8PUOmswr56SBVOLBdvxjd4,5478
|
|
16
16
|
troubadix/plugins/creation_date.py,sha256=61vF871P2qdB0TE8g__BwgHHbs4ffxVmUmM3YAiy9GE,3357
|
|
@@ -89,12 +89,12 @@ troubadix/standalone_plugins/changed_packages/package.py,sha256=Pcr2tcwiPTzD3jB0
|
|
|
89
89
|
troubadix/standalone_plugins/common.py,sha256=PkScV-lisNY4WyrzwjV3dK1DF26hJv5JXTcREblJ0v0,1028
|
|
90
90
|
troubadix/standalone_plugins/deprecate_vts.py,sha256=iRYHA1_Uf1zRs0ExwNfo7Z6Jt6eSP4WBKwM6s2GyqeQ,7891
|
|
91
91
|
troubadix/standalone_plugins/file_extensions.py,sha256=QLQt02WIc4SWLDTKKnG8q2g-atC7Mgus-opuXf_SX1A,2630
|
|
92
|
-
troubadix/standalone_plugins/last_modification.py,sha256=
|
|
92
|
+
troubadix/standalone_plugins/last_modification.py,sha256=iwT11m5O1UXXZl6XaxQ0umdaydqid9rPWgXYTsigxwI,4596
|
|
93
93
|
troubadix/standalone_plugins/no_solution.py,sha256=81r20kP8otRob2NTaCea-sgVRIM6ARvhddFdibsG6Ao,8877
|
|
94
94
|
troubadix/standalone_plugins/version_updated.py,sha256=RlzVuXgFOvcjrRTOhiTYlmzV4vvcn7ntCz0lDTjePMU,4316
|
|
95
|
-
troubadix/troubadix.py,sha256=
|
|
96
|
-
troubadix-25.
|
|
97
|
-
troubadix-25.
|
|
98
|
-
troubadix-25.
|
|
99
|
-
troubadix-25.
|
|
100
|
-
troubadix-25.
|
|
95
|
+
troubadix/troubadix.py,sha256=5__Jz3bYSrya4aG6RCBWxqnsDepXfwXZ3v0bjCzEFi0,6039
|
|
96
|
+
troubadix-25.2.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
97
|
+
troubadix-25.2.0.dist-info/METADATA,sha256=4OCbhZNdeHb1Gfsk-B7aa7iU3n4UJTStLZobGMif1xQ,4421
|
|
98
|
+
troubadix-25.2.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
99
|
+
troubadix-25.2.0.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
|
|
100
|
+
troubadix-25.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|