summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-03 17:27:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-03 17:30:25 +0300
commit00a41b3346a0e6aadad025a90b0089a01aa7df3e (patch)
tree7f18baf1f167ae055d6f3722c12abd5400e0f58b /src/rules
parentee79ea6306416dc67eec03216a4075b1c342fd89 (diff)
downloadmplint-00a41b3346a0e6aadad025a90b0089a01aa7df3e.tar.gz
mplint-00a41b3346a0e6aadad025a90b0089a01aa7df3e.tar.bz2
mplint-00a41b3346a0e6aadad025a90b0089a01aa7df3e.tar.xz
mplint-00a41b3346a0e6aadad025a90b0089a01aa7df3e.zip
Add unused po files into ignore.
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/po.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/rules/po.cpp b/src/rules/po.cpp
index 7725177..54f34bc 100644
--- a/src/rules/po.cpp
+++ b/src/rules/po.cpp
@@ -68,10 +68,19 @@ static void processMessage(RuleBase *const rule)
std::string name = rule->getFile();
if (findCutLast(name, "po/ar.po") || findCutLast(name, "po/fa.po"))
return;
+ if (name.find("po/unused/") != std::string::npos)
+ return;
- if (cId == '.' || cId == ',' || cId == '!' || cId == '?' || cId == '-'
- || cId == ':' || cId == ';' || cId == '+' || cId == '|'
- || cId == ' ')
+ if (cId == '.' ||
+ cId == ',' ||
+ cId == '!' ||
+ cId == '?' ||
+ cId == '-' ||
+ cId == ':' ||
+ cId == ';' ||
+ cId == '+' ||
+ cId == '|' ||
+ cId == ' ')
{
if (cId != cStr)
rule->print("Wrong character at end of translation line.");