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.

Add check to enforce comment style

See original GitHub issue

For comments, we use the following conventions:

  1. Python:
  • # This is a single-line comment.

  • # This is a multi-line XXXXXX # XXXXXXXXX comment.

  1. JavaScript:
  • // This is a single-line comment.

  • // This is a multi-line XXXXXX // XXXXXXXXX comment.

A pre-submit check needs to implemented to enforce this style in scripts/pre_commit_linter.py. This check can (probably) be coupled with one of the existing checks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KhalidRmbcommented, Feb 2, 2019

@YashJipkate Yes, I’m working on it

0reactions
kevinlee12commented, Jan 14, 2020

Filed #8423

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best practices for writing code comments - Stack Overflow Blog
Rule 9: Use comments to mark incomplete implementations​​ Using a standard format for such comments helps with measuring and addressing technical ...
Read more >
Code style options and code cleanup - Visual Studio (Windows)
Learn how to add an EditorConfig file to your project or codebase to enforce consistent coding styles for everyone that works in the...
Read more >
Writing Checks - checkstyle
"PLAIN JAVA" mode shows the AST corresponding to the java source code without comments. In "JAVA WITH COMMENTS" you can also see comments...
Read more >
Force Developers to add comments in function - Stack Overflow
I want to make sure that, every single function written by my developers should have a comment before it. It makes sense to...
Read more >
multiline-comment-style - ESLint - Pluggable JavaScript Linter
This rule aims to enforce a particular style for multiline comments. Options. This rule has a string option, which can have one of...
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