|
|
@ -16,10 +16,10 @@ export function BasicTabBody({ state, hideWarnings, showLibsWarning, warningStat |
|
|
|
{Object.entries(warningState).length > 0 ? ( |
|
|
|
{Object.entries(warningState).length > 0 ? ( |
|
|
|
<div id="staticanalysisresult"> |
|
|
|
<div id="staticanalysisresult"> |
|
|
|
<div className="mb-4 pt-2"> |
|
|
|
<div className="mb-4 pt-2"> |
|
|
|
{Object.entries(warningState).map((element, index) => ( |
|
|
|
{Object.entries(warningState).map((warning, index) => ( |
|
|
|
<div key={index}> |
|
|
|
<div key={index}> |
|
|
|
{ hideWarnings === false ? <span className="text-dark h6">{element[0]}</span> : null} |
|
|
|
{ hideWarnings === false ? <span className="text-dark h6">{warning[0]}</span> : null} |
|
|
|
{ hideWarnings === false ? element[1]["map"]( |
|
|
|
{ hideWarnings === false ? warning[1]["map"]( |
|
|
|
(x,i) => // eslint-disable-line dot-notation
|
|
|
|
(x,i) => // eslint-disable-line dot-notation
|
|
|
|
x.hasWarning |
|
|
|
x.hasWarning |
|
|
|
? ( // eslint-disable-next-line dot-notation
|
|
|
|
? ( // eslint-disable-next-line dot-notation
|
|
|
@ -36,26 +36,43 @@ export function BasicTabBody({ state, hideWarnings, showLibsWarning, warningStat |
|
|
|
editor={analysisModule} |
|
|
|
editor={analysisModule} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : null |
|
|
|
) : null) : null} |
|
|
|
) : element[1]["map"]( |
|
|
|
{ |
|
|
|
(x,i) => // eslint-disable-line dot-notation
|
|
|
|
hideWarnings === false ? warning[1]["map"]((x,i) =>( |
|
|
|
showLibsWarning && x.isLibrary |
|
|
|
showLibsWarning === false ? ( |
|
|
|
? ( // eslint-disable-next-line dot-notation
|
|
|
|
x.isLibrary ? ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
data-id={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
data-id={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
id={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
id={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
key={i} |
|
|
|
key={i} |
|
|
|
> |
|
|
|
> |
|
|
|
<ErrorRenderer |
|
|
|
<ErrorRenderer |
|
|
|
name={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
name={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
message={x.msg} |
|
|
|
message={x.msg} |
|
|
|
opt={x.options} |
|
|
|
opt={x.options} |
|
|
|
warningErrors={x.warningErrors} |
|
|
|
warningErrors={x.warningErrors} |
|
|
|
editor={analysisModule} |
|
|
|
editor={analysisModule} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : null)} |
|
|
|
) : null): null)) : null |
|
|
|
{} |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
hideWarnings === false ? warning[1]["map"]((x,i) =>( |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
data-id={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
|
|
|
|
id={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
|
|
|
|
key={i} |
|
|
|
|
|
|
|
>3 |
|
|
|
|
|
|
|
<ErrorRenderer |
|
|
|
|
|
|
|
name={`staticAnalysisModule${x.warningModuleName}${i}`} |
|
|
|
|
|
|
|
message={x.msg} |
|
|
|
|
|
|
|
opt={x.options} |
|
|
|
|
|
|
|
warningErrors={x.warningErrors} |
|
|
|
|
|
|
|
editor={analysisModule} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
)) : null |
|
|
|
|
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|