Closed rnwst closed 2 weeks ago
Double check but I think there is now an alternative config option for that use case.
See https://github.com/florianschanda/miss_hit/commit/5baaa4df3fda85e3813e303cc0ed797c5c28aeb0
Excellent, thanks! For future reference, use ignore_dir
instead of exclude_dir
.
Thanks for closing this, I forgot to write here and do it myself ;)
MISS_HIT Component affected
MISS_HIT version: 0.9.43
Your operating system and Python version
python3 --version
:Python 3.12.4
Describe the bug If a directory is excluded in the config file via the
exclude_dir
directive,mh_style
andmh_metric
error out if that directory does not exist. This is a problem for our CI setup. In ourmiss_hit.cfg
, we use theexclude_dir
directive to ignore the contents of theworks
folder, which contains auto-generated code. This folder is also listed in our.gitignore
, and is therefore not part of our project. Runningmh_style
on our individual development machines works fine, and the contents of theworks
folder are ignored for analysis. However, runningmh_style
on our CI machine causes it to error out every time, since theworks
folder is not present on a fresh checkout of the project repository.If miss_hit cannot find a directory listed in
miss_hit.cfg
, it should simply continue and not exit with a non-zero exit code. If it must, it can print a warning, but I don't think that's necessary - after allgit
doesn't print a warning if it can't find a directory/file listed in.gitignore
.