Skip to content

Add intrafile tainting toggle and editor file/clear actions#59

Merged
dimitris-m merged 2 commits into
mainfrom
scan-options-and-editor-actions
Apr 16, 2026
Merged

Add intrafile tainting toggle and editor file/clear actions#59
dimitris-m merged 2 commits into
mainfrom
scan-options-and-editor-actions

Conversation

@dimitris-m

Copy link
Copy Markdown
Contributor

Summary

  • New Scan options section above the results panel with an Intrafile tainting toggle that controls whether --taint-intrafile is passed to scan and test runs (defaults to ON to preserve existing behaviour). Flipping the toggle invalidates the current results so they cannot mislead.
  • Each editor header (Rule and Code to Test) now has Load file... and Clear buttons. Load opens a native OS file picker via a new open-file-dialog IPC handler, restricted to .yaml/.yml for the rule editor and any file for the code editor. Clear empties the editor (and disables Evaluate when the rule is cleared).

Previously --taint-intrafile was passed unconditionally on every scan and
test run. Add a labelled toggle in a new "Scan options" section above the
results panel that controls whether the flag is emitted, defaulting to ON
to preserve existing behaviour. Flipping the toggle invalidates the
current results to avoid showing output that no longer matches the
selected options.
Add two buttons beside each editor title ("Rule" and "Code to Test"):
Load file... opens a native OS file picker via a new open-file-dialog IPC
handler and replaces the editor contents with the chosen file; Clear
empties the editor. The Rule picker is restricted to .yaml and .yml
files while the Code picker accepts any file. The dialog is attached to
the active BrowserWindow so it appears as a sheet on macOS.
@dimitris-m dimitris-m merged commit c934234 into main Apr 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant