How can I prevent phpcs from scanning docblock / comments?

44 Views Asked by At

I am using (among others) the following PHPCS sniff:

Squiz.WhiteSpace.SuperfluousWhitespace.EndLine

But I find it frustrating that end-of-line white space within docblocks is getting flagged. Is there any way to disable the errors specifically for comments and/or docblocks?

For example,

/**
 * This function does things. 
 * 
 * A long explanation. Nihil hic munitissimus habendi senatus locus, 
 * nihil horum? Gallia est omnis divisa in partes tres, quarum. 
 * 
 * @param something array  My explanation
 */

The long explanation has whitespace at the end of the lines, which really doesn't matter at all, and I would like PHPCS to ignore that.

0

There are 0 best solutions below