diff --git a/detekt/detekt-config.yml b/detekt/detekt-config.yml index 365b23452d..b7aae10aa0 100644 --- a/detekt/detekt-config.yml +++ b/detekt/detekt-config.yml @@ -18,6 +18,9 @@ formatting: NoMultipleSpaces: active: true autoCorrect: false + SpacingAroundUnaryOperator: + active: true + autoCorrect: true style: MaxLineLength: diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/SQLServerDialect.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/SQLServerDialect.kt index 7ef965cc98..14d242e385 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/SQLServerDialect.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/SQLServerDialect.kt @@ -267,7 +267,7 @@ open class SQLServerDialect : VendorDialect(dialectName, SQLServerDataTypeProvid val isPKColumn = column.table.primaryKey?.columns?.contains(column) == true if (column.columnType.nullable || - (defaultValue != null && column.defaultValueFun == null && ! currentDialect.isAllowedAsColumnDefault(defaultValue)) + (defaultValue != null && column.defaultValueFun == null && !currentDialect.isAllowedAsColumnDefault(defaultValue)) ) { append(" NULL") } else if (!isPKColumn) {