FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/python/ql/src/analysis/Summary.ql at codeql-cli/v2.26.3 · github/codeql · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10k
Code
Issues
997
Pull requests
463
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
python
/
ql
/
src
/
analysis
/
Summary.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (42 loc) · 1.19 KB
Breadcrumbs
codeql
/
python
/
ql
/
src
/
analysis
/
Summary.ql
Copy path
File metadata and controls
44 lines (42 loc) · 1.19 KB
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* Summarize a snapshot
*/
import
python
private
import
LegacyPointsTo
from
string
key
,
string
value
where
key
=
"Extractor version"
and
py_flags_versioned
(
"extractor.version"
,
value
,
_
)
or
key
=
"Snapshot build time"
and
exists
(
date
d
|
snapshotDate
(
d
)
and
value
=
d
.
toString
(
)
)
or
key
=
"Interpreter version"
and
exists
(
string
major
,
string
minor
|
py_flags_versioned
(
"extractor_python_version.major"
,
major
,
_
)
and
py_flags_versioned
(
"extractor_python_version.minor"
,
minor
,
_
)
and
value
=
major
+
"."
+
minor
)
or
key
=
"Build platform"
and
exists
(
string
raw
|
py_flags_versioned
(
"sys.platform"
,
raw
,
_
)
|
if
raw
=
"win32"
then
value
=
"Windows"
else
if
raw
=
"linux2"
then
value
=
"Linux"
else
if
raw
=
"darwin"
then
value
=
"OSX"
else
value
=
raw
)
or
key
=
"Source location"
and
sourceLocationPrefix
(
value
)
or
key
=
"Lines of code (source)"
and
value
=
sum
(
ModuleMetrics
m
|
exists
(
m
.
getFile
(
)
.
getRelativePath
(
)
)
|
m
.
getNumberOfLinesOfCode
(
)
)
.
toString
(
)
or
key
=
"Lines of code (total)"
and
value
=
sum
(
ModuleMetrics
m
|
any
(
)
|
m
.
getNumberOfLinesOfCode
(
)
)
.
toString
(
)
select
key
,
value
Back
|
FazBrowse Home
|
New Git URL