analyser module listing updated

pull/7/head
aniket-engg 5 years ago
parent be95c5f381
commit e5dd64c381
  1. 4
      remix-analyzer/src/solidity-analyzer/index.ts
  2. 38
      remix-analyzer/src/solidity-analyzer/modules/list.ts

@ -18,8 +18,8 @@ export default class staticAnalysisRunner {
*/
run (compilationResult: CompilationResult, toRun: number[], callback: ((reports: AnalysisReport[]) => void)): void {
const modules: ModuleObj[] = toRun.map((i) => {
const m: AnalyzerModule = this.modules()[i]
return { 'name': m.name, 'mod': m }
const m = this.modules()[i]
return { 'name': new m().name, 'mod': new m() }
})
this.runWithModuleList(compilationResult, modules, callback)
}

@ -19,23 +19,23 @@ import deleteFromDynamicArray from './deleteFromDynamicArray'
import forLoopIteratesOverDynamicArray from './forLoopIteratesOverDynamicArray'
export default [
new txOrigin(),
new gasCosts(),
new thisLocal(),
new checksEffectsInteraction(),
new constantFunctions(),
new similarVariableNames(),
new inlineAssembly(),
new blockTimestamp(),
new lowLevelCalls(),
new blockBlockhash(),
new noReturn(),
new selfdestruct(),
new guardConditions(),
new deleteDynamicArrays(),
new assignAndCompare(),
new erc20Decimals(),
new stringBytesLength(),
new deleteFromDynamicArray(),
new forLoopIteratesOverDynamicArray()
txOrigin,
gasCosts,
thisLocal,
checksEffectsInteraction,
constantFunctions,
similarVariableNames,
inlineAssembly,
blockTimestamp,
lowLevelCalls,
blockBlockhash,
noReturn,
selfdestruct,
guardConditions,
deleteDynamicArrays,
assignAndCompare,
erc20Decimals,
stringBytesLength,
deleteFromDynamicArray,
forLoopIteratesOverDynamicArray
]

Loading…
Cancel
Save