Skip to content

Commit

Permalink
WRONG_DECLARATIONS_ORDER conflicts with ENUM_SEPARATED (#1195)
Browse files Browse the repository at this point in the history
### What's done:
* fixed order of rules
closes #1078
  • Loading branch information
Cheshiriks authored Jan 28, 2022
1 parent e170e33 commit 297417a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ class DiktatRuleSetProvider(private var diktatConfigFile: String = DIKTAT_ANALYS
::BracesInConditionalsAndLoopsRule,
::EmptyBlock,
::AvoidEmptyPrimaryConstructor,
::EnumsSeparated,
::TopLevelOrderRule,
::SingleLineStatementsRule,
::MultipleModifiersSequence,
Expand Down Expand Up @@ -187,6 +186,7 @@ class DiktatRuleSetProvider(private var diktatConfigFile: String = DIKTAT_ANALYS
::NestedFunctionBlock,
::AnnotationNewLineRule,
::SortRule,
::EnumsSeparated,
::StringConcatenationRule,
::StringTemplateFormatRule,
::AccurateCalculationsRule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ enum class IssueType2 {
companion object
}

enum class IssueType3 {
A,
B,
C,
D,
;
}

class Foo {
/**
* @implNote lorem ipsum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ enum class IssueType2 {
fun foo(bar: Int) = bar
}

enum class IssueType3 {
A,
C,
B,
D,
;
}

class Foo {
/**
* @implNote lorem ipsum
Expand Down

0 comments on commit 297417a

Please sign in to comment.