chore(kt): add Kotlin formatting
+ add a rule in ‹.editorconfig› for ignoring the filename requirements imposed by the ‹KTLint› Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
a282ec40a7
commit
583767008c
2 changed files with 9 additions and 0 deletions
|
@ -136,3 +136,9 @@ csharp_preserve_single_line_blocks = true
|
||||||
[*.vb]
|
[*.vb]
|
||||||
# Modifier preferences
|
# Modifier preferences
|
||||||
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
|
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
|
||||||
|
|
||||||
|
###############################
|
||||||
|
# Kotlin Coding Conventions #
|
||||||
|
###############################
|
||||||
|
[*.{kt,kts}]
|
||||||
|
ktlint_standard_filename = disabled
|
||||||
|
|
|
@ -28,6 +28,9 @@ repos:
|
||||||
- id: pretty-format-java
|
- id: pretty-format-java
|
||||||
files: \.java$
|
files: \.java$
|
||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
|
- id: pretty-format-kotlin
|
||||||
|
files: \.kt$
|
||||||
|
args: [--autofix]
|
||||||
- repo: https://github.com/commitizen-tools/commitizen
|
- repo: https://github.com/commitizen-tools/commitizen
|
||||||
rev: v3.15.0
|
rev: v3.15.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in a new issue