-
Notifications
You must be signed in to change notification settings - Fork 1
InspectCodeBaselineInit
Actionbot edited this page Jul 23, 2026
·
6 revisions
π§ Init inspect code baseline
dotnet biak inspectcode-baseline init
After a few moments, something similar should appear:
inspectcode-baseline init started...
Insert these filters into your .editorconfig file:
# Convert property into auto-property [ConvertToAutoProperty] | https://www.jetbrains.com/help/resharper/ConvertToAutoProperty.html
[{ServiceE.cs}]
resharper_convert_to_auto_property_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-baseline
Warning
Do not remove the # ^biak^ inspectcode-baseline marker, as it is used by the Sync command.
- Run Inspect Code and produce a SARIF report.
- Candidate launch order:
dotnet tool run jb inspectcode->jb inspectcode->InspectCode.exe->inspectcode. - Timeout: 30 minutes.
- Candidate launch order:
- Resolve target automatically from current directory (
*.slnx->*.sln->*.csproj) or from.biak/config.json(inspectCodeBaseline.target). - Parse SARIF issues (
ruleId+ file locations). - Map
ruleIdto.editorconfigkey using built-in metadata. - Apply optional
inspectCodeBaseline.ruleIdOverridesfrom config. - Group issues by mapped key and generate baseline filters.
- Print warning for unmapped rules and suggest local override config.
If a ruleId is not found in the built-in mapping and not provided in ruleIdOverrides, it cannot be converted to a valid .editorconfig key and is skipped.
Hey! If you don't have write access to the wiki, you can change that in the docs/wiki folder.