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

is it possible to specify a list of directories in the pre-commit args: parameter? #561

Open
stevesoutar opened this issue Aug 13, 2024 · 1 comment
Labels
wontfix This will not be worked on

Comments

@stevesoutar
Copy link

stevesoutar commented Aug 13, 2024

i have a project with multiple modules, but i only want to enable yor tagging in a couple of directories for now, rather than letting yor tag dozens of modules at one pass

I tried variations on this format, but yor would only execute on the first path in the list

My assumption is that the args: parameter currently does not attempt to cycle through this as a list, and only passes the first argument through for the -d path (as the behaviour suggests)

is it possible to supply a list of directories? Or not?

these are some of the variations i tried (without success)

    - repo: https://github.com/bridgecrewio/yor
      rev: 0.1.195
      hooks:
        - id: yor
          name: yor
          entry: yor tag -d
          args: ["directroy1/","directory2/"]
          language: golang
          types: [terraform]
          pass_filenames: false

or this

    - repo: https://github.com/bridgecrewio/yor
      rev: 0.1.195
      hooks:
        - id: yor
          name: yor
          entry: yor tag -d
          args: [
                 "directroy2/",
                 "directory1/"
                ]
          language: golang
          types: [terraform]
          pass_filenames: false
@stevesoutar stevesoutar changed the title is it possible to specify a list of directories in the pre-commit args: hook? is it possible to specify a list of directories in the pre-commit args: parameter? Aug 13, 2024
Copy link

stale bot commented Oct 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant