run solidity scan

pull/5370/head
aniket-engg 5 months ago committed by Aniket
parent 5402225b76
commit 3a008a2242
  1. 1
      apps/remix-ide/src/app/tabs/locales/en/solidity.json
  2. 26
      libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx

@ -53,6 +53,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.runSolidityScan": "Run Solidity Scan",
"solidity.flatten": "Flatten contracts before UML generation.",
"solidity.generateUML": "Generate a UML diagram of your contract.",
"solidity.flattenLabel": "Flatten",

@ -249,6 +249,10 @@ export const ContractSelection = (props: ContractSelectionProps) => {
console.log('runStaticAnalysis')
}
const runSolidityScan = () => {
console.log('runSolidityScan')
}
return (
// define swarm logo
<>
@ -272,7 +276,7 @@ export const ContractSelection = (props: ContractSelectionProps) => {
id="runStaticAnalysis"
className="btn btn-secondary btn-block"
onClick={() => {
handlePublishToStorage('ipfs')
runStaticAnalysis()
}}
>
<CustomTooltip
@ -288,6 +292,26 @@ export const ContractSelection = (props: ContractSelectionProps) => {
</span>
</CustomTooltip>
</button>
<button
id="runSolidityScan"
className="btn btn-secondary btn-block"
onClick={() => {
runSolidityScan()
}}
>
<CustomTooltip
placement={'auto-end'}
tooltipId="runSolidityScanTooltip"
tooltipClasses="text-nowrap"
tooltipText={`${intl.formatMessage({
id: 'solidity.runSolidityScan'
})}`}
>
<span>
<FormattedMessage id="solidity.runSolidityScan" />
</span>
</CustomTooltip>
</button>
<button
id="publishOnIpfs"
className="btn btn-secondary btn-block"

Loading…
Cancel
Save