Skip to content

Add glob matching comparable to gitignore files #3387

Description

@skoehler

Short Description

Add glob matching comparable to .gitignore files

Possible Labels

  • new feature

Select Category

  • Enhancement
  • Add License/Copyright
  • Scan Feature
  • Packaging
  • Documentation
  • Expand Support
  • Other

Describe the Update

How This Feature will help you/your organization

I don't see how I can tell scancode to ignore/include all *.java files in a particular folder and its subfolders, for example.
Currently, I would have to write an --include for each folder and for each subfolder and for each subsubfolder, etc.

Possible Solution/Implementation Details

Here are some possible patterns and their meaning

*.java                java files at any level in the folder hierarchy
tests/*.java          java files in a folder called tests
tests/**/*.java       java files in a folder called tests or any subfolder of tests
/tests/**/*.java      java files in a folder called tests or any subfolder of tests, the folder tests has to be in the root directory

Example/Links if Any

Can you help with this Feature

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions