Skip to content

Commit

Permalink
Don't analyze Catch2 file
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Sep 26, 2024
1 parent 72f3ee5 commit f6f171a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ namespace i18n_check

if (std::filesystem::is_regular_file(inputFolder) && std::filesystem::exists(inputFolder))
{
if (!inputFolder.filename().wstring().starts_with(L"pseudo_"))
if (!inputFolder.filename().wstring().starts_with(L"pseudo_") &&
inputFolder.filename().wstring() != L"catch.hpp")
{
filesToAnalyze.push_back(inputFolder.wstring());
}
Expand Down Expand Up @@ -126,6 +127,8 @@ namespace i18n_check
// ignore CMake build files
p.path().filename().compare(L"CMakeCXXCompilerId.cpp") != 0 &&
p.path().filename().compare(L"CMakeCCompilerId.c") != 0 &&
// main catch2 file
p.path().filename().compare(L"catch.hpp") != 0 &&
// ignore pseudo-translated message catalogs what we previously generated
!p.path().filename().wstring().starts_with(L"pseudo_"))
{
Expand Down

0 comments on commit f6f171a

Please sign in to comment.