summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/global_checks.ml
Commit message (Collapse)AuthorAgeFilesLines
* - turn some errors to warningsPascal Rigaux2004-03-311-4/+4
| | | | | - add function "-c"
* replace the information "a variable is accessed" with the more precisePascal Rigaux2004-01-221-22/+28
| | | | | | Access_none | Access_write_only | Access_various so that we can say either "variable unused" or "variable assigned but not read"
* handle "format" perl instructionPascal Rigaux2004-01-221-15/+35
|
* use a float to save the mtime since int overflows.Pascal Rigaux2004-01-131-3/+8
| | | | | this fixes the cache being used partially
* add sqrt, atan2, cos, sinPascal Rigaux2004-01-061-3/+3
|
* check unused file-global my variablesPascal Rigaux2003-12-181-1/+2
|
* - pop behaves just like shiftPascal Rigaux2003-12-161-1/+2
| | | | | - check that the parameter to pop & shift is an array, and not more parameters are given
* - correctly handle "shift" with no parameter at toplevelPascal Rigaux2003-12-151-0/+3
| | | | | - remove (hopefully) unused code rewriting shift -> shift(@_)
* fix locally imported at toplevelPascal Rigaux2003-10-011-3/+3
|
* allow ->import on toplevel to impact the whole filePascal Rigaux2003-10-011-8/+12
| | | | | | (well, in fact it only impacts non yet checked code) (this is especially for drakbackup)
* better handling of bad cache filePascal Rigaux2003-09-301-1/+1
|
* ensure cache entries of removed file are removedPascal Rigaux2003-09-301-1/+4
|
* re-organize to handle cleanly multi packages per filePascal Rigaux2003-09-291-41/+40
| | | | | => fixes cache coherency
* remove debug infoPascal Rigaux2003-08-111-1/+1
|
* - allow $_o_XXX parameter name which is both unused and optional (same for ↵Pascal Rigaux2003-08-111-17/+44
| | | | | | | | | | | | $_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
|
* ->can is allowed on any objectPascal Rigaux2003-04-301-1/+1
|
* allow "*foo = sub {}" with no prototypePascal Rigaux2003-04-301-2/+3
|
* 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-241-20/+32
| | | | | | | - 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
|
* basic "number of arguments" checkingPascal Rigaux2003-04-171-55/+77
|
* - recognize function parameters and disallow using @_ in the rest of the ↵Pascal Rigaux2003-04-161-1/+20
| | | | | | | function body - suggest to use &f instead of f(@_)
* allow to selectively import from @EXPORT instead of only accepting @EXPORT_OKPascal Rigaux2003-04-101-1/+1
|
* simplify handling of variables declared in "if (...) ..." to meet perl's way.Pascal Rigaux2003-04-021-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 }
* add getgrentPascal Rigaux2003-02-141-1/+1
|
* check use of variables with name _XXX (reserved for unused variables)Pascal Rigaux2003-02-131-1/+4
|
* add "$."Pascal Rigaux2003-01-291-1/+1
|
* find, every and any are grep-like (ie. use $_)Pascal Rigaux2003-01-061-1/+2
|
* basename is not perl standardPascal Rigaux2003-01-061-1/+1
|
* - perl_checker: add some more Gtk2 functionsPascal Rigaux2002-12-281-1/+1
| | | | | | - MDK::Common::File: mkdir_p, rm_rf and cp_af returns 1 on success (allowing "eval { mkdir_p() } or ...")
* variousPascal Rigaux2002-12-191-4/+4
|
* - perl_checker: many new features includingPascal Rigaux2002-12-191-3/+3
| | | | | | | | - checking methods being available - checking unused functions - saving parsed file in .perl_checker.cache - new instruction "Basedir .." in .perl_checker (useful for gi/perl-install/standalone/.perl_checker)
* new features including checking methods being available and unused functionsPascal Rigaux2002-12-181-0/+447