Fix build
This commit is contained in:
@ -97,14 +97,8 @@ fun assertSuppressed(report: Report, size: Int): List<Report.SuppressedViolation
|
|||||||
/** Checks the coordinates of this node. */
|
/** Checks the coordinates of this node. */
|
||||||
fun Node.assertPosition(bline: Int, bcol: Int, eline: Int, ecol: Int) {
|
fun Node.assertPosition(bline: Int, bcol: Int, eline: Int, ecol: Int) {
|
||||||
reportLocation.apply {
|
reportLocation.apply {
|
||||||
{
|
this::getStartLine shouldBe bline
|
||||||
this. // todo rename to getStartLine
|
this::getStartColumn shouldBe bcol
|
||||||
getStartLine()
|
|
||||||
} shouldBe bline
|
|
||||||
{
|
|
||||||
this. // todo rename to getStartLine
|
|
||||||
getStartColumn()
|
|
||||||
} shouldBe bcol
|
|
||||||
this::getEndLine shouldBe eline
|
this::getEndLine shouldBe eline
|
||||||
this::getEndColumn shouldBe ecol
|
this::getEndColumn shouldBe ecol
|
||||||
}
|
}
|
||||||
|
@ -23,16 +23,6 @@
|
|||||||
<directory>../pmd-scala-common/src/main/resources</directory>
|
<directory>../pmd-scala-common/src/main/resources</directory>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>8</source>
|
|
||||||
<target>8</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<testSourceDirectory>../pmd-scala-common/src/test/java</testSourceDirectory>
|
<testSourceDirectory>../pmd-scala-common/src/test/java</testSourceDirectory>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
|
Reference in New Issue
Block a user