Skip to content

Set modifier order based on Kotlin coding conventions#3056

Merged
schalkms merged 1 commit intomasterfrom
3flex-patch-1
Sep 7, 2020
Merged

Set modifier order based on Kotlin coding conventions#3056
schalkms merged 1 commit intomasterfrom
3flex-patch-1

Conversation

@3flex
Copy link
Member

@3flex 3flex commented Sep 7, 2020

https://kotlinlang.org/docs/reference/coding-conventions.html#modifiers

If a declaration has multiple modifiers, always put them in the following order:

public / protected / private / internal
expect / actual
final / open / abstract / sealed / const
external
override
lateinit
tailrec
vararg
suspend
inner
enum / annotation / fun // as a modifier in `fun interface`
companion
inline
infix
operator
data

@schalkms schalkms merged commit 3e2be07 into master Sep 7, 2020
@schalkms schalkms deleted the 3flex-patch-1 branch September 7, 2020 10:47
@arturbosch arturbosch added this to the 1.13.0 milestone Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments