Skip to content

Have a --noignore-file option #373

@blmatthews

Description

@blmatthews

There are some builtin --ignore-files that I'd like to override (specifically not searching minified files), but there doesn't seem to be an easy way to do that (i.e. where I can just continue typing ack pattern). I'd like to suggest a --noignore-file option. I can see a couple of ways it could work:

  1. If a --noignore-file option is given and there's a --ignore-file option in effect with the same right-hand side as the --noignore-file, drop the --ignore-file (and if there isn't a matching --ignore-file, maybe give a warning).
  2. Collect the --noignore-files and if a file matches a --ignore-file, try it against the --noignore-files, and if it matches one of those, don't ignore it.

The first is probably easier to implement, but the second would also allow ignoring a large class of files but then overriding that for a subset of the class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions