AKSW / OntoWiki

Semantic data wiki as well as Linked Data publishing engine
https://ontowiki.net
204 stars 51 forks source link

FileCommentSniff fails for merge commits #354

Closed white-gecko closed 8 years ago

white-gecko commented 8 years ago

The FileCommentSniff can't handle years in merge commits, since the date is in the 4th instead of 3rd line, see: https://github.com/AKSW/OntoWiki/blob/develop/application/tests/CodeSniffer/Standards/Ontowiki/Sniffs/Commenting/FileCommentSniff.php#L94

shinobu commented 8 years ago

a quick fix for this would be to look for the year in line 4 if regex fails to find anything in line 3