Closed (fixed)
Project:
Coder
Version:
8.x-2.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2015 at 12:16 UTC
Updated:
18 Oct 2015 at 21:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
attiks commentedIt is even worse, the following does not get detected
Comment #3
attiks commentedFirst patch
Comment #4
pfrenssenAdded a test. This only specifically testing for warnings on the missing final commas, but since the phpcbf fixing of whitespace is also part of the test I guess this is sufficient to cover the whitespace bug.
Comment #5
pfrenssenComment #6
attiks commentedAdd support for nested short arrays
Comment #7
attiks commentedIgnore #6
Comment #8
attiks commentedAdded more tests
Comment #9
attiks commentedFixed the unit tests
Comment #10
pfrenssenGreat work, nice test coverage was added, and it's all green!
Comment #11
klausiMakes sense, please use the PHPCS coding standard for our sniff code (4 space indentation etc) to be in line with PHPCS code and to be consistent in one file.
Comment #12
attiks commentedPatch fixing - hopefully - the coding standards
Comment #14
klausiDid a bit of cleanup by running "phpcs --standard=PHPCS" on the file. Committed, thanks!
Comment #16
klausiFollow-up: #2580017: Short array syntax false positives