fix(formatter): correct nullable union formatting #1773
Annotations
7 warnings and 5 notices
|
unfulfilled-expect:
composer/MagoPlugin.php#L100
This pragma was not used and may be removed.
>This expect pragma was not fulfilled.
>...within this comment.
|
|
unfulfilled-expect:
composer/MagoPlugin.php#L74
This pragma was not used and may be removed.
>This expect pragma was not fulfilled.
>...within this comment.
|
|
no-shorthand-ternary:
composer/MagoPlugin.php#L93
Use of the shorthand ternary operator.
>Ambiguous check due to `? :` loose comparison
Help: Use null coalesce operator (`??`) or ternary operator with explicit strict comparison.
|
|
no-shorthand-ternary:
composer/MagoPlugin.php#L91
Use of the shorthand ternary operator.
>Ambiguous check due to `? :` loose comparison
Help: Use null coalesce operator (`??`) or ternary operator with explicit strict comparison.
|
|
unfulfilled-expect:
composer/InstallMagoBinaryCommand.php#L206
This pragma was not used and may be removed.
>This expect pragma was not fulfilled.
>...within this comment.
|
|
unfulfilled-expect:
scripts/regen-analyzer-issue-codes.php#L23
This pragma was not used and may be removed.
>This expect pragma was not fulfilled.
>...within this comment.
|
|
unfulfilled-expect:
scripts/regen-analyzer-issue-codes.php#L22
This pragma was not used and may be removed.
>This expect pragma was not fulfilled.
>...within this comment.
|
|
no-else-clause:
composer/MagoPlugin.php#L108
Avoid `elseif` clauses.
>This `elseif` adds unnecessary complexity
Complex conditional chains can often be simplified by using early returns or a `match` expression.
Help: Refactor to use guard clauses (early returns) or a `match` expression for clarity.
|
|
no-else-clause:
composer/InstallMagoBinaryCommand.php#L301
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|
|
no-else-clause:
composer/InstallMagoBinaryCommand.php#L279
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|
|
no-else-clause:
composer/InstallMagoBinaryCommand.php#L286
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|
|
no-else-clause:
composer/InstallMagoBinaryCommand.php#L309
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|