Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IaC Scan Runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIACERE
public
The Platform
IaC Scan Runner
Commits
a377e056
Commit
a377e056
authored
2 years ago
by
penenadpi
Committed by
Anze Luzar
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Extending js support
parent
d18c906c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/iac_scan_runner/compatibility.py
+7
-1
7 additions, 1 deletion
src/iac_scan_runner/compatibility.py
src/iac_scan_runner/results_summary.py
+11
-3
11 additions, 3 deletions
src/iac_scan_runner/results_summary.py
with
18 additions
and
4 deletions
src/iac_scan_runner/compatibility.py
+
7
−
1
View file @
a377e056
...
...
@@ -44,6 +44,7 @@ class Compatibility:
scanned_yaml
=
[]
scanned_java
=
[]
scanned_html
=
[]
scanned_js
=
[]
# TODO: List of supported file types should be extended
# TODO: Remove hardcoded check names
...
...
@@ -75,12 +76,17 @@ class Compatibility:
types
.
append
(
"
html
"
)
scanned_html
.
append
(
filename
)
if
f
.
find
(
"
.js
"
)
>
-
1
:
types
.
append
(
"
js
"
)
scanned_js
.
append
(
filename
)
self
.
scanned_files
[
"
terraform
"
]
=
str
(
scanned_terraform
)
self
.
scanned_files
[
"
python
"
]
=
str
(
scanned_py
)
self
.
scanned_files
[
"
shell
"
]
=
str
(
scanned_shell
)
self
.
scanned_files
[
"
yaml
"
]
=
str
(
scanned_yaml
)
self
.
scanned_files
[
"
java
"
]
=
str
(
scanned_java
)
self
.
scanned_files
[
"
html
"
]
=
str
(
scanned_html
)
self
.
scanned_files
[
"
js
"
]
=
str
(
scanned_js
)
types
=
set
(
types
)
print
(
types
)
...
...
This diff is collapsed.
Click to expand it.
src/iac_scan_runner/results_summary.py
+
11
−
3
View file @
a377e056
...
...
@@ -87,11 +87,19 @@ class ResultsSummary:
return
"
Problems
"
if
check
==
"
es-lint
"
:
if
outcome
==
""
:
if
outcome
.
find
(
"
wrong
"
)
>-
1
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Problems
"
return
"
Passed
"
else
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Passed
"
return
"
Problems
"
if
check
==
"
ts-lint
"
:
if
outcome
.
find
(
"
wrong
"
)
>-
1
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
Prolems
"
return
"
Passed
"
else
:
self
.
outcomes
[
check
][
"
status
"
]
=
"
P
roblems
"
self
.
outcomes
[
check
][
"
status
"
]
=
"
P
assed
"
return
"
Problems
"
def
summarize_no_files
(
self
,
check
:
str
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment