Skip to content

feature request - add way to filter by filename is in root path #257

Description

@davidosomething

currently the rootMarkers/requireMarker filter is:

			if dir := matchRootPath(fname, cfg.RootMarkers); dir == "" && cfg.RequireMarker == true {

i think this means:
only format / lint if rootMarker EXISTS in any parent dir

This request is to add a new feature

			if dir := matchParentPath(fname, cfg.ParentMarkers); dir == "" && cfg.RequireParentMarker == true {

such that
only format / lint if file is INSIDE a parentMarker dir

e.g.
actionlint should only run for the following parentMarkers = .github/

.github/
    - workflows/
        - abc.yml -- YES
    - FUNDING.yml -- YES
.vintrc.yml -- NO! not in .github/
.yamllint.yml -- NO

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions