Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn of control flow with empty statement following #53

Open
jonnyboyC opened this issue May 29, 2019 · 0 comments
Open

Warn of control flow with empty statement following #53

jonnyboyC opened this issue May 29, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jonnyboyC
Copy link
Owner

Provide a warning to the user when a control flow with a body is likely accidentally closed

Examples:

  // will print here
  if true. {
      print("here").
  }

  // will print not possible
  until 10 > 20. {
      print("not possible").
  }

examples such as these are likely always unintentional. We can provide the lowest level diagnostic level "hint" to indicate this is likely unintended without distracting in the rare case it is.

@jonnyboyC jonnyboyC added the enhancement New feature or request label May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant