Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Statements must not be empty, except catch blocks #34

Merged
merged 4 commits into from
Feb 19, 2019

Conversation

thewilkybarkid
Copy link
Contributor

No description provided.

@thewilkybarkid thewilkybarkid added the feature New feature or request label Nov 15, 2018
@thewilkybarkid thewilkybarkid added this to the 0.4.0 milestone Nov 15, 2018
@thewilkybarkid thewilkybarkid requested a review from a team as a code owner November 15, 2018 12:05
declare(strict_types=1);

if ($foo) {
// Bar

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why comments do not count? // a long explanation of why we shouldn't do anything here should suffice?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we find a valid example of this? Will take a look.

Copy link
Contributor Author

@thewilkybarkid thewilkybarkid Nov 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These examples are what I had in mind, they are edge cases of complex code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to ignore for now. If there really is a situation where it makes sense, then we can revisit/disable that individual check.

@thewilkybarkid thewilkybarkid merged commit e1334ea into libero:master Feb 19, 2019
@thewilkybarkid thewilkybarkid deleted the empty-statement branch February 19, 2019 09:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants