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.

Dots at the end of many messages are omitted

See original GitHub issue

What version of ESLint are you using? 3.1.1 What parser (default, Babel-ESLint, etc.) are you using? default

Please show your full configuration: Example for array-bracket-spacing but this issue is not limited to this rule only -

{
    "rules": {
        "array-bracket-spacing": "error"
    }
}

What did you do? Please include the actual source code causing the issue.

var foo = [ ]

What did you expect to happen? Have a dot at the end - 1:11 error There should be no space after '['. array-bracket-spacing

What actually happened? Please include the actual, raw output from ESLint. It doesn’t have a dot at the end - 1:11 error There should be no space after '[' array-bracket-spacing

I’m not sure if this is intentional or not, every message should have a dot at the end or there is a different policy in place? If so, I think it should be documented.

Beside that, if this is really a “bug” I think every rule should be fixed with one commit in order not to trash the commit history

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ilyavolodincommented, Jul 29, 2016

I know that keeping all of the error messages in the same style is important, but is it important enough to add something like that to RuleTester, or create additional complexity in some other way? I think we should just go through and add dots at the end of every message. Sometime in the future we can just do another pass. It’s not like it takes all that much time.

1reaction
markelogcommented, Jul 29, 2016

@vitorbal

We could add a custom internal rule for checking that the last dot is always present

You mean custom ESLint rule? I’m not sure if that is possible for static analysis tool, for example, you would need to deal with cases like that - https://github.com/eslint/eslint/blob/ddea63a6dbc73e9ef2c2c5625826d02d586de774/lib/rules/array-bracket-spacing.js#L78

@pmcelhaney

Okay, maybe a check for proper formatting can be added to rule-tester.js.

I think this is our best bet, it shouldn’t reflect on rules which are not part of our repo, so we wouldn’t need to bump major or anything like that

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are those dots called and how many of them are there ...
The answer is three, unless the omitted material includes the end of a sentence. You can think of that as a three-dot ellipsis...
Read more >
Omitting Words from a Direct Quotation - Writing Commons
Ellipsis points are used to represent an omission from a direct quotation when it is cited by another writer. This series of three...
Read more >
How to Use an Ellipsis (…) - The Editor's Manual
An ellipsis is a series of three dots. In a quotation, an ellipsis signifies omitted words. In a dialogue or narrative, the ellipsis...
Read more >
What does OK with dots mean in texting? - The Healthy Journal
The ellipsis, a row of three dots, stands for an omitted section of text. But much can be conveyed by omission. It asks...
Read more >
Ellipsis Marks - The Blue Book of Grammar and Punctuation
Ellipsis marks (three dots) are used to show the omission of a word, phrase, line, or paragraph(s), from a quoted passage. The plural...
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