문제

I would like to use PEAR.Commenting.FileComment.MissingTag for my phpcs ruleset, but I need to customize the list of required tags.

Is it possible via some API or must I exclude this rule and write a new Sniff?

I was searching through documentation and CodeSniffer source files, but I didn't find any solution.

도움이 되었습니까?

해결책

There is no way to customise the FileComment sniff, so you'd have to exclude that rule and write your own sniff if you want to customise the file commenting rules.

Extending the PEAR class might be a good way to get going, especially if you just want to change tags and tag orders.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top