Returns the detection patterns for identifying inputs, outputs, and dependencies in source code files for a specific programming language.
Arguments
- language
Character string specifying the language. Options: "r", "python", "sql", "shell", "julia", "javascript", "typescript", "go", "rust", "java", "c", "cpp", "matlab", "ruby", "lua", "wgsl"
- type
Optional character string to filter by detection type. Options: "input", "output", "dependency". If NULL (default), returns all.
Value
A list of patterns with the following structure:
input: List of patterns for detecting file inputs
output: List of patterns for detecting file outputs
dependency: List of patterns for detecting script dependencies
Each pattern contains:
regex: Regular expression to match the function call
arg_position: Position of the file path argument (1-indexed)
arg_name: Named argument for file path (alternative to position)
description: Human-readable description