summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser_helper.mli
Commit message (Collapse)AuthorAgeFilesLines
* check lvalue validityPascal Rigaux2004-08-121-0/+11
|
* finishing context checks cleanupPascal Rigaux2004-05-091-2/+2
|
* better contextsPascal Rigaux2004-05-081-19/+15
|
* get_pos_from_expr() (previously named get_pos_from_tree()) is useful, even ↵Pascal Rigaux2004-04-281-0/+2
| | | | in parser_helper
* perl_checker: entries in generated pot file are sorted by filesPascal Rigaux2004-01-091-2/+1
|
* use hash_ref() to check priority of the argumentsPascal Rigaux2004-01-051-0/+3
|
* disallowPascal Rigaux2003-12-161-1/+2
| | | | | | | - $a = (1, 2) - my $a = (1, 2) - my ($a, $b) = (1, 2, 3)
* check the number of parameters given to N()Pascal Rigaux2003-12-161-1/+1
|
* - add the tuple(...) contextPascal Rigaux2003-12-161-8/+11
| | | | | | - check that the value xxx in "... or xxx" is dropped - handle "... or ..., ..."
* allow to specify the return context of functions instead of always saying ↵Pascal Rigaux2003-12-151-4/+5
| | | | M_unknown
* - disallow return(...), prefering return ...Pascal Rigaux2003-05-271-1/+18
| | | | | - P_call_no_paren has a lower priority than P_comma
* add a special case to handle "arch => 1" without going through word_alone()Pascal Rigaux2003-05-261-2/+1
|
* - suggest any instead of grep in scalar contextPascal Rigaux2003-05-231-3/+12
| | | | | - suggest foreach instead of map in empty context
* correctly warn about the missing space in "my ($a,$b, $c);"Pascal Rigaux2003-05-161-1/+3
|
* allow "*foo = sub {}" with no prototypePascal Rigaux2003-04-301-1/+1
|
* ensure return values are usedPascal Rigaux2003-04-291-2/+19
|
* - handle empty prototypesPascal Rigaux2003-04-241-1/+5
| | | | | | | - check number of parameters in method calls (ignoring empty overloaded methods) - allow non-empty prototypes for methods not using @_
* forbid "unless (...) { ... } else { ... }" and "unless (...) { ... } elsif ↵Pascal Rigaux2003-04-151-0/+2
| | | | (...) { ... }
* add basic "type" checking (using a very liberal lattice)Pascal Rigaux2003-04-151-3/+34
|
* use new types to have stricter type checking (prior to adding maybe_context)Pascal Rigaux2003-04-131-71/+92
|
* - $foo =~ /^dhcp$/ is better written $foo eq 'dhcp'Pascal Rigaux2003-04-011-0/+1
| | | | | - warn "grep(&f, ...)", use "grep { f } ..." instead
* - warn !($var =~ /.../)Pascal Rigaux2003-04-011-0/+1
| | | | | | - warn $a & 0xff == $b better written $a & (0xff == $b) - "not" should not be used, use "!" instead
* - warn <always true> || ... (eg: 1 || foo())Pascal Rigaux2003-04-011-2/+9
| | | | | | | | | - warn <always false> || ... - warn <always true> && ... - warn <always false> && ... - suggest @$foo instead of @{$foo} - suggest $foo->[0] instead of ${$foo}[0]
* when a #-PO comment on a same translated string is present twice, it should ↵Pascal Rigaux2003-04-011-2/+0
| | | | | | | put the -PO comment in any case (more precisely, it concatenates all the -PO comments)
* handle ${foo} (including "${foo}bar")Pascal Rigaux2003-02-121-0/+2
|
* warn when "ref" priority is badly handled by perl_checkerPascal Rigaux2003-02-121-1/+2
|
* warn when using $l[$#l], advice $l[-1] insteadPascal Rigaux2003-02-051-0/+2
|
* - perl_checker:Pascal Rigaux2003-01-161-5/+9
| | | | | | - check occurences of "$foo ? $foo : $bar" - disallow "fq::f args" when args is not parenthesized
* perl_checker: new --generate-pot featurePascal Rigaux2002-12-101-0/+5
|
* perl_checker now checks usage of $_Pascal Rigaux2002-12-051-2/+3
|
* more restricted detection of non-use of if_()-like exprsPascal Rigaux2002-12-041-4/+2
|
* - warn use of "cond ? list : ()" (use if_(cond, list) instead)Pascal Rigaux2002-12-041-2/+8
| | | | | - adapt MDK::Common::* to this (using @{[]} instead of () to avoid the warning)
* *** empty log message ***Pascal Rigaux2002-11-281-10/+46
|
* *** empty log message ***Pascal Rigaux2002-11-251-2/+12
|
* *** empty log message ***Pascal Rigaux2002-11-241-10/+19
|
* *** empty log message ***Pascal Rigaux2002-11-201-5/+22
|
* *** empty log message ***Pascal Rigaux2002-11-181-0/+3
|
* *** empty log message ***Pascal Rigaux2002-11-141-12/+20
|
* *** empty log message ***Pascal Rigaux2002-11-141-13/+31
|
* *** empty log message ***Pascal Rigaux2002-11-131-2/+18
|
* *** empty log message ***Pascal Rigaux2002-11-121-0/+42