Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add intellij formatter #823

Closed
memelet opened this issue Nov 30, 2019 · 2 comments · Fixed by #825
Closed

Add intellij formatter #823

memelet opened this issue Nov 30, 2019 · 2 comments · Fixed by #825
Assignees

Comments

@memelet
Copy link
Contributor

memelet commented Nov 30, 2019

User story.
As an api developer, I can do configure spectral to emit output from which intellij can navigate to the api spec.

Describe the solution you'd like
A new formatter that emits messages that include filename:line:column.

Additional context
For example:

src/api.yml:320:21 <similar output to stylish>

(PR forthcoming)

@memelet
Copy link
Contributor Author

memelet commented Nov 30, 2019

Of course if stylish just added the file name to the existing line:column instead of just emitting it at the the top of the errors that also would work for idea.

@memelet
Copy link
Contributor Author

memelet commented Nov 30, 2019

It would be nice to get a relative path to the api spec...

memelet added a commit to systeminsights/spectral that referenced this issue Nov 30, 2019
…toplightio#822.

The text formatter is close to the stylish but with no special formatting and a source:line:column suitable for navigation within an IDE console (IntelliJ specifically).

The teamcity formatter emits teamcity inspection service messages that teamcity will automatically detect and add to the build inspection tab.
@P0lip P0lip closed this as completed in #825 Dec 3, 2019
P0lip pushed a commit that referenced this issue Dec 3, 2019
* Add two formatters: text, teamcity. Closes issues #823 and #822.

The text formatter is close to the stylish but with no special formatting and a source:line:column suitable for navigation within an IDE console (IntelliJ specifically).

The teamcity formatter emits teamcity inspection service messages that teamcity will automatically detect and add to the build inspection tab.

* Updates as per P0lip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant