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 teamcity inspection formatter #822

Closed
memelet opened this issue Nov 30, 2019 · 0 comments
Closed

Add teamcity inspection formatter #822

memelet opened this issue Nov 30, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@memelet
Copy link
Contributor

memelet commented Nov 30, 2019

User story.
As an SRE, I can do configure spectral to emit teamcity inspection service messages, so that I can fail the build and navigate to errors.

Describe the solution you'd like
A new formatter that emits teamcity service messages.

Additional context
Teamcity service messages look like

##teamcity[inspection typeId='valid-example-in-schemas' file='src/api.yml' line='3970' message='\"hour-min.example\" property pattern should match pattern \"^(?:(|[01|]\\d||2|[0-3|]):(|[0-5|]\\d))$\"']

See also https://www.jetbrains.com/help/teamcity/build-script-interaction-with-teamcity.html#BuildScriptInteractionwithTeamCity-ReportingInspections

(PR forthcoming)

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 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
@P0lip P0lip closed this as completed Dec 3, 2019
@P0lip P0lip added the enhancement New feature or request label Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants