tighten/duster

Failed on docblock @param

Closed this issue · 2 comments

I do not understand why having a @param like this fails?
image

If you look at the output from the duster run, you'll gather helpful information such as:

  • Which linter is showing that error
  • Which error is coming up from that linter

I added the above code to my project, and here's what I saw:

image

As you can see, it's Pint throwing the error, and it's throwing three errors:

no_superfluous_phpdoc_tags, no_trailing_whitespace_in_comment, global_namespace_import

So your @param is likely triggering no_superfluous_phpdoc_tags.

Yep, if you would like to remove this option, you'll need to follow the Pint customization instructions.

Copy the Duster Pint config to your project's root and add:

 "no_superfluous_phpdoc_tags": false