Skip to content

Make AnyLint summarize outputs of multiple linting tools #42

@Jeehut

Description

@Jeehut

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions