Commit be714b7c authored by aniket-engg's avatar aniket-engg Committed by Aniket

function body traversal for identifier

parent a6a173d3
......@@ -53,9 +53,10 @@ export default class similarVariableNames implements AnalyzerModule {
if (node.nodeType === "Identifier" && (node.name === sim.var1 || node.name === sim.var2)) {
warnings.push({
warning: `${funcName} : Variables have very similar names "${sim.var1}" and "${sim.var2}". ${hasModifiersComments} ${multipleContractsWithSameNameComments}`,
location: func.node['src']
location: node['src']
})
}
return true
})
}
})
......
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