ngbinh / gradle-scalastyle-plugin

Gradle plugin for scalastyle
18 stars 16 forks source link

Other checks than org.scalastyle.* on scalastyle-config.xml #50

Open mwos-sl opened 4 years ago

mwos-sl commented 4 years ago

I've got some custom checks implemented I was using in maven with a success, e.g.:

 <check customId="nonascii" level="error" class="com.my.group.NonASCIICharacterChecker" enabled="true"/>

It does not work with gradle-scalastyle-plugin. How I can tell the gradle-scalastyle plugin where to find those dependancies for such a custom checker?

Another thing is, that there is no error printed, that couldn't find it. For example: if I add an obviously bad rule like this:

  <check customId="blabla" level="error" class="ClassThatDoNotExistForSureSoItShouldFail" enabled="true"/>

It just runs without any error. I wish I know that there is something wrong with the config.