Skip to content

Exclusion patterns in detekt-config #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
schalkms opened this issue Mar 4, 2018 · 1 comment
Closed

Exclusion patterns in detekt-config #775

schalkms opened this issue Mar 4, 2018 · 1 comment
Labels
Milestone

Comments

@schalkms
Copy link
Member

schalkms commented Mar 4, 2018

As mentioned in #764 there should be an option to exclude rules for given patterns.
For instance:

exclusion-patterns:
  exclusion-pattern:
    pattern: .*DTO.kt
    rules:
      - VariableNaming
      - FunctionNaming

After this feature is implemented the config option excludeClassPattern in VariableNaming and FunctionNaming should be removed.

@arturbosch arturbosch added this to the 1.1.0 milestone Mar 5, 2018
@schalkms
Copy link
Member Author

This is already implemented.

TooManyFunctions:
  active: true
  excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"

@lock lock bot locked as resolved and limited conversation to collaborators Nov 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants