Is there a way to extend on the default code file extensions without have to include all the default file types #599
-
|
I have been testing this out on one of repositories and noticed the default code file extension did not include a lot of file types for our C# project such as .csproj, .sln, .props, .targets, as well as other file types I feel needs to be included in the metrics. From the looks of it, there is only 3 specific file types for C# but none of the ones I mentioned are included. I prefer not to have to pass all the default code file type and only add the ones I don't see being scanned. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi Dave, Thanks for using PR Metrics. The behaviour you see is by design – we explicitly don't include We understand, however, that this doesn't work for everyone, which is why the
Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi Dave,
Thanks for using PR Metrics.
The behaviour you see is by design – we explicitly don't include
.csproj, etc as we want to focus on code changes rather than configuration changes. This design was settled on after a significant amount of refinement. The rationale is that configuration changes are typically trivial or at least simple to review, whereas the real changes that contribute to review time are within the.csfiles.We understand, however, that this doesn't work for everyone, which is why the
code-file-extensionsparameter is provided. The behaviour of this is that you need to specify all the extensions that are in scope, which I understand doesn't work perfectly for you. Bu…