Skip to content
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

exclude folder from sourceSets #33

Open
igreenfield opened this issue Jan 20, 2022 · 1 comment
Open

exclude folder from sourceSets #33

igreenfield opened this issue Jan 20, 2022 · 1 comment

Comments

@igreenfield
Copy link

is there a way to exclude some folders from the check?

@fleminra
Copy link

My project includes some generated source code, and I add that to sourceSets with:

sourceSets.main.scala.srcDirs += [
  "$buildDir/scrooge/scala"
]

The Scalastyle plugin automatically picks up that up, which was my problem.

I don't think it's the best solution, but I worked around it with:

afterEvaluate { project ->
  scalastyleMainCheck.sourceDirs.set(files("src/main/scala"))
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants