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

Edge cases in empty-lines rule #82

Closed
gsamokovarov opened this issue Oct 11, 2018 · 0 comments
Closed

Edge cases in empty-lines rule #82

gsamokovarov opened this issue Oct 11, 2018 · 0 comments

Comments

@gsamokovarov
Copy link
Contributor

Describe the bug

The following example fails:

func f10(*int) bool {
	if x > 2 {
		return true
	}
}

This is because of the trailing rule taking the position if the if statement, not the closing of the block into account.

Expected behavior

This is a false-positive and should not happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants