1
0
Fork 0
mirror of https://gitlab.com/mfocko/LeetCode.git synced 2024-09-07 20:16:57 +02:00

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:
Matej Focko 2024-05-17 18:08:08 +02:00
parent a282ec40a7
commit 583767008c
Signed by: mfocko
GPG key ID: 7C47D46246790496
2 changed files with 9 additions and 0 deletions

View file

@ -136,3 +136,9 @@ csharp_preserve_single_line_blocks = true
[*.vb]
# 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
###############################
# Kotlin Coding Conventions #
###############################
[*.{kt,kts}]
ktlint_standard_filename = disabled

View file

@ -28,6 +28,9 @@ repos:
- id: pretty-format-java
files: \.java$
args: [--autofix]
- id: pretty-format-kotlin
files: \.kt$
args: [--autofix]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.15.0
hooks: