Skip to content

Commit

Permalink
Detekt: Added suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanOltmann committed Jul 10, 2023
1 parent 62d3641 commit 566b1eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ internal object XMPRDFParser {
* Process the attribute list for an RDF node element. A property attribute URI is
* anything other than an RDF term. The rdf:ID and rdf:nodeID attributes are simply ignored,
* as are rdf:about attributes on inner nodes.
*
*/
@Suppress("ThrowsCount")
private fun parseRdfNodeElementAttrs(
xmp: XMPMetaImpl,
xmpParent: XMPNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import com.ashampoo.xmp.properties.XMPAliasInfo
* The schema registry handles the namespaces, aliases and global options for the XMP Toolkit.
* There is only one single instance used by the toolkit.
*/
@Suppress("TooManyFunctions")
object XMPSchemaRegistryImpl : XMPSchemaRegistry {

/**
Expand Down Expand Up @@ -274,6 +275,7 @@ object XMPSchemaRegistryImpl : XMPSchemaRegistry {
* direct aliases regardless of whether the actual data type is
* an array or not (see [AliasOptions]).
*/
@Suppress("ThrowsCount")
fun registerAlias(
aliasNS: String,
aliasProp: String,
Expand Down Expand Up @@ -350,6 +352,7 @@ object XMPSchemaRegistryImpl : XMPSchemaRegistry {
* Register the standard aliases.
* Note: This method is not lock because only called by the constructor.
*/
@Suppress("StringLiteralDuplication", "LongMethod")
private fun registerStandardAliases() {

val aliasToArrayOrdered = AliasOptions().setArrayOrdered(true)
Expand Down

0 comments on commit 566b1eb

Please sign in to comment.