Skip to content

Commit

Permalink
chore: Suppress detekt warnings in exposed-core module
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed Jul 18, 2023
1 parent a1acbde commit 8282fbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class Column<T>(
internal fun isOneColumnPK(): Boolean = this == table.primaryKey?.columns?.singleOrNull()

/** Returns the SQL representation of this column. */
@Suppress("ComplexMethod")
fun descriptionDdl(modify: Boolean = false): String = buildString {
val tr = TransactionManager.current()
val column = this@Column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ interface ISqlExpressionBuilder {
} as QueryParameter<T>

/** Returns the specified [value] as a literal of type [T]. */
@Suppress("UNCHECKED_CAST")
@Suppress("UNCHECKED_CAST", "ComplexMethod")
fun <T, S : T?> ExpressionWithColumnType<S>.asLiteral(value: T): LiteralOp<T> = when (value) {
is Boolean -> booleanLiteral(value)
is Byte -> byteLiteral(value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ open class OracleDialect : VendorDialect(dialectName, OracleDataTypeProvider, Or

override fun setSchema(schema: Schema): String = "ALTER SESSION SET CURRENT_SCHEMA = ${schema.identifier}"

@Suppress("UseRequire")
override fun createSchema(schema: Schema): String = buildString {
if ((schema.quota == null) xor (schema.on == null)) {
throw IllegalArgumentException("You must either provide both <quota> and <on> options or non of them")
Expand Down

0 comments on commit 8282fbc

Please sign in to comment.