Skip to content

Commit

Permalink
chore: add pmd to build definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Jan 29, 2025
1 parent 04929c9 commit 4d3745b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
15 changes: 8 additions & 7 deletions plugin/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,14 @@
</extension>
<extension point="org.eclipse.lsp4e.languageServer">
<server
class="io.snyk.languageserver.SnykLanguageServer"
id="io.snyk.languageserver"
label="Snyk Language Server"
clientImpl="io.snyk.languageserver.protocolextension.SnykExtendedLanguageClient"
lastDocumentDisconnectedTimeout="3000000"
singleton="true"
markerType="io.snyk.languageserver.marker">
class="io.snyk.languageserver.SnykLanguageServer"
clientImpl="io.snyk.languageserver.protocolextension.SnykExtendedLanguageClient"
id="io.snyk.languageserver"
label="Snyk Language Server"
lastDocumentDisconnectedTimeout="3000000"
markerAttributeComputer="io.snyk.languageserver.SnykMarkerAttributeComputer"
markerType="io.snyk.languageserver.marker"
singleton="true">
</server>
<!-- snyk code -->
<contentTypeMapping
Expand Down
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.26.0</version>
<configuration>
<failOnViolation>true</failOnViolation>
<printFailingErrors>true</printFailingErrors>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
<goal>cpd-check</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
Expand Down

0 comments on commit 4d3745b

Please sign in to comment.