OpenVAS Scanner
7.0.1~git
|
Source of the NASL linter of OpenVAS. More...
Go to the source code of this file.
Functions | |
static GDataInputStream * | get_DIS_from_filename (const gchar *filename) |
Returns a GDataInputStream* for a given filepath. More... | |
static gboolean | process_file (const gchar *filepath, int mode, struct script_infos *script_args) |
Process a file through the linter. More... | |
static int | process_file_list (const gchar *list_file, int mode, struct script_infos *script_args) |
Process each files in the list_file through the linter. More... | |
static int | process_files (const gchar **files, int mode, struct script_infos *script_args) |
Process each given files through the linter. More... | |
static void | custom_log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
custom log handler More... | |
int | main (int argc, char **argv) |
Main of the nasl QA linter. More... | |
Source of the NASL linter of OpenVAS.
Definition in file nasl-lint.c.
|
static |
custom log handler
This handler absorb each log_level not present in the log_mask, and forward the other ones to the default handler.
Definition at line 145 of file nasl-lint.c.
Referenced by main().
|
static |
Returns a GDataInputStream* for a given filepath.
filename | the path to the file to open |
Definition at line 38 of file nasl-lint.c.
Referenced by process_file_list().
int main | ( | int | argc, |
char ** | argv | ||
) |
Main of the nasl QA linter.
Definition at line 158 of file nasl-lint.c.
References add_nasl_inc_dir(), custom_log_handler(), NASL_ALWAYS_SIGNED, NASL_COMMAND_LINE, NASL_LINT, process_file_list(), and process_files().
|
static |
Process a file through the linter.
filepath | the path of the file to be processed |
mode,script_args | The parameters to be given to the linter |
Definition at line 66 of file nasl-lint.c.
References exec_nasl_script(), and script_infos::name.
Referenced by process_file_list(), and process_files().
|
static |
Process each files in the list_file through the linter.
list_file | the path to a text file containing path to the files to process, one per line |
mode,script_args | Parameters for the linter |
Definition at line 86 of file nasl-lint.c.
References get_DIS_from_filename(), and process_file().
Referenced by main().
|
static |
Process each given files through the linter.
files | The path to the files to be processed |
mode,script_args | Parameters to be given to the linter |
Definition at line 125 of file nasl-lint.c.
References process_file().
Referenced by main().