Skip to content

Commit

Permalink
chore: Enable SpacingAroundUnaryOperator rule in detekt-config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed Aug 25, 2023
1 parent 09cf290 commit 499173b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions detekt/detekt-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ formatting:
NoMultipleSpaces:
active: true
autoCorrect: false
SpacingAroundUnaryOperator:
active: true
autoCorrect: true

style:
MaxLineLength:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 499173b

Please sign in to comment.