Skip to content

linter: home directory gitignore breaks oxlint #17805

Description

@bessey

What version of Oxlint are you using?

1.37.0

What command did you run?

No response

What does your .oxlintrc.json config file look like?

Tried the stock oxlint file, doesn't seem to make a difference

What happened?

Trying out oxlint in a new repo. I use YADM for dotfile management. It works by gitignoring everything except dotfiles:

$ cat ~/.gitignore -p
# Ensure its hard to accidentally add non-dot-files to YADM
*
!.*
!/.config/*

Unfortunately this causes oxlint to ignore all files when the directory lives within ~/. I can understand why, but FWIW I have not encountered such problems with other tools, and I've been using YADM for several years.

Perhaps oxlint should stop traversing up the tree for .gitignore files when it sees a .git directory? (i.e. it has reached the root of the git repository it was run from within)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions