From cc99ee5a1b8d37d7396a60d3d87bce7fbd945412 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 22 Jun 2023 00:43:50 +0100 Subject: [PATCH] split slither analysis & solhint & remix analysis --- .../src/lib/actions/staticAnalysisActions.ts | 43 +++++++++++++++---- 1 file changed, 34 insertions(+), 9 deletions(-) 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 0078b74bf9..18da143ad1 100644 --- a/libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts +++ b/libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts @@ -127,6 +127,39 @@ slitherEnabled: boolean, setStartAnalysis: React.Dispatch} + * @param warningContainer {React.RefObject} + * @returns {Promise} + */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +export async function runSlitherAnalysis (lastCompilationResult, lastCompilationSource, currentFile: string, state: RemixUiStaticAnalyserState, props: RemixUiStaticAnalyserProps, isSupportedVersion, showSlither, categoryIndex: number[], groupedModules, runner, _paq, message, showWarnings, allWarnings: React.RefObject, warningContainer: React.RefObject, calculateWarningStateEntries: (e:[string, any][]) => {length: number, errors: any[] }, warningState, setHints: React.Dispatch>, hints: SolHintReport[], setSlitherWarnings: React.Dispatch>, setSsaWarnings: React.Dispatch>, +slitherEnabled: boolean, setStartAnalysis: React.Dispatch>) { // Slither Analysis if (showSlither && slitherEnabled) { setSlitherWarnings([]) @@ -196,20 +229,12 @@ slitherEnabled: boolean, setStartAnalysis: React.Dispatch