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.

`no-empty-description` incorrectly flags non-empty descriptions.

See original GitHub issue

The following seem like reasonable test descriptions, but they get flagged by no-empty-description:

describe('eslint-plugin-mocha', function() {
  const description = 'description';
  it(description, function() {});

  ['test1', 'test2'].forEach(testname => {
    it(testname, function() {});
  });

  const removePrefix = 'testcase.prefix';
  it(removePrefix.replace('.prefix'), function() {});
});
   3:3  error  Unexpected empty test description  mocha/no-empty-description
   6:5  error  Unexpected empty test description  mocha/no-empty-description
  10:3  error  Unexpected empty test description  mocha/no-empty-description

Was this intended with #304?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lo1tumacommented, Dec 13, 2021

Thanks for reporting. This is definitely a bug.

0reactions
neverendingqscommented, Dec 14, 2021

@neverendingqs I’ve deployed another fix in version 10.0.3. I hope I’ve covered all edge cases you described. Please let me know if you encounter any more issues with that rule.

Thanks! No more issues as far as I know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve At-clause should have a non-empty description?
I am using the google java style in the checkstyle plugin for eclipse luna. Seeing this error all over my java doc but...
Read more >
EC2Launch v2 settings - Amazon Elastic Compute Cloud
This section contains information about how to configure settings for EC2Launch v2.
Read more >
How to create a template for issue description?
Hi everyone! I try to find out if there are a way to insert a template in the issue description that shows up...
Read more >
[Javadoc] Missing description should be warned for all tags
The problem I see with 1) is that a) either the option is disabled, and we don't flag the missing description on @return,...
Read more >
urllib.parse wrongly strips empty #fragment, ?query, //netloc
urllib.parse can't handle URIs with empty #fragments. The fragment is removed and not ... The idea of “has_fragment” etc flags might work.
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