fluidasserts.lang.rpgle module¶
This module allows to check RPGLE code vulnerabilities.
-
fluidasserts.lang.rpgle.
has_dos_dow_sqlcod
(rpg_dest, exclude=None)¶ Search for DoS for using
DoW SQLCOD = <ZERO>
.- Parameters
rpg_dest (
str
) – Path to a RPG source or directory.exclude (
typing.Optional
[list
]) – Paths that contains any string from this list are ignored.
- Return type
-
fluidasserts.lang.rpgle.
has_generic_exceptions
(rpg_dest, exclude=None)¶ Search for on-error empty or *PROGRAM, *FILE, or *ALL codes.
See REQ. 161.
- Parameters
rpg_dest (
str
) – Path to a RPG source or directory.exclude (
typing.Optional
[list
]) – Paths that contains any string from this list are ignored.
- Return type
-
fluidasserts.lang.rpgle.
swallows_exceptions
(rpg_dest, exclude=None)¶ Search for on-error without code.
See REQ.075.
- Parameters
rpg_dest (
str
) – Path to a RPG source or directory.exclude (
typing.Optional
[list
]) – Paths that contains any string from this list are ignored.
- Return type
-
fluidasserts.lang.rpgle.
uses_debugging
(rpg_dest, exclude=None)¶ Check if code uses DEBUG statement.
- Parameters
rpg_dest (
str
) – Path to a RPG source or directory.exclude (
typing.Optional
[list
]) – Paths that contains any string from this list are ignored.
- Return type
-
fluidasserts.lang.rpgle.
uses_dump
(rpg_dest, exclude=None)¶ Check if code uses DUMP statement.
- Parameters
rpg_dest (
str
) – Path to a RPG source or directory.exclude (
typing.Optional
[list
]) – Paths that contains any string from this list are ignored.
- Return type