FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql-action/src/tools-features.ts at default-setup-testing · github/codeql-action · GitHub
github
codeql-action
Repository navigation
Code
Issues
165
(165)
Pull requests
44
(44)
Actions
Security and quality
2
(2)
Insights
Expand file tree
Breadcrumbs
codeql-action
/
src
/
tools-features.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (22 loc) · 940 Bytes
Breadcrumbs
codeql-action
/
src
/
tools-features.ts
Copy path
File metadata and controls
24 lines (22 loc) · 940 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import
type
{
VersionInfo
}
from
"./cli/types"
;
export
enum
ToolsFeature
{
BuiltinExtractorsSpecifyDefaultQueries
=
"builtinExtractorsSpecifyDefaultQueries"
,
BundleSupportsIncludeOption
=
"bundleSupportsIncludeOption"
,
BundleSupportsOverlay
=
"bundleSupportsOverlay"
,
IndirectTracingSupportsStaticBinaries
=
"indirectTracingSupportsStaticBinaries"
,
SuppressesMissingFileBaselineWarning
=
"suppressesMissingFileBaselineWarning"
,
SwiftSupportsAllPlatforms
=
"swiftSupportsAllPlatforms"
,
}
/**
* Determines if the given feature is supported by the CLI.
*
*
@param
versionInfo Version information, including features, returned by the CLI.
*
@param
feature The feature to check for.
*
@returns
True if the feature is supported or false otherwise.
*/
export
function
isSupportedToolsFeature
(
versionInfo
:
VersionInfo
,
feature
:
ToolsFeature
,
)
:
boolean
{
return
!
!
versionInfo
.
features
&&
versionInfo
.
features
[
feature
]
;
}
Back
|
FazBrowse Home
|
New Git URL