troubadix 25.2.3__py3-none-any.whl → 25.2.4__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/plugins/encoding.py +4 -4
- {troubadix-25.2.3.dist-info → troubadix-25.2.4.dist-info}/METADATA +1 -1
- {troubadix-25.2.3.dist-info → troubadix-25.2.4.dist-info}/RECORD +7 -7
- {troubadix-25.2.3.dist-info → troubadix-25.2.4.dist-info}/LICENSE +0 -0
- {troubadix-25.2.3.dist-info → troubadix-25.2.4.dist-info}/WHEEL +0 -0
- {troubadix-25.2.3.dist-info → troubadix-25.2.4.dist-info}/entry_points.txt +0 -0
troubadix/__version__.py
CHANGED
troubadix/plugins/encoding.py
CHANGED
|
@@ -26,7 +26,7 @@ from troubadix.plugin import LineContentPlugin, LinterError, LinterResult
|
|
|
26
26
|
# Only the ASCII and extended ASCII for now... # https://www.ascii-code.com/
|
|
27
27
|
# CHAR_SET = r"[^\x00-\xFF]"
|
|
28
28
|
# Temporary only check for chars in between 7f-9f, like in the old Feed-QA...
|
|
29
|
-
|
|
29
|
+
INVALID_CHAR_PATTERN = re.compile(r"[\x7F-\x9F]")
|
|
30
30
|
|
|
31
31
|
ALLOWED_ENCODINGS = ["ascii", "latin_1"]
|
|
32
32
|
|
|
@@ -52,10 +52,10 @@ class CheckEncoding(LineContentPlugin):
|
|
|
52
52
|
)
|
|
53
53
|
|
|
54
54
|
for index, line in enumerate(lines, 1):
|
|
55
|
-
encoding =
|
|
56
|
-
if encoding
|
|
55
|
+
encoding = INVALID_CHAR_PATTERN.search(line)
|
|
56
|
+
if encoding:
|
|
57
57
|
yield LinterError(
|
|
58
|
-
"Found invalid character",
|
|
58
|
+
f"Found invalid character in line: {index}",
|
|
59
59
|
file=nasl_file,
|
|
60
60
|
plugin=self.name,
|
|
61
61
|
line=index,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
troubadix/__init__.py,sha256=K7sIXXDrC7YRb7BvIpdQ6ZfG_QkT0qUH_wAlHROVRfM,716
|
|
2
|
-
troubadix/__version__.py,sha256=
|
|
2
|
+
troubadix/__version__.py,sha256=0rtl7FCxri_EKhq7P0zjkdiQB0I5q7mLzGfDW6PDcZ0,103
|
|
3
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=x7I4HG9cvG5QZuMJXtAiVavjQBpr-wtxPrrYoUDknnY,145525
|
|
@@ -23,7 +23,7 @@ troubadix/plugins/deprecated_functions.py,sha256=6e46woXd-3hUBnnuIXLlaqlcP6F7c99
|
|
|
23
23
|
troubadix/plugins/double_end_points.py,sha256=1TLVc8HFYEKS870zaIoKmsAjBsRU9WZpaMKReRDUoLo,2509
|
|
24
24
|
troubadix/plugins/duplicate_oid.py,sha256=lemYl3CUoOMFtRTLnlfjwPptnN51sQby3D9YjFtOv2Q,2652
|
|
25
25
|
troubadix/plugins/duplicated_script_tags.py,sha256=UPBR2jbU15JLKJlVk1e2GFREH5Wj5Ax2yDFrmRKq74Y,3123
|
|
26
|
-
troubadix/plugins/encoding.py,sha256=
|
|
26
|
+
troubadix/plugins/encoding.py,sha256=zNzqNpP39TUwOklnc8OJ3OIUelAN_hvnuBYoa3Pz764,2104
|
|
27
27
|
troubadix/plugins/forking_nasl_functions.py,sha256=pYUebqPBWuqfLmnRYJgpGnrmx4YbnKIiRG8cmsIgmq4,6014
|
|
28
28
|
troubadix/plugins/get_kb_on_services.py,sha256=oFmcjiF7ZD3x5tEbJEoZNn80y1qUzNgeSZNsogSqaZ0,3401
|
|
29
29
|
troubadix/plugins/grammar.py,sha256=5YFf7EQ7EPa3Oy4i21VjeLkVM6x_yaSbqxRHZ3XQWgk,9093
|
|
@@ -93,8 +93,8 @@ troubadix/standalone_plugins/last_modification.py,sha256=iwT11m5O1UXXZl6XaxQ0umd
|
|
|
93
93
|
troubadix/standalone_plugins/no_solution.py,sha256=81r20kP8otRob2NTaCea-sgVRIM6ARvhddFdibsG6Ao,8877
|
|
94
94
|
troubadix/standalone_plugins/version_updated.py,sha256=RlzVuXgFOvcjrRTOhiTYlmzV4vvcn7ntCz0lDTjePMU,4316
|
|
95
95
|
troubadix/troubadix.py,sha256=5__Jz3bYSrya4aG6RCBWxqnsDepXfwXZ3v0bjCzEFi0,6039
|
|
96
|
-
troubadix-25.2.
|
|
97
|
-
troubadix-25.2.
|
|
98
|
-
troubadix-25.2.
|
|
99
|
-
troubadix-25.2.
|
|
100
|
-
troubadix-25.2.
|
|
96
|
+
troubadix-25.2.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
97
|
+
troubadix-25.2.4.dist-info/METADATA,sha256=oF9NJHFgDYqKnI0OZD1ETp_kSBPJ0vcF47kTB6HUsYU,4421
|
|
98
|
+
troubadix-25.2.4.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
99
|
+
troubadix-25.2.4.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
|
|
100
|
+
troubadix-25.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|