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

Support appending to existing code-climate .json file #4216

Open
mitar opened this issue Nov 21, 2023 · 0 comments
Open

Support appending to existing code-climate .json file #4216

mitar opened this issue Nov 21, 2023 · 0 comments
Labels
area: output Related to issue output enhancement New feature or improvement no decision No decision to fix or not

Comments

@mitar
Copy link
Contributor

mitar commented Nov 21, 2023

Your feature request related to a problem? Please describe.

I have a bunch of separate example files in a directory, each is runnable on its own using go run but the directory is not really a Go package and files have conflicting types if you look at them all together. This is why I run:

find _examples -name '*.go' -exec golangci-lint run --timeout 4m --out-format colored-line-number,code-climate:codeclimate.json {} ';'

But the issue is that codeclimate.json gets just the output from the last run of the tool.

Describe the solution you'd like.

That if codeclimate.json output file already exists, additional entries are appended to it.

Describe alternatives you've considered.

To generate individual files first and then with some other JSON processing tool merge them together.

Additional context.

No response

@mitar mitar added the enhancement New feature or improvement label Nov 21, 2023
@ldez ldez added area: output Related to issue output no decision No decision to fix or not labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: output Related to issue output enhancement New feature or improvement no decision No decision to fix or not
Projects
None yet
Development

No branches or pull requests

2 participants