i am working on our CI Piplines for a new project and wanted to do some things right. Currently I am struggeling with a step in the pipeline which validates that all files are correctly according to our code cleanup rules. I am using the 'dotnet tool run jb -- cleanupcode' command for this in the pipeline and what I am seeing is that it produces different results compared to executing the full code cleanup in Rider. This happens even if i export our rules as DotSettings and after a reset of all layers. What i am trying to achieve is that the pipeline fails if 'dotnet tool run jb -- cleanupcode' changes files. Then i expect the developer who made the commit to do the code cleanup locally with Rider. But as the two ways produce differnt results the pipeline always fails as the code cleanup in Rider does not do the changes the 'dotnet tool run jb -- cleanupcode' will do.
What am I doing wrong here?