Similar to this question, I want to exclude some files/folders from analysis, e.g. the googletest framework code. My .deepsource.toml
file is shown below, but I am seeing issues flagged on files like tests/lib/googletest/test/googletest-filepath-test.cc
(which matches the glob tests/lib/**
). Is is possible that test_patterns = [ "tests/**" ]
is overriding this? How can I correct this situation?
.deepsource.toml
version = 1
# https://deepsource.com/blog/glob-file-patterns
# https://docs.deepsource.com/docs/configuration
# https://discuss.deepsource.com/t/how-to-block-a-folder-from-being-check-for-issues/493/2
exclude_patterns = [
"Src/lib/**",
"tests/lib/**"
]
# https://docs.deepsource.com/docs/configuration
test_patterns = [
"tests/**"
]
#[[analyzers]]
#name = "shell"
#[[analyzers]]
#name = "javascript"
#[[analyzers]]
#name = "python"
#
# [analyzers.meta]
# runtime_version = "3.x.x"
[[analyzers]]
name = "cxx"