You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It runs compileScala and compileTestScala, (among other tasks) and both of these are of type ScalaCompile. The documentation specifies that we should use:
We did this and it overwrites the scapegoat.xml file of the sources with the one for the tests.
The documentation also states that -P:scapegoat:sourcePrefix: defaults to src/main/scala and that this is not a required setting. We've actually tried specifying this and it didn't help.
If you do the following, you will get a separate file for sources and unit tests:
Of course, if you're trying to be really strict, you might want to also check your tests, but, generally, you're mainly interested in your production sources.
Would it be possible to change this behaviour, or add an option to be able to control it?
Thanks! :)
The text was updated successfully, but these errors were encountered:
@carlspring At the moment I cannot think about any solution better than you have.
I'm actually trying to solve the same problem at the moment, so there might be a solution sooner or later. Or otherwise a gradle plugin migth appear...
We're using Scapegoat 3.11. When running:
It runs
compileScala
andcompileTestScala
, (among other tasks) and both of these are of typeScalaCompile
. The documentation specifies that we should use:We did this and it overwrites the
scapegoat.xml
file of the sources with the one for the tests.The documentation also states that
-P:scapegoat:sourcePrefix:
defaults tosrc/main/scala
and that this is not a required setting. We've actually tried specifying this and it didn't help.If you do the following, you will get a separate file for sources and unit tests:
This looks like a bug.
Of course, if you're trying to be really strict, you might want to also check your tests, but, generally, you're mainly interested in your production sources.
Would it be possible to change this behaviour, or add an option to be able to control it?
Thanks! :)
The text was updated successfully, but these errors were encountered: