Sprint 6 Step 192: security diagnostics integration
This commit is contained in:
@@ -374,6 +374,7 @@ static void renderEditorPanel(EditorState& state) {
|
||||
result.violations,
|
||||
EditorState::toFileUri(state.active()->path));
|
||||
state.appendUnusedImportDiagnostics(state.whetstoneDiagnostics);
|
||||
state.appendVulnerabilityDiagnostics(state.whetstoneDiagnostics);
|
||||
} else {
|
||||
state.whetstoneDiagnostics.clear();
|
||||
}
|
||||
|
||||
@@ -349,6 +349,11 @@ static void renderSettingsPanel(EditorState& state) {
|
||||
state.settings.setReduceMotion(reduceMotionSetting);
|
||||
settingsChanged = true;
|
||||
}
|
||||
bool blockVulnImports = state.settings.getBlockVulnerableImports();
|
||||
if (ImGui::Checkbox("Block Vulnerable Imports", &blockVulnImports)) {
|
||||
state.settings.setBlockVulnerableImports(blockVulnImports);
|
||||
settingsChanged = true;
|
||||
}
|
||||
|
||||
LayoutPreset preset = state.ui.layoutPreset;
|
||||
int presetIndex = 0;
|
||||
|
||||
@@ -89,6 +89,8 @@ static void renderDependenciesPanel(EditorState& state) {
|
||||
state.library.vulnDb);
|
||||
ImGui::PopFont();
|
||||
ImGui::End();
|
||||
state.library.primitives.setVulnerableLibraries(
|
||||
state.library.dependencyPanel.vulnerableLibraries);
|
||||
if (state.library.dependencyPanel.needsIndex) {
|
||||
state.requestLibraryIndex();
|
||||
state.library.dependencyPanel.needsIndex = false;
|
||||
|
||||
Reference in New Issue
Block a user