summaryrefslogtreecommitdiffstats
path: root/perl_checker.src
Commit message (Collapse)AuthorAgeFilesLines
...
* new warnings:Pascal Rigaux2003-10-011-6/+15
| | | | | | - you can replace [^\s] with \S - you can replace [^\w] with \W
* disallow s/foo/die "bar \"zzz\"/ePascal Rigaux2003-09-303-1/+17
|
* warning: no need to escape " in /xxx \" xxx/Pascal Rigaux2003-09-301-1/+1
|
* display relative file names when nicerPascal Rigaux2003-09-306-15/+42
|
* handle same files with different names (cuz of symbolic links)Pascal Rigaux2003-09-301-3/+7
|
* better handling of bad cache filePascal Rigaux2003-09-301-1/+1
|
* use absolute directories in Tree.use_libPascal Rigaux2003-09-302-3/+5
|
* ensure cache entries of removed file are removedPascal Rigaux2003-09-301-1/+4
|
* new warning: N_("xxx") . "yyy" is dumb since the string "xxx" will never get ↵Pascal Rigaux2003-09-301-0/+3
| | | | translated
* detect s@...@...@ instead of getting crazyPascal Rigaux2003-09-301-5/+10
|
* nice error message for qx{...} (instead of a syntax error)Pascal Rigaux2003-09-301-1/+4
|
* re-organize to handle cleanly multi packages per filePascal Rigaux2003-09-297-130/+202
| | | | | => fixes cache coherency
* you can't replace \[ with [ in "$foo[0]" otherwise the meaning is really ↵Pascal Rigaux2003-08-191-1/+1
| | | | different!
* you can't replace \r with rPascal Rigaux2003-08-191-1/+1
|
* remove debug infoPascal Rigaux2003-08-111-1/+1
|
* - allow $_o_XXX parameter name which is both unused and optional (same for ↵Pascal Rigaux2003-08-115-20/+55
| | | | | | | | | | | | $_b_XXX) - shift is a ONE_SCALAR_PARA so that $box->pack_start(shift @l, 0, 0, 4) is parsed correctly - in arrange_global_vars_declared(), don't keep anything in global_vars_declared, better create shadow packages to contain them - much better merging of multiple files defining functions in the same package. This fixes the bad behaviour when using the cache (esp. do_pkgs, but it was even worse with things in ugtk2.pm)
* in Pkg->method, warn when Pkg is an unknown packagePascal Rigaux2003-08-041-1/+1
|
* - reverse the order of packages found in a file (so that perl_checker doesn'tPascal Rigaux2003-08-041-1/+2
| | | | | | think ugtk2.pm's basedir is ".." (since it defines "package Gtk2::Entry")) - in verbose mode, tell when using a .so
* - disallow return(...), prefering return ...Pascal Rigaux2003-05-274-18/+47
| | | | | - P_call_no_paren has a lower priority than P_comma
* more robust from_qw_rawPascal Rigaux2003-05-271-0/+1
|
* - enhance restricted_subscripted to correctly handle -e foo::bar()->{boo}Pascal Rigaux2003-05-271-1/+4
| | | | | - simplify a grammar rule
* simplifyPascal Rigaux2003-05-261-4/+2
|
* handle use foo() and use foo ("x", "y")Pascal Rigaux2003-05-262-2/+10
|
* correctly handle { Protocol => { val => 'Standard' } }Pascal Rigaux2003-05-261-0/+1
| | | | | (was broken due to the "arch => 1" hack)
* better warning for: print $a . 'foo'Pascal Rigaux2003-05-261-1/+5
|
* add a special case to handle "arch => 1" without going through word_alone()Pascal Rigaux2003-05-263-8/+8
|
* - warn things like: if ($a = 1) { ... }Pascal Rigaux2003-05-261-0/+6
| | | | | - undef is always false
* check for "0 or ..."Pascal Rigaux2003-05-261-0/+5
|
* explicitly disallow <<=, >>= and **= (instead of having a syntax error)Pascal Rigaux2003-05-261-0/+5
|
* check prototype coherence: disallow ($a, @b, $c) or ($a, $o_b, $c)Pascal Rigaux2003-05-261-2/+9
|
* warn spurious space in ( 1, 2) which should be (1, 2)Pascal Rigaux2003-05-231-1/+1
|
* warn $o->method() which should be $o->methodPascal Rigaux2003-05-231-1/+1
|
* suggest using the functional map instead of the imperative foreach whenPascal Rigaux2003-05-231-0/+12
| | | | | possible
* fix detection of grep in scalar contextPascal Rigaux2003-05-231-3/+4
|
* add warning: you can replace "map { if_(..., $_) }" with "grep { ... }"Pascal Rigaux2003-05-231-0/+4
|
* - suggest any instead of grep in scalar contextPascal Rigaux2003-05-233-4/+19
| | | | | - suggest foreach instead of map in empty context
* fix "/^\d+\.\*$/" giving warning "you can remove \".*$\" at the end of your ↵Pascal Rigaux2003-05-231-1/+1
| | | | regexp"
* correctly warn about the missing space in "my ($a,$b, $c);"Pascal Rigaux2003-05-163-9/+12
|
* fix pot generation (have \" instead of \\\")Pascal Rigaux2003-05-161-1/+2
|
* use print_endline_flush instead of prerr_endline to comply with ↵Pascal Rigaux2003-04-301-1/+1
| | | | --restrict-to-files
* map and grep do not return a scalarPascal Rigaux2003-04-301-0/+2
|
* ->can is allowed on any objectPascal Rigaux2003-04-301-1/+1
|
* allow "*foo = sub {}" with no prototypePascal Rigaux2003-04-306-19/+22
|
* \ *is* necessary in "$foo\{"Pascal Rigaux2003-04-301-1/+1
|
* ensure return values are usedPascal Rigaux2003-04-295-61/+138
|
* allow "sub pkg::foo() { ...}"Pascal Rigaux2003-04-282-5/+20
|
* replace warning "unused variable @_" with "if the function doesn't take anyPascal Rigaux2003-04-251-2/+8
| | | | | parameters, please use the empty prototype.\nexample \"sub foo() { ... }\""
* - handle empty prototypesPascal Rigaux2003-04-249-58/+101
| | | | | | | - check number of parameters in method calls (ignoring empty overloaded methods) - allow non-empty prototypes for methods not using @_
* check number of args in method callsPascal Rigaux2003-04-221-12/+35
|
* fix argument checking for Class->method(...) callsPascal Rigaux2003-04-221-1/+1
|