Skip to content

Allow --only-files et al. to function with 'leading dot' notation for files #1895

@gstokkink

Description

@gstokkink

Is your feature request related to a problem? Please describe.

The following works fine:

bundle exec brakeman --only-files foo,bar

The following does not:

bundle exec brakeman --only-files ./foo,./bar

The files are simply skipped.

Describe the solution you'd like

I'd like brakeman to support this kind of notation for files, as a lot of other tools do. This makes automation a lot simpler.

Describe alternatives you've considered

Currently using a shim script in our CI/CD setup to convert all filenames with leading dots to a notation without. This shim script could be discarded if brakeman supported 'leading dot' notation (not sure what the correct term is, relative path prefixed by current dir?).

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