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

scalastyleSources setting does not support individual files #55

Open
scf37 opened this issue Aug 11, 2016 · 2 comments
Open

scalastyleSources setting does not support individual files #55

scf37 opened this issue Aug 11, 2016 · 2 comments

Comments

@scf37
Copy link

scf37 commented Aug 11, 2016

In theory, files could be excluded using following construct:
scalastyleSources := scalastyleSources in dao.value .map(PathFinder.apply _) .reduceLeft[PathFinder]((a, b) => a +++ b) .**("*") .filter( ! _.getAbsolutePath.contains("src/main/scala/my/generated/metadata")).get

but - scalastyle seems to take entire parent directory instead of single file passed in.

@matthewfarwell
Copy link
Member

Looking at the code, it should just use the file directly, if it ends with .scala. Can you give me more information on the error please?

@scf37
Copy link
Author

scf37 commented Apr 21, 2017

Hi!
Good to know it is alive after all those months :-)

I do not remember exactly what the problem is but I think that scalastyle does not work with filenames in scalastyleSources, only directory names. E.g. if you have two .scala files in a directory, you can't ignore one of them using scalastyleSources.

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