Merge pull request #869 from ethereum/remix-analyzer

Remix analyzer
pull/7/head
yann300 6 years ago committed by GitHub
commit d91743aac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      .circleci/config.yml
  2. 3
      lerna.json
  3. 5
      remix-analyzer/index.js
  4. 42
      remix-analyzer/package.json
  5. 0
      remix-analyzer/src/analysis/modules/abstractAstView.js
  6. 0
      remix-analyzer/src/analysis/modules/assignAndCompare.js
  7. 0
      remix-analyzer/src/analysis/modules/blockBlockhash.js
  8. 0
      remix-analyzer/src/analysis/modules/blockTimestamp.js
  9. 0
      remix-analyzer/src/analysis/modules/categories.js
  10. 0
      remix-analyzer/src/analysis/modules/checksEffectsInteraction.js
  11. 0
      remix-analyzer/src/analysis/modules/constantFunctions.js
  12. 0
      remix-analyzer/src/analysis/modules/deleteDynamicArrays.js
  13. 0
      remix-analyzer/src/analysis/modules/functionCallGraph.js
  14. 0
      remix-analyzer/src/analysis/modules/gasCosts.js
  15. 0
      remix-analyzer/src/analysis/modules/guardConditions.js
  16. 0
      remix-analyzer/src/analysis/modules/inlineAssembly.js
  17. 0
      remix-analyzer/src/analysis/modules/intDivisionTruncate.js
  18. 0
      remix-analyzer/src/analysis/modules/list.js
  19. 0
      remix-analyzer/src/analysis/modules/lowLevelCalls.js
  20. 0
      remix-analyzer/src/analysis/modules/noReturn.js
  21. 0
      remix-analyzer/src/analysis/modules/selfdestruct.js
  22. 0
      remix-analyzer/src/analysis/modules/similarVariableNames.js
  23. 0
      remix-analyzer/src/analysis/modules/staticAnalysisCommon.js
  24. 0
      remix-analyzer/src/analysis/modules/thisLocal.js
  25. 0
      remix-analyzer/src/analysis/modules/txOrigin.js
  26. 0
      remix-analyzer/src/analysis/staticAnalysisRunner.js
  27. 0
      remix-analyzer/test/analysis/staticAnalysisCommon-test.js
  28. 0
      remix-analyzer/test/analysis/staticAnalysisIntegration-test.js
  29. 0
      remix-analyzer/test/analysis/staticAnalysisIssues-test.js
  30. 0
      remix-analyzer/test/analysis/test-contracts/KingOfTheEtherThrone.sol
  31. 0
      remix-analyzer/test/analysis/test-contracts/assembly.sol
  32. 0
      remix-analyzer/test/analysis/test-contracts/ballot.sol
  33. 0
      remix-analyzer/test/analysis/test-contracts/ballot_reentrant.sol
  34. 0
      remix-analyzer/test/analysis/test-contracts/ballot_withoutWarnings.sol
  35. 0
      remix-analyzer/test/analysis/test-contracts/blockLevelCompare.sol
  36. 0
      remix-analyzer/test/analysis/test-contracts/cross_contract.sol
  37. 0
      remix-analyzer/test/analysis/test-contracts/ctor.sol
  38. 0
      remix-analyzer/test/analysis/test-contracts/deleteDynamicArray.sol
  39. 0
      remix-analyzer/test/analysis/test-contracts/forgottenReturn.sol
  40. 0
      remix-analyzer/test/analysis/test-contracts/functionParameters.sol
  41. 0
      remix-analyzer/test/analysis/test-contracts/globals.sol
  42. 0
      remix-analyzer/test/analysis/test-contracts/inheritance.sol
  43. 0
      remix-analyzer/test/analysis/test-contracts/intDivisionTruncate.sol
  44. 0
      remix-analyzer/test/analysis/test-contracts/library.sol
  45. 0
      remix-analyzer/test/analysis/test-contracts/modifier1.sol
  46. 0
      remix-analyzer/test/analysis/test-contracts/modifier2.sol
  47. 0
      remix-analyzer/test/analysis/test-contracts/notReentrant.sol
  48. 0
      remix-analyzer/test/analysis/test-contracts/reentrant.sol
  49. 0
      remix-analyzer/test/analysis/test-contracts/selfdestruct.sol
  50. 0
      remix-analyzer/test/analysis/test-contracts/structReentrant.sol
  51. 0
      remix-analyzer/test/analysis/test-contracts/thisLocal.sol
  52. 0
      remix-analyzer/test/analysis/test-contracts/transfer.sol
  53. 0
      remix-analyzer/test/tests.js
  54. 2
      remix-solidity/index.js
  55. 1
      remix-solidity/package.json

@ -14,16 +14,6 @@ jobs:
- run: npm install && npm run bootstrap
- run: cd remix-lib && npm test
remix-solidity:
docker:
- image: circleci/node:7.10
environment:
working_directory: ~/repo
steps:
- checkout
- run: npm install && npm run bootstrap
- run: cd remix-solidity && npm test
remix-debug:
docker:
- image: circleci/node:7.10
@ -33,12 +23,22 @@ jobs:
- checkout
- run: npm install && npm run bootstrap
- run: cd remix-debug && npm test
remix-analyzer:
docker:
- image: circleci/node:7.10
environment:
working_directory: ~/repo
steps:
- checkout
- run: npm install && npm run bootstrap
- run: cd remix-analyzer && npm test
workflows:
version: 2
build_all:
jobs:
- remix-lib
- remix-solidity
- remix-debug
- remix-analyzer

@ -4,7 +4,8 @@
"remix-debug",
"remix-debugger",
"remix-lib",
"remix-solidity"
"remix-solidity",
"remix-analyzer"
],
"version": "independent"
}

@ -0,0 +1,5 @@
var CodeAnalysis = require('./src/analysis/staticAnalysisRunner')
module.exports = {
CodeAnalysis: CodeAnalysis
}

@ -0,0 +1,42 @@
{
"name": "remix-analyzer",
"version": "0.1.0",
"description": "Remix Analyzer",
"main": "./index.js",
"contributors": [
{
"name": "Alex Beregszaszi",
"email": "alex@rtfs.hu"
},
{
"name": "Iuri Matias",
"email": "iuri@ethereum.org"
},
{
"name": "Yann Levreau",
"email": "yann@ethdev.com"
}
],
"dependencies": {
"babel-eslint": "^7.1.1",
"babel-plugin-transform-object-assign": "^6.22.0",
"remix-lib": "^0.2.9",
"babel-preset-es2015": "^6.24.0",
"solc": "^0.4.24",
"standard": "^7.0.1",
"tape": "^4.6.0"
},
"scripts": {
"test": "standard && tape ./test/tests.js"
},
"standard": {
"ignore": [
"node_modules/*",
"soljson.js"
],
"parser": "babel-eslint"
},
"author": "Remix Team",
"license": "MIT",
"homepage": "https://github.com/ethereum/remix#readme"
}

@ -1,9 +1,7 @@
var CodeAnalysis = require('./src/analysis/staticAnalysisRunner')
var Compiler = require('./src/compiler/compiler')
var CompilerInput = require('./src/compiler/compiler-input')
module.exports = {
CodeAnalysis: CodeAnalysis,
Compiler: Compiler,
CompilerInput: CompilerInput
}

@ -29,7 +29,6 @@
"webworkify": "^1.2.1"
},
"scripts": {
"test": "standard && npm run downloadsolc && tape ./test/tests.js",
"downloadsolc": "cd node_modules/solc && (test -e soljson.js || wget --no-check-certificate https://solc-bin.ethereum.org/soljson.js) && cd ..",
"prepublish": "mkdirp build; npm-run-all -ls downloadsolc",
"postinstall": "npm-run-all -ls downloadsolc"

Loading…
Cancel
Save