|
OpenVAS Scanner 23.32.3
|
Source of the NASL linter of OpenVAS. More...
#include "lint.h"#include "nasl.h"#include <gio/gio.h>#include <glib.h>#include <stdio.h>#include <stdlib.h>
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. | |
| static int | process_file (const gchar *filepath, int mode, struct script_infos *script_args) |
| Process a file through the linter. | |
| 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. | |
| static int | process_files (const gchar **files, int mode, struct script_infos *script_args) |
| Process each given files through the linter. | |
| static void | custom_log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) |
| custom log handler | |
| int | main (int argc, char **argv) |
| Main of the nasl QA linter. | |
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 137 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 25 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 150 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 53 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 80 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 118 of file nasl-lint.c.
References process_file().
Referenced by main().

