trunk-action icon indicating copy to clipboard operation
trunk-action copied to clipboard

fix: Fix trunk.yaml lint error

Open martimlobao opened this issue 1 year ago • 4 comments

  • this file is causing my CI checks to fail because it fails yamllint

martimlobao avatar Nov 20 '24 12:11 martimlobao

For context, here's an example: https://github.com/martimlobao/regybox/runs/33149046796

I only enabled the PR check from the Trunk app, the repo where the error is happening hasn't changed, and the file Trunk complains about is being downloaded from here.

martimlobao avatar Nov 20 '24 12:11 martimlobao

A more robust solution would be to have the linters not lint the contents of the .trunk directory itself, but I'm not sure how to do that and this works as an easy fix for now.

martimlobao avatar Nov 20 '24 12:11 martimlobao

I think the same can be achieved by adding .trunk/ in your .gitignore file.

https://docs.trunk.io/code-quality/linters/ignoring-issues-and-files

yxtay avatar May 24 '25 02:05 yxtay

I think the same can be achieved by adding .trunk/ in your .gitignore file.

docs.trunk.io/code-quality/linters/ignoring-issues-and-files

@yxtay yes but I don't want to do that since I want to commit the .trunk directory to my repo.

martimlobao avatar May 26 '25 12:05 martimlobao

closing as already fixed

gantoine avatar Sep 08 '25 15:09 gantoine