troubadix 24.7.4__py3-none-any.whl → 24.8.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 CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  # THIS IS AN AUTOGENERATED FILE. DO NOT TOUCH!
4
4
 
5
- __version__ = "24.7.4"
5
+ __version__ = "24.8.0"
@@ -15,8 +15,13 @@
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
- from .helper import get_path_from_root, get_root, is_ignore_file, subprocess_cmd
19
- from .patterns import (
18
+ from .helper import ( # noqa: F401
19
+ get_path_from_root,
20
+ get_root,
21
+ is_ignore_file,
22
+ subprocess_cmd,
23
+ )
24
+ from .patterns import ( # noqa: F401
20
25
  ScriptTag,
21
26
  SpecialScriptTag,
22
27
  get_common_tag_patterns,
@@ -39,7 +39,7 @@ class CheckCreationDate(FileContentPlugin):
39
39
  ):
40
40
  return
41
41
 
42
- if not "creation_date" in file_content:
42
+ if "creation_date" not in file_content:
43
43
  yield LinterError(
44
44
  "No creation date has been found.",
45
45
  file=nasl_file,
@@ -93,7 +93,7 @@ class CheckDependencyCategoryOrder(FileContentPlugin):
93
93
  """
94
94
  if (
95
95
  nasl_file.suffix == ".inc"
96
- or not "script_dependencies(" in file_content
96
+ or "script_dependencies(" not in file_content
97
97
  or "# troubadix: disable=template_nd_test_files_fps" in file_content
98
98
  ):
99
99
  return
@@ -42,7 +42,7 @@ class CheckDeprecatedDependency(FilePlugin):
42
42
  file_content = self.context.file_content
43
43
 
44
44
  if (
45
- not "script_dependencies(" in file_content
45
+ "script_dependencies(" not in file_content
46
46
  or "# troubadix: disable=template_nd_test_files_fps" in file_content
47
47
  ):
48
48
  return
@@ -18,7 +18,6 @@ import re
18
18
  from typing import Iterator
19
19
 
20
20
  from troubadix.helper import is_ignore_file
21
-
22
21
  from troubadix.plugin import FilePlugin, LinterError, LinterResult
23
22
 
24
23
  # nb: Those are files which have this misplaced compare since their very first
@@ -17,7 +17,7 @@
17
17
  import re
18
18
  from typing import Iterator
19
19
 
20
- from troubadix.helper import is_ignore_file, ScriptTag, SpecialScriptTag
20
+ from troubadix.helper import ScriptTag, SpecialScriptTag, is_ignore_file
21
21
  from troubadix.helper.patterns import (
22
22
  _get_special_script_tag_pattern,
23
23
  get_script_tag_pattern,
@@ -21,7 +21,6 @@ from typing import Iterator
21
21
 
22
22
  from troubadix.helper import is_ignore_file
23
23
  from troubadix.helper.patterns import ScriptTag, get_script_tag_pattern
24
-
25
24
  from troubadix.plugin import FileContentPlugin, LinterError, LinterResult
26
25
 
27
26
  # nb: Those are files which are correctly using a log_message() to do e.g. some
@@ -63,7 +63,7 @@ class CheckScriptXrefUrl(FileContentPlugin):
63
63
  )
64
64
  for match in matches:
65
65
  if match:
66
- if not match.group("value") in ALLOWED_URLS and not url(
66
+ if match.group("value") not in ALLOWED_URLS and not url(
67
67
  match.group("value")
68
68
  ):
69
69
  yield LinterError(
@@ -173,7 +173,7 @@ class CheckSpelling(FilesPlugin):
173
173
  name = "check_spelling"
174
174
 
175
175
  def _parse_codespell_line(self, line: str) -> Tuple[str, str]:
176
- if not "==>" in line:
176
+ if "==>" not in line:
177
177
  raise ValueError("Invalid codespell line")
178
178
 
179
179
  file, _, correction = line.split(":")
@@ -418,7 +418,7 @@ class CheckValidOID(FileContentPlugin):
418
418
  if (
419
419
  (10000 <= oid_digit <= 29999)
420
420
  or (50000 <= oid_digit <= 118999)
421
- or (120000 <= oid_digit <= 128999)
421
+ or (120000 <= oid_digit <= 129999)
422
422
  or (130000 <= oid_digit <= 169999)
423
423
  or (170000 <= oid_digit <= 179999)
424
424
  or (200000 <= oid_digit <= 209999)
@@ -15,8 +15,8 @@
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
- from .added_epoch import AddedEpoch
19
- from .added_release import AddedRelease
20
- from .added_udeb import AddedUdeb
21
- from .changed_update import ChangedUpdate
22
- from .dropped_architecture import DroppedArchitecture
18
+ from .added_epoch import AddedEpoch # noqa: F401
19
+ from .added_release import AddedRelease # noqa: F401
20
+ from .added_udeb import AddedUdeb # noqa: F401
21
+ from .changed_update import ChangedUpdate # noqa: F401
22
+ from .dropped_architecture import DroppedArchitecture # noqa: F401
@@ -30,7 +30,7 @@ class DroppedArchitecture(Marker):
30
30
  @classmethod
31
31
  def mark(cls, missing_packages: List[Package], new_packages: List[Package]):
32
32
  for package in missing_packages:
33
- if not ":" in package.name:
33
+ if ":" not in package.name:
34
34
  continue
35
35
 
36
36
  other_package = cls._find_package(
@@ -8,12 +8,12 @@ from enum import Enum
8
8
  from pathlib import Path
9
9
  from typing import Iterable, Optional
10
10
 
11
- from troubadix.argparser import file_type, directory_type
11
+ from troubadix.argparser import directory_type, file_type
12
12
  from troubadix.helper.patterns import (
13
- get_special_script_tag_pattern,
14
- get_script_tag_pattern,
15
13
  ScriptTag,
16
14
  SpecialScriptTag,
15
+ get_script_tag_pattern,
16
+ get_special_script_tag_pattern,
17
17
  )
18
18
 
19
19
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: troubadix
3
- Version: 24.7.4
3
+ Version: 24.8.0
4
4
  Summary: A linting and QA check tool for NASL files
5
5
  Home-page: https://github.com/greenbone/troubadix
6
6
  License: GPL-3.0-or-later
@@ -1,10 +1,10 @@
1
1
  troubadix/__init__.py,sha256=K7sIXXDrC7YRb7BvIpdQ6ZfG_QkT0qUH_wAlHROVRfM,716
2
- troubadix/__version__.py,sha256=RFqZUpG5MiN2CU3kzX7tuoRtRv-3p6_Xajm8UsmC5Xk,103
2
+ troubadix/__version__.py,sha256=FUZzt4XiLZNWu7EOWDcj95zSM-AVgsO7br8NrUKuQXo,103
3
3
  troubadix/argparser.py,sha256=r9IkiYkd_8BqFGUEkhpawnW5DHo4hIciHd0dptToBjk,6999
4
4
  troubadix/codespell/codespell.additions,sha256=9hUrzjJF4Q8T5rVLx8CQa01oICvmsjzE6sCPjVRDOEU,418
5
5
  troubadix/codespell/codespell.exclude,sha256=qALEzLglEbPwcTRwGcobM_MTJzZyJekYRdJY3ws5yeM,138030
6
6
  troubadix/codespell/codespell.ignore,sha256=-naAh453UCGeT-oGWoJ5QNuUrDGP0aRd8WrOuU6oETI,1175
7
- troubadix/helper/__init__.py,sha256=ZymU9WC26wzFsPczAVyoNjktlJ94TJmoRQ2OeBlG8Fg,1061
7
+ troubadix/helper/__init__.py,sha256=tp2fPLzwGEA_2eiJbvuePiY6rjYSFxx7VUsCV4fSwvw,1110
8
8
  troubadix/helper/helper.py,sha256=GXapYLii2rLKwkX2ok31YoAdUSizBnyPjWz-aPP6HM8,3105
9
9
  troubadix/helper/linguistic_exception_handler.py,sha256=Bq7ULjDdWTKUpFNTUX6XMPdD4s4v8eIjZPyqBe8VLws,6811
10
10
  troubadix/helper/patterns.py,sha256=_ifRnwHsPee9B0yRYSCsyFms4StWVWJq7I9YnQwToa8,9174
@@ -13,12 +13,12 @@ troubadix/plugins/__init__.py,sha256=McIt4ZDPLmFxr0WMi8FmRoV-bDLXxSP-6JbrYKR1RHc
13
13
  troubadix/plugins/badwords.py,sha256=C5Vuq6rzyeQkbEsg4t9ui9K05nQAh3Xy93sqV9K7aNw,4603
14
14
  troubadix/plugins/copyright_text.py,sha256=jYsLWmTbT_A78XQQxQFK-5kMMHkh3xdvlh7mEF2dZGU,3583
15
15
  troubadix/plugins/copyright_year.py,sha256=n6-1hKV58Aj9iPTsaUqVxeoFUVZT3Xgc-YLdqNkM2_g,3334
16
- troubadix/plugins/creation_date.py,sha256=HX1cpWFVhXc2lTqjDllAKi5RWDP0WfgWg2RV04dt3PY,3357
16
+ troubadix/plugins/creation_date.py,sha256=61vF871P2qdB0TE8g__BwgHHbs4ffxVmUmM3YAiy9GE,3357
17
17
  troubadix/plugins/cve_format.py,sha256=Ue6b9RzuQZWOdBd6y5ruqdEq2zyRb2_FSUQScnjHOUQ,3400
18
18
  troubadix/plugins/cvss_format.py,sha256=GrZfZxkxSh9OVixmBBnHQ4NzF9nN2tCK1vepz_-U60g,2309
19
19
  troubadix/plugins/dependencies.py,sha256=eW6uOThTF8WfBbkZYAZ3BW34_WJ87IAETJLe1dcEO2Q,4118
20
- troubadix/plugins/dependency_category_order.py,sha256=8q4kOZk2Ryc8vfra9u1El0hw-GDv-viwXmJcZnUz1yQ,7010
21
- troubadix/plugins/deprecated_dependency.py,sha256=u7s5qysNeV9CwBxxcfq4HdwRhTpDbHH7zJJt9Y-h7PY,3831
20
+ troubadix/plugins/dependency_category_order.py,sha256=CrEWJHDeuD4zdSnKghsjf_D5EICQDN2Dv72OsVrYgnU,7010
21
+ troubadix/plugins/deprecated_dependency.py,sha256=TFTe9fO4A0S3JTXpxdHaVnQ9ZSHR3lLQjggS_FjGY-s,3831
22
22
  troubadix/plugins/deprecated_functions.py,sha256=6e46woXd-3hUBnnuIXLlaqlcP6F7c99Y0ZGeXfsbQYc,2568
23
23
  troubadix/plugins/double_end_points.py,sha256=1TLVc8HFYEKS870zaIoKmsAjBsRU9WZpaMKReRDUoLo,2509
24
24
  troubadix/plugins/duplicate_oid.py,sha256=lemYl3CUoOMFtRTLnlfjwPptnN51sQby3D9YjFtOv2Q,2652
@@ -31,16 +31,16 @@ troubadix/plugins/http_links_in_tags.py,sha256=yKT5SgLo__TJKAfudfIHkoMF0g9VtOP4V
31
31
  troubadix/plugins/illegal_characters.py,sha256=B6q_RU85AxCjLry56Oc-RhMSpnJU8mTrxclRzi1FVFU,4406
32
32
  troubadix/plugins/log_messages.py,sha256=COrnp3bXMG8PRIAD2x5Ka9hk-jI16We9ifXj6JBZI0c,2960
33
33
  troubadix/plugins/malformed_dependencies.py,sha256=96W5RJX8CbMkprA2M601qVLgBV-ibJ96bAmtyoSrgFw,3000
34
- troubadix/plugins/misplaced_compare_in_if.py,sha256=GpKMfbT1Yi-Z7TCnuVD049KvGvRykjwikDkmaJxOuWw,4827
34
+ troubadix/plugins/misplaced_compare_in_if.py,sha256=lqiKk09ksmaavhFhxfivttIQKXEr-nwYHHyhtVxPJJQ,4826
35
35
  troubadix/plugins/missing_desc_exit.py,sha256=GAd4FXhjX1ZEkb4hz3HqqDQVSxfuXVtuKKjLgwHROXk,2411
36
36
  troubadix/plugins/missing_tag_solution.py,sha256=iO7_6Us3w12AVPuiGK3AUU3S62K1lcZvcGK_-fvvQtk,2828
37
37
  troubadix/plugins/multiple_re_parameters.py,sha256=9NugrcdHBmX2UO9mOuWiqxbIX1sXniZ2AhSW2pguSBE,1422
38
38
  troubadix/plugins/newlines.py,sha256=aEQOzkzd3rl9DjEi7q0EOB1M8h41WXr0O5Qf4jMFEvM,2788
39
39
  troubadix/plugins/overlong_description_lines.py,sha256=dF7UQ7tphkWuiXeLj4-y0zi86RumkwCCPCn2My1SIDo,3130
40
40
  troubadix/plugins/overlong_script_tags.py,sha256=LKJQxX9s2fkExkM0MOIqYZGOKbEe9eth7DEcxFo3A8k,2356
41
- troubadix/plugins/prod_svc_detect_in_vulnvt.py,sha256=HO0UHqkzkU2DdkhSeSJPOtuAFaoPbMFnZ1CMxgHkMdw,4292
41
+ troubadix/plugins/prod_svc_detect_in_vulnvt.py,sha256=AnHF5jPNz4wEr-etZ2fkJNqqMH2he-9ofOdzWJyPeK4,4292
42
42
  troubadix/plugins/qod.py,sha256=u4VPFAjzidnnPrmwuSPZuK8KKMZBFi30XqaRGLcYPhc,3816
43
- troubadix/plugins/reporting_consistency.py,sha256=EIMfHICM4SNIubvfmsx_pZrdfBVAtTf6tguYGb5FUX8,4028
43
+ troubadix/plugins/reporting_consistency.py,sha256=xBLd3ASa2zlPg61ONpBFSt_RtblTQ70vKWm05MS0tew,4027
44
44
  troubadix/plugins/script_add_preference_type.py,sha256=KhVYU24g-OJF1XqPOsqX1k8LU7-BciSXQ2EbCcnJezw,3193
45
45
  troubadix/plugins/script_calls_empty_values.py,sha256=XdtqTGWI3k_3eId-XAgxwXLxucENqC5CIQJG8Ncn1_M,2512
46
46
  troubadix/plugins/script_calls_recommended.py,sha256=b2QKTzu6nIyzecxRkYPSPo0BcdSD3s-4jbhaHKB_uk8,3137
@@ -52,18 +52,18 @@ troubadix/plugins/script_tag_whitespaces.py,sha256=2ZqiNufPIyr5Wmcuap3Wy8RXO_CHG
52
52
  troubadix/plugins/script_tags_mandatory.py,sha256=t9GiueHwCjWq-2jQszYNufWpfIKTLdUbbvXPyiw3HeY,2630
53
53
  troubadix/plugins/script_version_and_last_modification_tags.py,sha256=Yz9dQwrsRfIqXwPd8Re8aDu--SBjgufWOA6U7tW4JW4,7638
54
54
  troubadix/plugins/script_xref_form.py,sha256=5L1KPUHiKbe-71o-X0cUBT844XvIOsAJbB14gnYTod0,1848
55
- troubadix/plugins/script_xref_url.py,sha256=V7MW3poPmSrcd_EGsftAiCTU19JRq9z1BOQibXq73k8,2875
55
+ troubadix/plugins/script_xref_url.py,sha256=-IOzYTIINm8rZpI0CG94y_fdwJRW0FlRiGf3MnSj1O8,2875
56
56
  troubadix/plugins/security_messages.py,sha256=EPu3-YB0iP5_hfbQjrfvvTrQRiPgDjC85GTz3V-by0Q,4629
57
57
  troubadix/plugins/set_get_kb_calls.py,sha256=WGu1CKLjn3VhbDo33IJ4TtWQ-kz9gInkJskTqOSMM6k,3415
58
58
  troubadix/plugins/solution_text.py,sha256=4Gs84Qsyg-1iTDP7Y7o8Bo5AH4hKlwGPW0NfwMpx2fU,5852
59
59
  troubadix/plugins/solution_type.py,sha256=6wq7lj0bCL6tTaZ-d_aGKq6a_jVlCD73GltHJsJhmm8,2602
60
60
  troubadix/plugins/spaces_in_filename.py,sha256=v8OqzzZSeI4_iXATHYzkf-HoAMxc_xb2Nj0HPAVevpk,611
61
- troubadix/plugins/spelling.py,sha256=DVETNxOeHcK8EOSZpKpLkeU7phGTfN1zqG_lOdO2-p4,9593
61
+ troubadix/plugins/spelling.py,sha256=3AW5sNtLL67OthKLaCH_y2HCVJ5YH_eyF9xjTJMIDG4,9593
62
62
  troubadix/plugins/tabs.py,sha256=7zXaTZe4cZoZvrLyqntVfTeNN_W3D8dfQl67QevXxtc,1319
63
63
  troubadix/plugins/todo_tbd.py,sha256=MN5fFwBhPmt3JDQ2Hx20B8yUy1vz7LIZC3rDIOzfW9M,1758
64
64
  troubadix/plugins/trailing_spaces_tabs.py,sha256=nMly8ZsmGprxHvwCDclKBDRB0eq6JEkjERYKvtStkY4,1873
65
65
  troubadix/plugins/using_display.py,sha256=Hd-eysbXlkQb4M-ywzSd784k3aBSiG_sO6Ou0JdbyJA,4046
66
- troubadix/plugins/valid_oid.py,sha256=wVyjvBuybdP22VXbLnQFocMHuAfU-UYh5RWKmKXjJ_U,16629
66
+ troubadix/plugins/valid_oid.py,sha256=vKU6EA8bIepFpE3iqbEVFge3Hi2NKMo1e5NKPdAAqx8,16629
67
67
  troubadix/plugins/valid_script_tag_names.py,sha256=6uMJsBdV-Zx-k1F2_MWmQPHXNo1u0ifuosbftbg-27E,3447
68
68
  troubadix/plugins/variable_assigned_in_if.py,sha256=NNz8iuzyQ4rSM6My4WYC1s5TABQqgs7us15PkDA-VV0,3285
69
69
  troubadix/plugins/variable_redefinition_in_foreach.py,sha256=SfaA70TkpD9dsvNbhwJEA3eLAHWvj4YwksN-qeBMowg,2470
@@ -77,23 +77,23 @@ troubadix/standalone_plugins/allowed_rev_diff.py,sha256=5Zc8xTZlkMOPVNRdxNkosFFt
77
77
  troubadix/standalone_plugins/changed_cves.py,sha256=nEWwDa33QXekvpwcmnGMrdPHrJISz9p9j6lX09teDlk,2921
78
78
  troubadix/standalone_plugins/changed_oid.py,sha256=TxZ-fh6p10B17gzIapyrHYZbuWvq9PMHDjqx1lAPTN4,4047
79
79
  troubadix/standalone_plugins/changed_packages/changed_packages.py,sha256=tyNwpJgaZS2o0X6xywXAQ_i7LB9HsEQYbDZ3Tcvtsdo,5742
80
- troubadix/standalone_plugins/changed_packages/marker/__init__.py,sha256=vEnaYCqFp9BYlQmGhID8vS_XZdhBJ_P5yWURuLI5ygo,923
80
+ troubadix/standalone_plugins/changed_packages/marker/__init__.py,sha256=Le59j2KcaXez1MIPjZ8GDJmSuLGkOVI3k2-BWO30Bc0,993
81
81
  troubadix/standalone_plugins/changed_packages/marker/added_epoch.py,sha256=PfnG5B1v8SwOJw3ez-eb794PT7k-O4hJKDHMSd9lwNo,1797
82
82
  troubadix/standalone_plugins/changed_packages/marker/added_release.py,sha256=W5YXSu1V2dMn8rIlJinYGRs42NZ8qGJOh53lncK3pVM,1486
83
83
  troubadix/standalone_plugins/changed_packages/marker/added_udeb.py,sha256=EqSv7cF9vX1YmtT_WymrRPlcCqhYoXHvVLlJ6wBSKs4,1124
84
84
  troubadix/standalone_plugins/changed_packages/marker/changed_update.py,sha256=Gag73zgAVYn25HBBwZQM08xkySfXupQViiTeGpsIjMs,1952
85
- troubadix/standalone_plugins/changed_packages/marker/dropped_architecture.py,sha256=vISaFjoRr2b_wDGUx9t2Dar8P-CAuQZa9WkcI92Sbps,1634
85
+ troubadix/standalone_plugins/changed_packages/marker/dropped_architecture.py,sha256=NrW5naBaMgV4_AuCxCGJ64RH_qBuYJp_KOzW-ixap9U,1634
86
86
  troubadix/standalone_plugins/changed_packages/marker/marker.py,sha256=7uZXR2Ds_8soB_2wugCkOSz_3hoX03KMh2NAW0G5Dzg,1278
87
87
  troubadix/standalone_plugins/changed_packages/package.py,sha256=Pcr2tcwiPTzD3jB0iteqA7-TajL-dl5Onh1dvC_H9xk,2743
88
88
  troubadix/standalone_plugins/common.py,sha256=PkScV-lisNY4WyrzwjV3dK1DF26hJv5JXTcREblJ0v0,1028
89
- troubadix/standalone_plugins/deprecate_vts.py,sha256=gbvG8znQliwZ5XdHqnu-hSk36L33SDqZZhKQcvyGOSI,7661
89
+ troubadix/standalone_plugins/deprecate_vts.py,sha256=kqWYfRO6Cr2E_zBnP3kJQoVznpRDcbIF6x6AiApYGBk,7661
90
90
  troubadix/standalone_plugins/file_extensions.py,sha256=3lEf73573RaTWgWZgiw8FFICKwc9FfFe8IKrufGofNM,2327
91
91
  troubadix/standalone_plugins/last_modification.py,sha256=oYzQq7xV3YzSvi6ZtuHuupXsJwBtO93tKfbwaIeqiJI,4616
92
92
  troubadix/standalone_plugins/no_solution.py,sha256=81r20kP8otRob2NTaCea-sgVRIM6ARvhddFdibsG6Ao,8877
93
93
  troubadix/standalone_plugins/version_updated.py,sha256=dIGj81rbluyNjINn9kA1yPY2hUo6fqbNa-kg0Zi9Clc,4263
94
94
  troubadix/troubadix.py,sha256=L3Iacrq2uQx8wrmsD4nCFjJDeRDMRWtgSgHLWdP8gJE,6045
95
- troubadix-24.7.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
96
- troubadix-24.7.4.dist-info/METADATA,sha256=AgpN_bCPUZl7sfGF-tdEgABumptblQ5C5WwR-eHzOFs,3965
97
- troubadix-24.7.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
98
- troubadix-24.7.4.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
99
- troubadix-24.7.4.dist-info/RECORD,,
95
+ troubadix-24.8.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
96
+ troubadix-24.8.0.dist-info/METADATA,sha256=TVF06yMgKeZJNT_a4BOYkwlKovf0EY8N0wJ70GXuMCU,3965
97
+ troubadix-24.8.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
98
+ troubadix-24.8.0.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
99
+ troubadix-24.8.0.dist-info/RECORD,,