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

Make AnyLint summarize outputs of multiple linting tools #42

Open
Jeehut opened this issue Jul 2, 2021 · 0 comments
Open

Make AnyLint summarize outputs of multiple linting tools #42

Jeehut opened this issue Jul 2, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Jeehut
Copy link
Member

Jeehut commented Jul 2, 2021

Problem Statement

As it's in the name of AnyLint, it should be able to lint anything. This can also be understood in a way that AnyLint can start and orchestrate any kind of linter. This will only work though if those other linters output can be understood by AnyLint and they can somehow communicate / interpret each others results.

Suggested Solution

Add a standardized JSON-based violation & statistics output format which other tools outputs can be easily converted to. Then add native support for some common linters like SwiftLint, SwiftFormat and ktlint to make AnyLint summarize their results and fail at the specified levels.

Example Usage

A user might want to setup some custom lint rules via AnyLint and additionally specify that SwiftLint should be run. This could be done via a command line script that is specified in AnyLint and somehow another command that is provided by AnyLint which can convert the output to the AnyLint standardized format and therefore the summary and failing status of anylint would also include the results of SwiftLint.

@Jeehut Jeehut added the enhancement New feature or request label Jul 2, 2021
@Jeehut Jeehut added this to the 1.0.0 milestone Jul 2, 2021
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

1 participant