summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-25 12:16:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-25 12:16:28 +0300
commit934ec27a783a7ad02a078160c1010a6d443b3437 (patch)
tree143b6e92333945c28a5eebceb1d244e562da6682 /src/rules
parenta30e6e97b64d714aabeef90bafc413898ede2412 (diff)
downloadmplint-934ec27a783a7ad02a078160c1010a6d443b3437.tar.gz
mplint-934ec27a783a7ad02a078160c1010a6d443b3437.tar.bz2
mplint-934ec27a783a7ad02a078160c1010a6d443b3437.tar.xz
mplint-934ec27a783a7ad02a078160c1010a6d443b3437.zip
Count line numbers from 1.
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/license.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rules/license.cpp b/src/rules/license.cpp
index fe81816..0ec320e 100644
--- a/src/rules/license.cpp
+++ b/src/rules/license.cpp
@@ -46,19 +46,19 @@ endRule(license)
parseLineRule(license)
{
- if (line == 0 && data != "/*")
+ if (line == 1 && data != "/*")
{
print("Should be license header");
terminateRule();
return;
}
- else if (line == 1 && data != " * The ManaPlus Client")
+ else if (line == 2 && data != " * The ManaPlus Client")
{
print("Should be 'The ManaPlus Client' in header");
terminateRule();
return;
}
- else if (line > 1)
+ else if (line > 2)
{
if (checkText)
{