Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

linter-reek passing invalid messages to linter #11

Closed
Arcanemagus opened this issue Aug 25, 2015 · 8 comments
Closed

linter-reek passing invalid messages to linter #11

Arcanemagus opened this issue Aug 25, 2015 · 8 comments
Labels

Comments

@Arcanemagus
Copy link
Member

It appears that linter-reek is passing messages of an invalid format to the linter package, causing issues to be reported against the linter package (steelbrain/linter#850 (comment)).

Steps to reproduce:

  1. Open a fresh Atom profile
  2. Install linter and linter-reek packages
  3. Create a Ruby file with content (I used the example here)
  4. Trigger a lint
@steelbrain
Copy link
Contributor

In any case, we should be catching those invalid messages in linter, can I get to see an example invalid error object please?

@steelbrain steelbrain added the bug label Aug 25, 2015
@Arcanemagus
Copy link
Member Author

image

JSON.stringify(message)
"{"type":"warning","text":["Dirty#awful has unused parameter 'y' (UnusedParameters)\r\n",""],"filePath":"C:\\Users\\Landon\\Desktop\\wtf.rb","range":{"start":{"row":0,"column":0},"end":{"row":0,"column":0}},"key":"{\"type\":\"warning\",\"text\":[\"Dirty#awful has unused parameter 'y' (UnusedParameters)\\r\\n\",\"\"],\"filePath\":\"C:\\\\Users\\\\Landon\\\\Desktop\\\\wtf.rb\",\"range\":{\"start\":{\"row\":0,\"column\":0},\"end\":{\"row\":0,\"column\":0}}}","class":"warning","currentFile":true,"currentLine":false}"

Need anything else? It looks like text is an array and shouldn't be.

@steelbrain
Copy link
Contributor

Ah right. I think we're gonna need a spec for that in the core linter, as well as a type check.

@kieranklaassen
Copy link

+1

1 similar comment
@mttrs
Copy link

mttrs commented Aug 27, 2015

+1

@Arcanemagus
Copy link
Member Author

@dhagerty9009 will you be able to take this on, or do you want somebody else to take a look?

@dathagerty
Copy link
Contributor

I'm a little swamped at work, so if someone else can fix this issue that would be fantastic.

@dathagerty
Copy link
Contributor

I'm closing this issue, as #13 has been merged in.

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

No branches or pull requests

5 participants