TysonAndre / phan

Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
Other
0 stars 0 forks source link

Create CATEGORY_COMMENT warning (plugin?) for comments phan can't analyze #41

Closed TysonAndre closed 7 years ago

TysonAndre commented 7 years ago
  1. Param annotations with no corresponding real parameter
  2. Duplicate param annotations, var annotations, return annotations (Merge return types?)
  3. Union types which can't be parsed
  4. @phan-foo which aren't recognized by the current version of phan (Typos)
  5. @params, @returns (A user-configurable which aren't officially part of phpdoc, and aren't recognized by phan. Also see phan-foo)
  6. PHPdoc in the wrong context, e.g. @return on a class declaration.
  7. Unknown type in throws?

Separate the issue types so that phan can suppress them on a case by case basis

WIP branch: category-comment-start-warning