mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-04-28 06:31:27 +00:00
style: add clang-format, ktlint, editorconfig and format all code
- Add .editorconfig with ktlint config (disable wildcard-import rule, allow PascalCase for @Composable functions) - Add kmod/.clang-format from upstream kernel tree - Run clang-format on vpnhide_kmod.c (kernel coding style) - Run ktlint --format on all Kotlin files (lsposed + test-app)
This commit is contained in:
parent
ca35183084
commit
e2d41dea13
7 changed files with 1065 additions and 284 deletions
14
.editorconfig
Normal file
14
.editorconfig
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.kt]
|
||||
# Compose @Composable functions use PascalCase by convention
|
||||
ktlint_function_naming_ignore_when_annotated_with = Composable
|
||||
# Wildcard imports are idiomatic for Compose (androidx.compose.*)
|
||||
ktlint_standard_no-wildcard-imports = disabled
|
||||
Loading…
Add table
Add a link
Reference in a new issue