We have coverage for normal binary operators, but not these unusual cases.
Details
Details
Added and executed unit tests.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- wlint
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 729 Build 729: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
Comment Actions
I'll accept this because it works and is mostly fine, but there's a couple of minor inlines.
src/lint/linter/ArcanistXHPASTLinter.php | ||
---|---|---|
49 | Just a though (not really related to this diff), but whenever a new rule is added, I think that the output of getVersion and getCacheVersion should probably change as well. | |
109 | Also note related to this diff, but these strings should be wrapped in pht? | |
1971 | Do you need keys here? Wouldn't foreach (array($prev, $next) as $wtoken) { achieve the same thing? |
Comment Actions
- Bump verison.
- We should probably pht() everything at some point.
- To be completely correct, the rule for prev should disallow newlines (i.e., $a\n.$b is not conventional), but that's kind of complicated and I haven't seen anyone doing it so I didn't bother yet.