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
27238e00
Commit
27238e00
authored
Jul 20, 2020
by
aniket-engg
Committed by
Aniket
Jul 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting for libs fixed
parent
d73e2271
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
.eslintrc
libs/remix-analyzer/.eslintrc
+2
-1
lowLevelCalls.ts
...x-analyzer/src/solidity-analyzer/modules/lowLevelCalls.ts
+2
-2
internalCallTree.js
libs/remix-debug/src/solidity-decoder/internalCallTree.js
+1
-0
No files found.
libs/remix-analyzer/.eslintrc
View file @
27238e00
{
{
"extends": "../../.eslintrc",
"extends": "../../.eslintrc",
"rules": {
"rules": {
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
},
},
"ignorePatterns": ["!**/*"]
"ignorePatterns": ["!**/*"]
}
}
libs/remix-analyzer/src/solidity-analyzer/modules/lowLevelCalls.ts
View file @
27238e00
...
@@ -40,8 +40,8 @@ export default class lowLevelCalls implements AnalyzerModule {
...
@@ -40,8 +40,8 @@ export default class lowLevelCalls implements AnalyzerModule {
report
(
compilationResults
:
CompilationResult
):
ReportObj
[]
{
report
(
compilationResults
:
CompilationResult
):
ReportObj
[]
{
const
version
=
getCompilerVersion
(
compilationResults
.
contracts
)
const
version
=
getCompilerVersion
(
compilationResults
.
contracts
)
return
this
.
llcNodes
.
map
((
item
,
i
)
=>
{
return
this
.
llcNodes
.
map
((
item
,
i
)
=>
{
let
text
:
string
=
''
let
text
=
''
let
morehref
:
string
=
''
let
morehref
=
''
switch
(
item
.
type
)
{
switch
(
item
.
type
)
{
case
lowLevelCallTypes
.
CALL
:
case
lowLevelCallTypes
.
CALL
:
text
=
`Use of "call": should be avoided whenever possible.
text
=
`Use of "call": should be avoided whenever possible.
...
...
libs/remix-debug/src/solidity-decoder/internalCallTree.js
View file @
27238e00
...
@@ -109,6 +109,7 @@ class InternalCallTree {
...
@@ -109,6 +109,7 @@ class InternalCallTree {
let
functions
=
[]
let
functions
=
[]
if
(
!
scopeId
)
return
functions
if
(
!
scopeId
)
return
functions
let
i
=
0
let
i
=
0
// eslint-disable-next-line no-constant-condition
while
(
true
)
{
while
(
true
)
{
i
+=
1
i
+=
1
if
(
i
>
1000
)
throw
new
Error
(
'retrieFunctionStack: recursion too deep'
)
if
(
i
>
1000
)
throw
new
Error
(
'retrieFunctionStack: recursion too deep'
)
...
...
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