Skip to content

Commit

Permalink
Guidelines: note to add parameter names for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Nov 21, 2024
1 parent 5a5c443 commit 8874a91
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

Collecting design decisions. New and updated code and resources should follow them.

## Kotlin

For function calls, specify names of function parameters when the name of the passed value does not
make it obvious:

```kotlin
// DO
setVisible(true)
doSomething(avoidWork = true)
// AVOID
doSomething(true)
```

## Layout resources

View IDs should be unique across the project to support refactoring using Android Studio.
Expand Down

0 comments on commit 8874a91

Please sign in to comment.