Added check for 'Rank' on Auxiliary modules

bug/bundler_fix
Christian Mehlmauer 2014-03-28 22:43:53 +01:00
parent 94494e38e7
commit 91034722e9
No known key found for this signature in database
GPG Key ID: BCFF4FA966BC32C7
1 changed files with 5 additions and 0 deletions

View File

@ -470,6 +470,11 @@ class Msftidy
if ln =~ /\[['"]Set-Cookie['"]\]/i
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)
end
# Auxiliary modules do not have a rank attribute
if ln =~ /^\s*Rank\s*=\s*/ and @source =~ /<\sMsf::Auxiliary/
warn("Auxiliary modules have no 'Rank': #{ln}", idx)
end
}
end