Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove unused imports from TWIRL templates and silence false positives #3351

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ val customScalacOptions = Seq(
"-unchecked",
"-deprecation",
"-Yresolve-term-conflict:package",
"-Wconf:src=target/.*:s", // silence TWIRL templates unused imports warnings
"-Wunused:imports",
"-Wunused:privates",
"-Wunused:locals",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri

@*
* Constructs a Gravsearch query that returns all the knora-api:StillImageRepresentation resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Changes the parent node of an existing node.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.IRI

@**
* Checks if a list node exists.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Delete a node (root or child). If a child node is deleted, remove it from the list of its parent's sublist nodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Delete an existing permission.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.IRI

@**
* Given a knora:base:internalFilename, retrieves the file value and information
* attached to it using SPARQL w/o inference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.util.KnoraSystemInstances

@**
* Gets the project an entity (resource or value) is attached to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Updates an existing node's position.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi.IRI
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2

@**
* Updates an existing permission's properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import dsp.errors.SparqlGenerationException
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2
@import java.time.Instant

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.v2.responder.ontologymessages._
@import org.knora.webapi.messages.StringFormatter
@import org.knora.webapi.messages.store.triplestoremessages._
@import java.time.Instant

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.v2.responder.ontologymessages._
@import java.time.Instant

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri
@import org.knora.webapi.messages.v2.responder.ontologymessages._
@import java.time.Instant

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
*@

@import java.time.Instant
@import java.util.UUID
@import dsp.valueobjects.UuidUtil
@import org.knora.webapi._
@import dsp.errors.SparqlGenerationException
@import org.knora.webapi.messages.SmartIri
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import java.time.Instant
@import org.knora.webapi._

@**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.IRI

@*
* Gets the predicates and objects of an ontology IRI.
*@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*@

@import org.knora.webapi._
@import org.knora.webapi.messages.SmartIri

@*
* Constructs a prequery that gets all resources from the specified project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@import java.util.UUID
@import dsp.valueobjects.UuidUtil
@import org.knora.webapi.IRI
@import dsp.errors.SparqlGenerationException
@import org.knora.webapi.messages.SmartIri

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*@

@import org.knora.webapi.messages.SmartIri

@*
* Checks whether an entity is used (i.e. is the object of any statements).
*
Expand Down
Loading