I'm putting together a custom code analyzer to run against Visual Studio 2015 solutions and I would like to add a property to control it by date.
When in place then the rule (or rule set) would only be applied to code modified on or after the set date.
Is this possible and where are the best sources of information?
What I have tried:
Extensive online research that has yielded nothing.
I also added a new variable to the section of the analyzer where the DiagnosticID is set but I was not able to access it anywhere else.
New Idea Forming! What if I try passing it is as an argument?
Update
I tried that idea using a constructor - no joy. Now I will try reading from a config
And for next week...
CodeCracker checks for something like <auto-generated> in a header comment to skip scan on autogenerated files.
seen here
and on
stackoverflow
I'm thinking of adding a comment <qa-checked> when the analyser runs. Then add a precompile event to the compiler to remove this from modified code.
The analyzer will be instructed to skip any code marked <qa-checked>