Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,30 @@
# CodeQL configuration for SysML2Workbench

name: "SysML2Workbench CodeQL Config"
# Globally ignore build output and generated files
paths-ignore:
- '**/obj/**'
- '**/bin/**'
# Query filters to disable specific queries for certain paths
query-filters:
# Suppress warnings in xUnit-generated entry-point files under obj/ - these are
# generated code that cannot be hand-modified and do not reflect authored design.
- exclude:
id: cs/missed-ternary-operator
paths: ['**/obj/**/*.cs']
# Suppress warnings for intentionally-broad catch-of-all-exceptions boundaries.
# Each of these is a UI event-handler / drag-drop / best-effort teardown boundary
# that must report failure (e.g. via a status message) rather than let any
# exception type escape and crash the application - narrowing the catch type
# would be behaviorally wrong. Each site carries an explanatory comment; see
# .github/standards/coding-principles.md for the broad-catch review policy.
- exclude:
id: cs/catch-of-all-exceptions
paths:
- src/DemaConsulting.SysML2Workbench/AppShellSubsystem/PredefinedViewsToolViewModel.cs
- src/DemaConsulting.SysML2Workbench/AppShellSubsystem/MainWindowView.axaml.cs
- src/DemaConsulting.SysML2Workbench/AppShellSubsystem/SourceTextDocumentView.axaml.cs
- src/DemaConsulting.SysML2Workbench/AppShellSubsystem/ViewBuilderDialogViewModel.cs
- src/DemaConsulting.SysML2Workbench/AppShellSubsystem/WorkspacePanelToolView.axaml.cs
- src/DemaConsulting.SysML2Workbench/AppShellSubsystem/WorkspacePanelToolViewModel.cs
- test/DemaConsulting.SysML2Workbench.IntegrationTests/AppiumTestBase.cs
2 changes: 1 addition & 1 deletion test/OtsSoftwareTests/DockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void RestoreDockable_ReopensClosedToolInOriginalDock()
};
window.Show();

var originalOwner = Assert.IsAssignableFrom<IToolDock>(predefinedViewsViewModel.Owner);
var originalOwner = Assert.IsType<IToolDock>(predefinedViewsViewModel.Owner, exactMatch: false);
Assert.Contains(predefinedViewsViewModel, originalOwner.VisibleDockables!);

// Act - close the panel through the same public API Dock's own chrome invokes.
Expand Down
Loading