mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Add pre-commit
This commit is contained in:
parent
379559c076
commit
3bf382a6b9
4 changed files with 22 additions and 4 deletions
20
.pre-commit-config.yaml
Normal file
20
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: check-xml
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||
rev: v2.12.0
|
||||
hooks:
|
||||
- id: pretty-format-kotlin
|
||||
args: [ --autofix, --ktlint-version=1.7.1 ]
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-debug-enabled
|
||||
name: Check debug enabled
|
||||
entry: val DEBUG = true
|
||||
language: pygrep
|
||||
files: '.+\.kt'
|
||||
|
|
@ -89,9 +89,7 @@ val unspecified_scheme =
|
|||
@Composable
|
||||
fun DolphinTheme(
|
||||
darkTheme: Boolean = isSystemInDarkTheme(),
|
||||
content:
|
||||
@Composable()
|
||||
() -> Unit,
|
||||
content: @Composable () -> Unit,
|
||||
) {
|
||||
val colorScheme =
|
||||
when {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue