Documentation
¶
Overview ¶
Package dotnet implements a gorisk analyzer for C#/.NET projects. It supports packages.lock.json and *.csproj files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIRGraph ¶ added in v0.4.2
func BuildIRGraph(g *graph.DependencyGraph) ir.IRGraph
BuildIRGraph builds a function-level IR graph for a .NET dependency graph.
func Detect ¶
func Detect(dir string) capability.CapabilitySet
Detect walks .cs files in dir and returns the combined capability set.
func DetectFunctions ¶ added in v0.4.2
func DetectFunctions(dir, pkgName string, files []string) (map[string]ir.FunctionCaps, []ir.CallEdge, error)
DetectFunctions parses C# source files and returns per-function capability sets and call edges.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements the analyzer.Analyzer interface for C#/.NET projects.
type DotnetPackage ¶
DotnetPackage represents a .NET dependency.
func Load ¶
func Load(dir string) (pkgs []DotnetPackage, retErr error)
Load detects and parses the .NET dependency lockfile in dir. Priority: packages.lock.json → *.csproj → *.sln (glob for csproj files). Load never panics; it returns a structured error on failure.