Hi.. First thanks for ReSharper, it's a great product I use every day!
At my workplace we are supposed to use the "Cleanup code" feature before every commit.
However this is quite easy to forget.
What I want to accomplish is to create a svn pre-commit hook that can check whether a code cleanup has been done or not,
and then ask the user if they really want to commit the code without first cleaning up.
To do this I need to somehow mark the file as being cleaned up. My approach is that I want to insert a hash inside the file of the file itself,
between a pair of special markers. This way the hash will be wrong when file is altered after cleanup..
// This is a source code file. ##CLEANUPHASH:abcdef##
This has to be done right after the cleanup is complete, and I have to do it on the "raw data" of the file.
So preferably I don't want to traverse the node tree to do this, the way I've seen examples ICodeCleanupModule do.
Is this even possible, and how?