crash.software
Projects
Pull Requests
Issues
Builds
scorecard
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
scorecard
Files
🤬
Sign In
0c090b3c
ROOT
/
pkg
/
sarif.go
Search
History
711 lines
|
ISO-8859-1
|
21 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
text
Text
:
string
region
StartLine
:
*uint
EndLine
:
*uint
StartColumn
:
*uint
EndColumn
:
*uint
CharOffset
:
*uint
ByteOffset
:
*uint
Snippet
:
*text
artifactLocation
URI
:
string
URIBaseID
:
string
physicalLocation
Region
:
region
ArtifactLocation
:
artifactLocation
location
PhysicalLocation
:
physicalLocation
Message
:
*text
HasRemediation
:
bool
relatedLocation
ID
:
int
PhysicalLocation
:
physicalLocation
Message
:
text
partialFingerprints
defaultConfig
Level
:
string
properties
Precision
:
string
ProblemSeverity
:
string
SeverityLevel
:
string
Tags
:
[]string
help
Text
:
string
Markdown
:
string
rule
ID
:
string
Name
:
string
HelpURI
:
string
ShortDesc
:
text
FullDesc
:
text
Help
:
help
DefaultConfig
:
defaultConfig
Properties
:
properties
driver
Name
:
string
InformationURI
:
string
SemVersion
:
string
Rules
:
[]rule
tool
Driver
:
driver
result
RuleID
:
string
Level
:
string
RuleIndex
:
int
Message
:
text
Locations
:
[]location
RelatedLocations
:
[]relatedLocation
PartialFingerprints
:
partialFingerprints
automationDetails
ID
:
string
run
AutomationDetails
:
automationDetails
Tool
:
tool
Artifacts
:
string
Results
:
[]result
sarif210
Schema
:
string
Version
:
string
Runs
:
[]run
maxOffset
(x, y uint)
:
uint
calculateSeverityLevel
(risk string)
:
string
generateProblemSeverity
(risk string)
:
string
generateDefaultConfig
(risk string)
:
string
getPath
(d *checker.CheckDetail)
:
string
getLocationType
(d *checker.CheckDetail)
:
finding.FileType
getSnippet
(d *checker.CheckDetail)
:
*text
getStartLine
(d *checker.CheckDetail)
:
uint
getEndLine
(d *checker.CheckDetail)
:
uint
getText
(d *checker.CheckDetail)
:
*text
detailToRegion
(details *checker.CheckDetail)
:
region
shouldAddLocation
(detail *checker.CheckDetail, showDetails bool, minScore, score int, )
:
bool
setRemediation
(loc *location, d *checker.CheckDetail)
detailsToLocations
(details []checker.CheckDetail, showDetails bool, minScore, score int, )
:
[]location
addDefaultLocation
(locs []location, policyFile string)
:
[]location
createSARIFHeader
()
:
sarif210
createSARIFTool
(url, name, version string)
:
tool
createSARIFRun
(uri, toolName, version, commit string, t time.Time, category, runName string, )
:
run
getOrCreateSARIFRun
(runs map[string]*run, runName string, uri, toolName, version, commit string, t time.Time, category string, )
:
*run
generateRemediationMarkdown
(remediation []string)
:
string
generateMarkdownText
(longDesc, risk string, remediation []string)
:
string
createSARIFRule
(checkName, checkID, descURL, longDesc, shortDesc, risk string, remediation []string, tags []string, )
:
rule
createSARIFCheckResult
(pos int, checkID, message string, loc *location)
:
result
getCheckPolicyInfo
(policy *spol.ScorecardPolicy, name string)
:
(minScore int, enabled bool, err error)
contains
(l []string, elt string)
:
bool
computeCategory
(checkName string, repos []string)
:
(string, error)
createSARIFRuns
(runs map[string]*run)
:
[]run
createCheckIdentifiers
(name string)
:
(string, string)
filterOutDetailType
(details []checker.CheckDetail, t checker.DetailType)
:
[]checker.CheckDetail
messageWithScore
(msg string, score int)
:
string
createDefaultLocationMessage
(check *checker.CheckResult, score int)
:
string
*ScorecardResult
AsSARIF
(showDetails bool, logLevel log.Level, writer io.Writer, checkDocs docs.Doc, policy *spol.ScorecardPolicy, )
:
error
All occurrences
Please wait...
Page is in error, reload to recover