FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Nomos agent

About

Nomos does license identification using short phrases (regular expressions) and heuristics (e.g. phrase must be found in (or out of) proximity to another phrase or phrases).

Nomos may also identify a "style" type of license if it has similarities with a known license type.

The signatures which uniquely identify a license are stored in STRINGS.in file.

If you wish to contribute to Nomos, please read How to add a new license signature.

Debugging

Activating the defines of PROC_TRACE and/or DOCTOR_DEBUG (see line 31 of file parse.c). Nomos generates lot of tracing information that is really helpful to debug it.

PROC_TRACE will show you, for example, which regex's were tried and which are successful. To see the successful matches, grep the output file for "addRef".

DOCTOR_DEBUG will show you the before and after versions of the buffer to be processed. Look in the output file or ----- [Dr-BEFORE:] ----- and +++++ [Dr-AFTER] +++:

Supported actions

Command line flag Description
-i Initialize the database, then exit.
-c Specify the directory for the system configuration.
-l Print full file path (command line only).
-v Verbose (-vv = more verbose).
-J Output in JSON.
-S Print Highlightinfo to stdout .
file If files are listed, print the licenses detected within them.
no file Process data from the scheduler.
-V Print the version info, then exit.
-d Specify a directory to scan.
-n Spaw n - 1 child processes to run, there will be n running

processes(the parent and n - 1 children).
The default n is 2(when n is less than 2 or not setting, will be changed to 2) when -d is specified. |

Agent source