Commit 27238e00 authored by aniket-engg's avatar aniket-engg Committed by Aniket

linting for libs fixed

parent d73e2271
{ {
"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": ["!**/*"]
} }
...@@ -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.
......
...@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment