|
| 1 | +runner.dialect = scala212 |
| 2 | + |
| 3 | +# Version is required to make sure IntelliJ picks the right version |
| 4 | +version = 3.4.3 |
| 5 | +preset = default |
| 6 | + |
| 7 | +# Max column |
| 8 | +maxColumn = 100 |
| 9 | + |
| 10 | +# This parameter simply says the .stripMargin method was not redefined by the user to assign |
| 11 | +# special meaning to indentation preceding the | character. Hence, that indentation can be modified. |
| 12 | +assumeStandardLibraryStripMargin = true |
| 13 | +align.stripMargin = true |
| 14 | + |
| 15 | +# Align settings |
| 16 | +align.preset = none |
| 17 | +align.closeParenSite = false |
| 18 | +align.openParenCallSite = false |
| 19 | +danglingParentheses.defnSite = false |
| 20 | +danglingParentheses.callSite = false |
| 21 | +danglingParentheses.ctrlSite = true |
| 22 | +danglingParentheses.tupleSite = false |
| 23 | +align.openParenCallSite = false |
| 24 | +align.openParenDefnSite = false |
| 25 | +align.openParenTupleSite = false |
| 26 | + |
| 27 | +# Newlines |
| 28 | +newlines.alwaysBeforeElseAfterCurlyIf = false |
| 29 | +newlines.beforeCurlyLambdaParams = multiline # Newline before lambda params |
| 30 | +newlines.afterCurlyLambdaParams = squash # No newline after lambda params |
| 31 | +newlines.inInterpolation = "avoid" |
| 32 | +newlines.avoidInResultType = true |
| 33 | +optIn.annotationNewlines = true |
| 34 | + |
| 35 | +# Scaladoc |
| 36 | +docstrings.style = Asterisk # Javadoc style |
| 37 | +docstrings.removeEmpty = true |
| 38 | +docstrings.oneline = fold |
| 39 | +docstrings.forceBlankLineBefore = true |
| 40 | + |
| 41 | +# Indentation |
| 42 | +indent.extendSite = 2 # This makes sure extend is not indented as the ctor parameters |
| 43 | + |
| 44 | +# Rewrites |
| 45 | +rewrite.rules = [AvoidInfix, Imports, RedundantBraces, SortModifiers] |
| 46 | + |
| 47 | +# Imports |
| 48 | +rewrite.imports.sort = scalastyle |
| 49 | +rewrite.imports.groups = [ |
| 50 | + ["org.apache.flink\\..*"], |
| 51 | + ["org.apache.flink.shaded\\..*"], |
| 52 | + [".*"], |
| 53 | + ["javax\\..*"], |
| 54 | + ["java\\..*"], |
| 55 | + ["scala\\..*"] |
| 56 | +] |
| 57 | +rewrite.imports.contiguousGroups = no |
| 58 | +importSelectors = singleline # Imports in a single line, like IntelliJ |
| 59 | + |
| 60 | +# Remove redundant braces in string interpolation. |
| 61 | +rewrite.redundantBraces.stringInterpolation = true |
| 62 | +rewrite.redundantBraces.defnBodies = false |
| 63 | +rewrite.redundantBraces.generalExpressions = false |
| 64 | +rewrite.redundantBraces.ifElseExpressions = false |
| 65 | +rewrite.redundantBraces.methodBodies = false |
| 66 | +rewrite.redundantBraces.includeUnitMethods = false |
| 67 | +rewrite.redundantBraces.maxBreaks = 1 |
| 68 | + |
| 69 | +# Remove trailing commas |
| 70 | +rewrite.trailingCommas.style = "never" |
0 commit comments