diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-09-30 17:26:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-09-30 17:26:29 +0000 |
commit | 429060ecedd124b1f270004fe1d6dc1b31e4dad4 (patch) | |
tree | a396a88ecb9af1be536c8a7c060c13dac7cfdad2 /perl_checker.src | |
parent | 20b23f0c929d64825f8cba0680e19fdf9c5981e4 (diff) | |
download | perl-MDK-Common-429060ecedd124b1f270004fe1d6dc1b31e4dad4.tar perl-MDK-Common-429060ecedd124b1f270004fe1d6dc1b31e4dad4.tar.gz perl-MDK-Common-429060ecedd124b1f270004fe1d6dc1b31e4dad4.tar.bz2 perl-MDK-Common-429060ecedd124b1f270004fe1d6dc1b31e4dad4.tar.xz perl-MDK-Common-429060ecedd124b1f270004fe1d6dc1b31e4dad4.zip |
new warning: N_("xxx") . "yyy" is dumb since the string "xxx" will never get translated
Diffstat (limited to 'perl_checker.src')
-rw-r--r-- | perl_checker.src/parser_helper.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index 69627e6..29bb971 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -596,6 +596,9 @@ let cook_call_op op para pos = warn_rule "don't do this" else if List.exists (function Num _ -> true | _ -> false) para then warn_rule (sprintf "you should use a number operator, not the string operator \"%s\" (or replace the number with a string)" op) + | "." -> + if List.exists (function Call(Deref(I_func, Ident(None, "N_", _)), _) -> true | _ -> false) para then + warn_rule "N_(\"xxx\") . \"yyy\" is dumb since the string \"xxx\" will never get translated" | "||=" | "&&=" -> (match List.hd para with | List [ List _ ] -> warn_rule "remove the parentheses" |