Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
fa0a3c75
Commit
fa0a3c75
authored
Jun 25, 2021
by
aniket-engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terminal log for success
parent
1dd7cf40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+3
-2
No files found.
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
fa0a3c75
...
...
@@ -213,6 +213,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
const
{
currentVersion
,
optimize
,
evmVersion
}
=
compilerState
props
.
analysisModule
.
call
(
'slither'
,
'analyse'
,
state
.
file
,
{
currentVersion
,
optimize
,
evmVersion
}).
then
((
result
)
=>
{
if
(
result
.
status
)
{
props
.
analysisModule
.
call
(
'terminal'
,
'log'
,
{
type
:
'info'
,
value
:
`[Slither Analysis]: Success!!
${
result
.
count
}
warnings found.`
})
const
report
=
result
.
data
report
.
map
((
item
)
=>
{
let
location
:
any
=
{}
...
...
@@ -254,15 +255,15 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
warningErrors
.
push
(
options
)
warningMessage
.
push
({
msg
,
options
,
hasWarning
:
true
,
warningModuleName
:
'Slither Analysis'
})
})
showWarnings
(
warningMessage
,
'warningModuleName'
)
setShowSlitherResult
(
'block'
)
showWarnings
(
warningMessage
,
'warningModuleName'
)
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[
warningCount
])
}
})
})
}
else
{
setShowSlitherResult
(
'none'
)
showWarnings
(
warningMessage
,
'warningModuleName'
)
setShowSlitherResult
(
'node'
)
if
(
categoryIndex
.
length
>
0
)
{
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[
warningCount
])
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment