From 5402225b767804cc59193b625a6b758fb54c69f2 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 20 Jun 2024 16:19:45 +0530 Subject: [PATCH] run static analysis --- .../src/app/tabs/locales/en/solidity.json | 1 + .../src/lib/contract-selection.tsx | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/apps/remix-ide/src/app/tabs/locales/en/solidity.json b/apps/remix-ide/src/app/tabs/locales/en/solidity.json index 3fc0da579d..b9b51dbbf5 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/solidity.json +++ b/apps/remix-ide/src/app/tabs/locales/en/solidity.json @@ -52,6 +52,7 @@ "solidity._comment_contract-selection.tsx": "libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx", "solidity.publishOn": "Publish on", + "solidity.runStaticAnalysis": "Run Static Analysis", "solidity.flatten": "Flatten contracts before UML generation.", "solidity.generateUML": "Generate a UML diagram of your contract.", "solidity.flattenLabel": "Flatten", diff --git a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx index 6a0e4d47d5..1d4d24b493 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx @@ -245,6 +245,10 @@ export const ContractSelection = (props: ContractSelectionProps) => { return bytecodeObj.object } + const runStaticAnalysis = () => { + console.log('runStaticAnalysis') + } + return ( // define swarm logo <> @@ -264,6 +268,26 @@ export const ContractSelection = (props: ContractSelectionProps) => {
+