Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | allow "*foo = sub {}" with no prototype | Pascal Rigaux | 2003-04-30 | 6 | -19/+22 | |
| | ||||||
* | \ *is* necessary in "$foo\{" | Pascal Rigaux | 2003-04-30 | 1 | -1/+1 | |
| | ||||||
* | ensure return values are used | Pascal Rigaux | 2003-04-29 | 5 | -61/+138 | |
| | ||||||
* | allow "sub pkg::foo() { ...}" | Pascal Rigaux | 2003-04-28 | 2 | -5/+20 | |
| | ||||||
* | replace warning "unused variable @_" with "if the function doesn't take any | Pascal Rigaux | 2003-04-25 | 1 | -2/+8 | |
| | | | | | parameters, please use the empty prototype.\nexample \"sub foo() { ... }\"" | |||||
* | - handle empty prototypes | Pascal Rigaux | 2003-04-24 | 9 | -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 calls | Pascal Rigaux | 2003-04-22 | 1 | -12/+35 | |
| | ||||||
* | fix argument checking for Class->method(...) calls | Pascal Rigaux | 2003-04-22 | 1 | -1/+1 | |
| | ||||||
* | basic "number of arguments" checking | Pascal Rigaux | 2003-04-17 | 7 | -72/+128 | |
| | ||||||
* | - recognize function parameters and disallow using @_ in the rest of the ↵ | Pascal Rigaux | 2003-04-16 | 1 | -1/+20 | |
| | | | | | | | function body - suggest to use &f instead of f(@_) | |||||
* | forbid "unless (...) { ... } else { ... }" and "unless (...) { ... } elsif ↵ | Pascal Rigaux | 2003-04-15 | 3 | -1/+7 | |
| | | | | (...) { ... } | |||||
* | add basic "type" checking (using a very liberal lattice) | Pascal Rigaux | 2003-04-15 | 5 | -343/+529 | |
| | ||||||
* | use new types to have stricter type checking (prior to adding maybe_context) | Pascal Rigaux | 2003-04-13 | 5 | -612/+662 | |
| | ||||||
* | allow 333 * `xxx` with no warning | Pascal Rigaux | 2003-04-11 | 1 | -1/+1 | |
| | ||||||
* | warn non-useful or non-readable escaped sequences in strings and regexps | Pascal Rigaux | 2003-04-11 | 1 | -15/+60 | |
| | | | | | (eg: /^\// should be m|^/|, /xxx\=xxx/ should be /xxx=xxx/ ...) | |||||
* | warn things like: ($foo) ||= ... | Pascal Rigaux | 2003-04-11 | 1 | -0/+4 | |
| | ||||||
* | enhance non_scalar case for some operators using is_not_a_scalar | Pascal Rigaux | 2003-04-10 | 1 | -10/+20 | |
| | ||||||
* | handle "keys %pkg::" (twas broken because keys() is now a ONE_SCALAR_PARA) | Pascal Rigaux | 2003-04-10 | 1 | -0/+1 | |
| | ||||||
* | keys() is a ONE_SCALAR_PARA | Pascal Rigaux | 2003-04-10 | 1 | -0/+1 | |
| | ||||||
* | correctly (in Perl way) handle priority for some special unary functions ↵ | Pascal Rigaux | 2003-04-10 | 3 | -17/+15 | |
| | | | | (length, exists, ref) | |||||
* | warn xxx == "ia64", xxx eq 2 | Pascal Rigaux | 2003-04-10 | 1 | -0/+18 | |
| | ||||||
* | 0.2 is a NUM, not a REVISION (otherwise it gets into a Raw_string) | Pascal Rigaux | 2003-04-10 | 1 | -1/+1 | |
| | ||||||
* | better error message ("please remove the space before the function call" | Pascal Rigaux | 2003-04-10 | 1 | -1/+3 | |
| | | | | | instead of "can't handle this nicely") | |||||
* | warn when using a regexp terminated with .* or .*$ (which is useless) | Pascal Rigaux | 2003-04-10 | 1 | -1/+9 | |
| | ||||||
* | allow to selectively import from @EXPORT instead of only accepting @EXPORT_OK | Pascal Rigaux | 2003-04-10 | 1 | -1/+1 | |
| | ||||||
* | handle "local $_ = ..." at toplevel | Pascal Rigaux | 2003-04-02 | 1 | -0/+1 | |
| | ||||||
* | simplify handling of variables declared in "if (...) ..." to meet perl's way. | Pascal Rigaux | 2003-04-02 | 1 | -4/+2 | |
| | | | | | | | | | | | | | | eg: if (my $i = foo()) { } else { $i; # accessing $i here is allowed } if (my $i = foo()) { } elsif ($i = bar()) { # don't use "my" for $i since it's already in scope } | |||||
* | enhance warning "... =~ /^foo$/" is better written "... eq 'foo'" | Pascal Rigaux | 2003-04-02 | 1 | -1/+1 | |
| | ||||||
* | fix error message for grep not used with a block | Pascal Rigaux | 2003-04-01 | 1 | -1/+1 | |
| | ||||||
* | - $foo =~ /^dhcp$/ is better written $foo eq 'dhcp' | Pascal Rigaux | 2003-04-01 | 3 | -4/+14 | |
| | | | | | - warn "grep(&f, ...)", use "grep { f } ..." instead | |||||
* | - warn !($var =~ /.../) | Pascal Rigaux | 2003-04-01 | 4 | -5/+19 | |
| | | | | | | - warn $a & 0xff == $b better written $a & (0xff == $b) - "not" should not be used, use "!" instead | |||||
* | warn "map(&f, ...)", use "map { f } ..." instead | Pascal Rigaux | 2003-04-01 | 1 | -0/+6 | |
| | ||||||
* | - warn <always true> || ... (eg: 1 || foo()) | Pascal Rigaux | 2003-04-01 | 3 | -7/+40 | |
| | | | | | | | | | - 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 Rigaux | 2003-04-01 | 2 | -6/+4 | |
| | | | | | | | put the -PO comment in any case (more precisely, it concatenates all the -PO comments) | |||||
* | - make "please don't use prototype pre-declaration" a warning | Pascal Rigaux | 2003-04-01 | 1 | -2/+11 | |
| | | | | | - make a warning for unary plus instead of a "syntax error" | |||||
* | set the POT-Creation-Date to the current date | Pascal Rigaux | 2003-02-24 | 1 | -3/+3 | |
| | ||||||
* | allow "use foo()" | Pascal Rigaux | 2003-02-24 | 1 | -0/+1 | |
| | ||||||
* | "$!" is NOT better written without the double quotes | Pascal Rigaux | 2003-02-18 | 1 | -1/+1 | |
| | ||||||
* | don't suggest to replace "@foo ? @foo : @bar" with "@foo || @bar", this is ↵ | Pascal Rigaux | 2003-02-14 | 1 | -8/+18 | |
| | | | | wrong! | |||||
* | add getgrent | Pascal Rigaux | 2003-02-14 | 1 | -1/+1 | |
| | ||||||
* | check use of variables with name _XXX (reserved for unused variables) | Pascal Rigaux | 2003-02-13 | 1 | -1/+4 | |
| | ||||||
* | handle ${foo} (including "${foo}bar") | Pascal Rigaux | 2003-02-12 | 4 | -13/+33 | |
| | ||||||
* | warn when "ref" priority is badly handled by perl_checker | Pascal Rigaux | 2003-02-12 | 2 | -2/+6 | |
| | ||||||
* | handle "\x{hex}" | Pascal Rigaux | 2003-02-06 | 1 | -6/+14 | |
| | ||||||
* | warn when using $l[$#l], advice $l[-1] instead | Pascal Rigaux | 2003-02-05 | 3 | -11/+21 | |
| | ||||||
* | allow -x with no parameter, but advise not to use it | Pascal Rigaux | 2003-02-05 | 3 | -1/+9 | |
| | ||||||
* | add "$." | Pascal Rigaux | 2003-01-29 | 1 | -1/+1 | |
| | ||||||
* | - perl_checker: | Pascal Rigaux | 2003-01-16 | 3 | -6/+20 | |
| | | | | | | - check occurences of "$foo ? $foo : $bar" - disallow "fq::f args" when args is not parenthesized | |||||
* | perl_checker: when generating pot, add an header and fake line numbers to ↵ | Pascal Rigaux | 2003-01-15 | 1 | -2/+21 | |
| | | | | please msgmerge | |||||
* | find, every and any are grep-like (ie. use $_) | Pascal Rigaux | 2003-01-06 | 1 | -1/+2 | |
| |