-
Notifications
You must be signed in to change notification settings - Fork 1
InspectCodeBaselineSync
Actionbot edited this page Jul 23, 2026
·
5 revisions
π§ Sync inspect code baseline | Removes baseline filters when matching Inspect Code issues are no longer present in the corresponding files.
dotnet biak inspectcode-baseline sync [--path <path>]
Let's imagine you have the following configuration:
# Field can be made readonly (private accessibility) [FieldCanBeMadeReadOnly.Local] | https://www.jetbrains.com/help/resharper/FieldCanBeMadeReadOnly.Local.html
[{ServiceA.cs,ServiceC.cs}]
resharper_field_can_be_made_read_only_local_highlighting = suggestion # ^biak^ inspectcode-baseline
# Use 'String.IsNullOrEmpty' [ReplaceWithStringIsNullOrEmpty] | https://www.jetbrains.com/help/resharper/ReplaceWithStringIsNullOrEmpty.html
[{ServiceD.cs}]
resharper_replace_with_string_is_null_or_empty_highlighting = suggestion # ^biak^ inspectcode-baselineThen you fix the issue in ServiceD.cs.
After running the command, the following output is displayed:
inspectcode-baseline sync started...
ServiceD.cs (resharper_replace_with_string_is_null_or_empty_highlighting)
Sync complete. Removed 1 file(s); resolved 1 filter(s). 1 filter(s) still alive.
And your baseline file is synchronized.
- Require root
.editorconfigin the current directory (used for runtime analysis). - If
.biakexists, require synchronized biak state (enableordisable). - Resolve baseline file path with precedence:
--path <path>-
inspectCodeBaseline.pathfrom.biak/config.json - recursive auto-discovery in
.biak/**/.editorconfig*files containing marker - root
.editorconfigcontaining marker
- Validate path safety (must stay inside project and file name must start with
.editorconfig). - Verify that baseline marker exists:
# ^biak^ inspectcode-baseline. - Temporarily prepare runtime
.editorconfigfor analysis:- baseline entries are converted to
error(marker removed at runtime copy) - original root
.editorconfigis restored after analysis
- baseline entries are converted to
- Run Inspect Code and parse active issues from SARIF.
- Remove resolved filters / stale file entries from baseline.
- Normalize remaining baseline severity to
inspectCodeBaseline.snapshotSeverity(defaultsuggestion). - If the synced baseline file is located in
.biak/..., re-synchronize root.editorconfigaccording to current biak status:-
Enabled-> Run enable command -
Disabled-> Run disable command
-
Hey! If you don't have write access to the wiki, you can change that in the docs/wiki folder.