diff --git a/libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts b/libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts index e94189ba29..fcda3e0f76 100644 --- a/libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts +++ b/libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts @@ -31,16 +31,14 @@ export const runLinting = async (solhintEnabled, setHints, hints: SolHintReport[ if (!isSupportedVersion) return if (solhintEnabled === false) return if (state.data !== null) { - if (state.data && solhintEnabled) { + if (solhintEnabled) { props.analysisModule.hints = [] setHints([]) - const hintsResult = await props.analysisModule.call('solhint', 'lint', state.file) - props.analysisModule.hints = solhintEnabled === false ? 0 : hintsResult - setHints(hintsResult) - props.analysisModule.emit('statusChanged', { key: hints.length+warningResult.length, - title: `${hints.length+warningResult.length} warning${hints.length+warningResult.length === 1 ? '' : 's'}`, type: 'warning'}) - } - } + const hintsResult = await props.analysisModule.call('solhint', 'lint', state.file) + props.analysisModule.hints = solhintEnabled === false ? 0 : hintsResult + return hintsResult + } + } } /** @@ -73,6 +71,7 @@ slitherEnabled: boolean, setStartAnalysis: React.Dispatch 0 || showSlither)) { + _paq.push(['trackEvent', 'solidityStaticAnalyzer', 'analyze', 'remixAnalyzer']) const warningMessage = [] const warningErrors = [] @@ -84,12 +83,11 @@ slitherEnabled: boolean, setStartAnalysis: React.Dispatch