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:
okhsunrog 2026-04-12 23:26:36 +03:00
parent ca35183084
commit e2d41dea13
7 changed files with 1065 additions and 284 deletions

14
.editorconfig Normal file
View 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