Code coverage done right.®

Welcome to Codecov Documentation. You'll find comprehensive guides and documentation to help you start working with Codecov as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started
Ask A Question


How to ignore whitespace only changes in diff report?

Posted by Arne Burmeister 6 months ago

Working on a legacy codebase I struggle with changes where I changed only very small part of a file but fixed some code formatting issues which are only inserting/removing whitespace characters. As the file is not perfectly tested the diff coverage report configured as a check in the CI build fails due to low coverage.

I can have a look on the diff ignoring whitespace on github by adding "?w=1" to the file changes URL but I cannot find an option for codecov config to tell the service to ignore whitespace changes.

Is there any option currently available or is there a feature planned to do so?

Loading comments...