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
6ef0671f
Commit
6ef0671f
authored
Jun 10, 2021
by
aniket-engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run slither analysis by passing path
parent
0672234f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+1
-1
slitherClient.ts
libs/remixd/src/services/slitherClient.ts
+2
-2
No files found.
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
6ef0671f
...
...
@@ -108,7 +108,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
if
(
lastCompilationResult
&&
categoryIndex
.
length
>
0
)
{
let
warningCount
=
0
const
warningMessage
=
[]
props
.
analysisModule
.
call
(
'slither'
,
'analyse'
,
state
.
file
).
then
(
console
.
log
)
runner
.
run
(
lastCompilationResult
,
categoryIndex
,
results
=>
{
results
.
map
((
result
)
=>
{
let
moduleName
...
...
libs/remixd/src/services/slitherClient.ts
View file @
6ef0671f
...
...
@@ -26,8 +26,8 @@ export class SlitherClient extends PluginClient {
const
errMsg
=
'[Slither Analysis]: Cannot analyse in read-only mode'
return
reject
(
new
Error
(
errMsg
))
}
const
outputFile
=
'
slither-report.json'
const
cmd
=
`slither
${
filePath
}
--
disable-solc-warnings --
json
${
outputFile
}
`
const
outputFile
=
'
remix-slitherReport_'
+
Date
.
now
()
+
'.json'
const
cmd
=
`slither
${
filePath
}
--json
${
outputFile
}
`
const
options
=
{
cwd
:
this
.
currentSharedFolder
,
shell
:
true
}
const
child
=
spawn
(
cmd
,
options
)
let
result
=
''
...
...
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