Skip to main content
The scope:project allows to develop VulHunt rules that operate at the project level, rather than targeting individual functions or calls. This scope is also useful when debugging symbols are not present, to search for specific code and pattern.
ParameterDescriptionTypeRequired
withLua function to executefun(project: ProjectHandle)Yes

Syntax

scope:project{
    with = <function>
}

Reference

with

The with argument specifies the Lua function to execute.

Example

scopes = scope:project{
  with = function(project)
    -- Project-level analysis logic goes here
  end
}