forked from pinterest/ktlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StandardRuleSetProvider.kt
57 lines (54 loc) · 1.89 KB
/
StandardRuleSetProvider.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package com.pinterest.ktlint.ruleset.standard
import com.pinterest.ktlint.core.RuleSet
import com.pinterest.ktlint.core.RuleSetProvider
public class StandardRuleSetProvider : RuleSetProvider {
// Note: some of these rules may be disabled by default. See the default .editorconfig.
override fun get(): RuleSet = RuleSet(
"standard",
AnnotationRule(),
AnnotationSpacingRule(),
ArgumentListWrappingRule(),
ChainWrappingRule(),
CommentSpacingRule(),
EnumEntryNameCaseRule(),
FilenameRule(),
FinalNewlineRule(),
ImportOrderingRule(),
IndentationRule(),
MaxLineLengthRule(),
ModifierOrderRule(),
MultiLineIfElseRule(),
NoBlankLineBeforeRbraceRule(),
NoBlankLinesInChainedMethodCallsRule(),
NoConsecutiveBlankLinesRule(),
NoEmptyClassBodyRule(),
NoEmptyFirstLineInMethodBlockRule(),
NoLineBreakAfterElseRule(),
NoLineBreakBeforeAssignmentRule(),
NoMultipleSpacesRule(),
NoSemicolonsRule(),
NoTrailingSpacesRule(),
NoUnitReturnRule(),
NoUnusedImportsRule(),
NoWildcardImportsRule(),
PackageNameRule(),
ParameterListWrappingRule(),
SpacingAroundAngleBracketsRule(),
SpacingAroundColonRule(),
SpacingAroundCommaRule(),
SpacingAroundCurlyRule(),
SpacingAroundDotRule(),
SpacingAroundDoubleColonRule(),
SpacingAroundKeywordRule(),
SpacingAroundOperatorsRule(),
SpacingAroundParensRule(),
SpacingAroundRangeOperatorRule(),
SpacingAroundUnaryOperatorRule(),
SpacingBetweenDeclarationsWithAnnotationsRule(),
SpacingBetweenDeclarationsWithCommentsRule(),
StringTemplateRule(),
TrailingCommaOnDeclarationSiteRule(),
TrailingCommaOnCallSiteRule(),
WrappingRule()
)
}