Module removed from modules

pull/5370/head
aniket-engg 5 years ago committed by Aniket
parent afd7705d7a
commit 0e1b07e903
  1. 1
      remix-analyzer/src/solidity-analyzer/modules/assignAndCompare.ts
  2. 1
      remix-analyzer/src/solidity-analyzer/modules/blockBlockhash.ts
  3. 1
      remix-analyzer/src/solidity-analyzer/modules/blockTimestamp.ts
  4. 1
      remix-analyzer/src/solidity-analyzer/modules/checksEffectsInteraction.ts
  5. 1
      remix-analyzer/src/solidity-analyzer/modules/constantFunctions.ts
  6. 1
      remix-analyzer/src/solidity-analyzer/modules/deleteDynamicArrays.ts
  7. 1
      remix-analyzer/src/solidity-analyzer/modules/deleteFromDynamicArray.ts
  8. 1
      remix-analyzer/src/solidity-analyzer/modules/erc20Decimals.ts
  9. 1
      remix-analyzer/src/solidity-analyzer/modules/etherTransferInLoop.ts
  10. 1
      remix-analyzer/src/solidity-analyzer/modules/forLoopIteratesOverDynamicArray.ts
  11. 1
      remix-analyzer/src/solidity-analyzer/modules/gasCosts.ts
  12. 1
      remix-analyzer/src/solidity-analyzer/modules/guardConditions.ts
  13. 1
      remix-analyzer/src/solidity-analyzer/modules/inlineAssembly.ts
  14. 1
      remix-analyzer/src/solidity-analyzer/modules/intDivisionTruncate.ts
  15. 1
      remix-analyzer/src/solidity-analyzer/modules/lowLevelCalls.ts
  16. 1
      remix-analyzer/src/solidity-analyzer/modules/noReturn.ts
  17. 1
      remix-analyzer/src/solidity-analyzer/modules/selfdestruct.ts
  18. 1
      remix-analyzer/src/solidity-analyzer/modules/similarVariableNames.ts
  19. 1
      remix-analyzer/src/solidity-analyzer/modules/stringBytesLength.ts
  20. 1
      remix-analyzer/src/solidity-analyzer/modules/thisLocal.ts
  21. 1
      remix-analyzer/src/solidity-analyzer/modules/txOrigin.ts

@ -8,7 +8,6 @@ export default class assignAndCompare {
description = 'The result of an operation was not used.'
category = category.MISC
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isSubScopeWithTopLevelUnAssignedBinOp(node)) getUnAssignedTopLevelBinOps(node).forEach((n) => this.warningNodes.push(n))

@ -8,7 +8,6 @@ export default class blockBlockhash {
desc = 'Semantics maybe unclear'
categories = category.SECURITY
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isBlockBlockHashAccess(node)) this.warningNodes.push(node)

@ -9,7 +9,6 @@ export default class blockTimestamp {
desc = 'Semantics maybe unclear'
categories = category.SECURITY
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isNowAccess(node)) this.warningNowNodes.push(node)

@ -11,7 +11,6 @@ export default class checksEffectsInteraction {
desc = 'Avoid potential reentrancy bugs'
categories = category.SECURITY
algorithm = algorithm.HEURISTIC
Module = this
abstractAst = new AbstractAst()

@ -12,7 +12,6 @@ export default class constantFunctions {
desc = 'Check for potentially constant functions'
categories = category.MISC
algorithm = algorithm.HEURISTIC
Module = this
abstractAst = new AbstractAst()

@ -8,7 +8,6 @@ export default class deleteDynamicArrays {
desc = 'Use require and appropriately'
categories = category.GAS
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isDeleteOfDynamicArray(node)) this.rel.push(node)

@ -6,7 +6,6 @@ export default class deleteFromDynamicArray {
name = 'Delete from dynamic Array: '
desc = 'Using delete on an array leaves a gap'
categories = category.MISC
Module = this
visit (node) {
if (isDeleteFromDynamicArray(node) && !isMappingIndexAccess(node.children[0])) this.relevantNodes.push(node)

@ -8,7 +8,6 @@ export default class erc20Decimals {
desc = 'Decimal should be uint8'
categories = category.ERC
algorithm = algorithm.EXACT
Module = this
abstractAst = new AbstractAst()
visit = this.abstractAst.build_visit((node) => false)

@ -6,7 +6,6 @@ export default class etherTransferInLoop {
name = 'Ether transfer in a loop: '
desc = 'Avoid transferring Ether to multiple addresses in a loop'
category = category.GAS
Module = this
visit (node) {
if (isLoop(node)) {

@ -6,7 +6,6 @@ export default class forLoopIteratesOverDynamicArray {
name = 'For loop iterates over dynamic array: '
desc = 'The number of \'for\' loop iterations depends on dynamic array\'s size'
categories = category.GAS
Module = this
visit (node) {
if (isForLoop(node)) {

@ -6,7 +6,6 @@ export default class gasCosts {
desc = 'Warn if the gas requirements of functions are too high.'
categories = category.GAS
algorithm = algorithm.EXACT
Module = this
/**

@ -8,7 +8,6 @@ export default class guardConditions {
desc = 'Use require and appropriately'
categories = category.MISC
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isRequireCall(node) || isAssertCall(node)) this.guards.push(node)

@ -8,7 +8,6 @@ export default class inlineAssembly {
desc = 'Use of Inline Assembly'
categories = category.SECURITY
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isInlineAssembly(node)) this.inlineAssNodes.push(node)

@ -8,7 +8,6 @@ export default class intDivitionTruncate {
desc = 'Division on int/uint values truncates the result.'
categories = category.MISC
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isIntDivision(node)) this.warningNodes.push(node)

@ -9,7 +9,6 @@ export default class lowLevelCalls {
desc = 'Semantics maybe unclear'
categories = category.SECURITY
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isLowLevelCallInst(node)) {

@ -8,7 +8,6 @@ export default class noReturn {
desc = 'Function with return type is not returning'
categories = category.MISC
algorithm = algorithm.EXACT
Module = this
abstractAst = new AbstractAst()

@ -8,7 +8,6 @@ export default class selfdestruct {
desc = 'Be aware of caller contracts.'
categories = category.SECURITY
algorithm = algorithm.HEURISTIC
Module = this
abstractAst = new AbstractAst()

@ -11,7 +11,6 @@ export default class similarVariableNames {
abstractAst = new AbstractAst()
categories = category.MISC
algorithm = algorithm.EXACT
Module = this
visit = this.abstractAst.build_visit(
(node) => false

@ -5,7 +5,6 @@ export default class stringBytesLength {
name = 'String Length: '
desc = 'Bytes length != String length'
categories = category.MISC
Module = this
stringToBytesConversions: any[] = []
bytesLengthChecks: any[] = []

@ -8,7 +8,6 @@ export default class thisLocal {
desc = 'Invocation of local functions via this'
categories = category.GAS
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (isThisLocalCall(node)) this.warningNodes.push(node)

@ -7,7 +7,6 @@ export default class txOrigin {
desc = 'Warn if tx.origin is used'
categories = category.SECURITY
algorithm = algorithm.EXACT
Module = this
visit (node) {
if (node.name === 'MemberAccess' &&

Loading…
Cancel
Save