We let BOM enter our repository which is definitely unwanted. Sam had to recently remove one in mediawiki/core https://gerrit.wikimedia.org/r/14622
Version: unspecified
Severity: enhancement
We let BOM enter our repository which is definitely unwanted. Sam had to recently remove one in mediawiki/core https://gerrit.wikimedia.org/r/14622
Version: unspecified
Severity: enhancement
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Declined | None | T40233 Jenkins: Fail on BOM in submitted files | |||
Declined | None | T101511 common job for all repositories that runs structural linting | |||
Declined | None | T111181 use one job for all CI entry points |
This is properly covered by the PHP_CodeSniffer rule "Generic.Files.ByteOrderMark" which we have in the MediaWiki standard.
Still have to get Jenkins to fail on phpcs checks which are non voter for now.
I don't think we should have a generic job that scans all files everywhere for a BOM. Instead let's defer this to individual linters or coding style checkers.
PHPCS has a sniff for it. So that's good.
Let's look into JSHint as well.