Skip to content

Allow multiple excludes in Java extractor #18905

Closed
@megabug

Description

@megabug

The Java extractor has the exclude option:

$ codeql resolve extractor --format=betterjson --language=java-kotlin
{
  "extractor_root" : "/opt/codeql/java",
  "extractor_options" : {
    "exclude" : {
      "title" : "A glob excluding files from analysis.",
      "description" : "A glob indicating what files to exclude from the analysis.\n",
      "type" : "string"
    },

Since it is of type string, only one glob can be provided (unless I'm mistaken), as adding another --extractor-option exclude=... argument will just overwrite the previous one.

It'd be good if it had type array instead so that multiple exclude globs can be used.

Metadata

Metadata

Assignees

Labels

CLIquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions