crash.software
Projects
Pull Requests
Issues
Builds
bearer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
bearer
Files
🤬
Sign In
787a1116
ROOT
/
pkg
/
detectors
/
custom
/
custom.go
Search
History
431 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
insecureUrlPattern
createTableRegexp
sqlLanguage
Detector
idGenerator
:
nodeid.Generator
paramIdGenerator
:
nodeid.Generator
rulesGroupedByLang
:
map[string][]config.CompiledRule
pluralize
:
*pluralize.Client
Sql
:
language.Detector
New
(idGenerator nodeid.Generator)
:
types.Detector
validateRule
(rule config.CompiledRule)
:
error
languageMatchesFile
(file *file.FileInfo, ruleLanguage string)
:
bool
shouldIgnoreCaptures
(captures parser.Captures, rule config.CompiledRule)
:
bool
filterCaptures
(params []config.Param, captures []parser.Captures)
:
(filtered []parser.Captures, err error)
getLanguage
(input string)
:
*sitter.Language
*Detector
AcceptDir
(dir *file.Path)
:
(bool, error)
CompileRules
(rulesConfig map[string]*settings.Rule)
:
error
ProcessFile
(file *file.FileInfo, dir *file.Path, report report.Report)
:
(bool, error)
forLanguage
(lang string)
:
(language.Detector, error)
compileRule
( rulePattern settings.RulePattern, lang string, idGenerator nodeid.Generator, )
:
(config.CompiledRule, error)
executeRule
(rule config.CompiledRule, tree *parser.Tree, report report.Report, idGenerator nodeid.Generator)
:
error
extractData
(captures []parser.Captures, rule config.CompiledRule, report report.Report, lang string, idGenerator nodeid.Generator)
:
error
extractArguments
(language string, node *parser.Node, idGenerator nodeid.Generator)
:
(map[parser.NodeID]*schemadatatype.DataType, error)
All occurrences
Please wait...
Page is in error, reload to recover