Command Line Tools - cleanupcode - How to Reformat Specific Files
Hello Community! I am trying to figure out how to run the cleanupcode command line tool but only for a certain set of files. I have local resharper settings for the solution that the files are in.
I have a script that gets the locally changed files within Git and want to run the cleanup prior to the commit taking place. Each time I try this, the executable wants to reformat the entire solution.
The CLT has a switch, --include, that seems to indicate I can tell it which files to work on though it seems to ignore then. Perhaps I am using incorrect switch combinations? I used relative paths as suggested and made sure they were separated correctly.
I was unable to find any other documentation for the tools so I landed here :) Any help would be greatly desired.
Please sign in to leave a comment.
Hello Joe!
Thank you for contacting us.
--include and --exclude options should provide the expected behavior. Could you please specify the command you are using and also share sample solution demonstrating the issue?
Thank you.
Did this ever get resolved? I am also interested in using the include option in the future and would like to know if it works as the original poster suggests?
Hello Sean,
Please try using an absolute path with --include key, here's a corresponding issue - https://youtrack.jetbrains.com/issue/RSRP-481458.
Feel free to comment or vote for it.
Thank you.