Q: How can I exclude a file from code churn?

A: You can change it’s encoding in version control to Binary.

Background:

The code churn value used by TFS report, like the Quality Indicators report, might not make any sense to you if files this value includes some specific files, like auto-generated files, that were not created/edited by humans.

Disadvantages:

  • Comparing binary files in the command line or UI will just result in “Binary files differ” rather than a diff viewer showing the changes.
  • By default, multiple checkouts of binary files are not allowed.

Step-by-Step instructions:

 Image-0000

Image-0001

Image-0002 

(Thanks to Brian Harry for this tip.)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>