Fix build

This commit is contained in:
Clément Fournier
2022-04-03 00:52:12 +02:00
parent 3d022c5d1f
commit 27962debc0
2 changed files with 2 additions and 18 deletions

View File

@ -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
} }

View File

@ -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>