question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Forbid empty comments

See original GitHub issue

Rule request

Thesis

We should ban comments like this one:

# 
my_var = 1

But, empty lines in the middle are fine:

# First line
# 
# Samples:
# One
# Two
my_var = 1

We ban only empty lines in the beginning and in the end.

Reasoning

Why not?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Nov 19, 2020

@Elton-Lin updated, sorry. I have to read more carefully 🙂

1reaction
sobolevncommented, Nov 4, 2020

Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Completely Disable Comments in WordPress (Ultimate ...
Select Do not allow from the comments dropdown box and click on Update. This will disable comments on all your selected posts.
Read more >
How can I prevent Subversion commits without comments?
If your intention is to prevent mistakes when commiting without comments, the solutions provided here are going to work. If you want this...
Read more >
How stop the process of submitting a comment if a field is ...
So my question is how to stop the comment submit, if the 'review_title' field is empty? comments · Share.
Read more >
User can post an empty comment review · Issue #4630 - GitHub
Posting an empty review (comment) on a PR gets accepted.. This is the same thing as rejecting a PR.. Screenshots. Here is the...
Read more >
no-empty - ESLint - Pluggable JavaScript Linter
Empty block statements, while not technically errors, usually occur due to refactoring that wasn't completed. They can cause confusion when reading code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found