| Summary: | [check-webkit-style] False positive when using the ternary operators with multiple lines. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Javier Fernandez <jfernandez> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | llango.u-szeged |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Javier Fernandez
2014-02-13 11:32:55 PST
I think the ternary operator should be use only in short cases. If your code with ternary operator does not fit into one line, then you should use if-else instead. We don't have any rule for this case as I know, but maybe this would be useful. |