Skip to content

Does it exclude files under a specific directory? #58285

@shuniiiig

Description

@shuniiiig

Describe the rule you'd like to see implemented

I generated a code from .proto(related to gRPC) files, but some errors appear like a screenshot below.

screenshot

And I write analyzer like below.

analyzer:
  exclude:
    - "lib/data/grpc/**"

I hope to exclude specific files under the directory. Currently, I have a way that it excludes these files from lint, but I could not use code completion in that case and some warnings appear by lint.

This should include a description of who would use the lint (such as if it's
specific to a framework like Flutter), what conditions the rule should look
for, and what conditions the rule should ignore.

Examples

linter:
  rules:
    - prefer_relative_imports
  exclude:
    - "lib/data/grpc/**"

I need lint to have exclude option.

Ideally, provide motivating examples w/ rationale.

Additional context
Add any other considerations or context here.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.needs-infoWe need additional information from the issue author (auto-closed after 14 days if no response)type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions