gantsign / ktlint-maven-plugin

Maven plugin for ktlint the Kotlin linter

Home Page:http://gantsign.com/ktlint-maven-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plain reporter throws an error: Invalid color parameter.

dibog opened this issue · comments

commented

The com.pinterest.ktlint.reporter.plain.PlainReporter throws an exception as the color is not provided by the com.github.gantsign.maven.plugin.ktlint.internal.MavenLogReporter.

This means that currently the following in the usage documentation does not work:

<reporters>
  <reporter>
	<name>plain</name>
	<output>${project.build.directory}/ktlint.txt</output>
	<properties>
	  <property>
		<name>group_by_file</name>
		<value>true</value>
	  </property>
	</properties>
  </reporter>
</reporters>

Even if I add

<property>
	<name>shouldColorOutput</name>
	<value>false</value>
</property>
<property>
	<name>outputColor</name>
	<value>DARK_GRAY</value>
</property>

@dibog thanks for reporting this issue, sorry it took so long to fix. You can find the fix for the issue in version 1.8.0 of this role.