Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
- SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: GPL-3.0-or-later
~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: GPL-3.0-or-later
-->
# Agents.md

Expand Down Expand Up @@ -161,6 +161,7 @@ XML:

## Code Style

[//]: # (REUSE-IgnoreStart)
- Do not exceed 300 line of code per file.
- Line length: **120 characters**
- Standard Android Studio formatter with EditorConfig.
Expand All @@ -170,7 +171,7 @@ XML:
- Every new file must end with exactly one empty trailing line (no more, no less).
- Do not add comments, documentation for every function you created instead make it self explanatory as much as possible.
- `ktlint_code_style = android_studio`; disabled ktlint rules: `import-ordering`, `no-consecutive-comments`; trailing commas disallowed
- All new files must include an SPDX license header: `SPDX-License-Identifier: GPL-3.0-or-later`
- All new files must include an SPDX license header: ` SPDX-License-Identifier: GPL-3.0-or-later `
- Translations: only modify `values/strings.xml`; never the translated `values-*/strings.xml` files
- Create models, states in different files instead of doing it one single file.
- Do not use magic number.
Expand All @@ -180,6 +181,8 @@ XML:
- Avoid hardcoded strings, colors, dimensions. Use resources.
- Run lint, spotbugsGplayDebug, detekt, spotlessKotlinCheck and fix findings inside the files that have been changed.

[//]: # (REUSE-IgnoreEnd)

## Testing

- **Unit tests**: `app/src/test/` β€” JUnit 4, Mockito, Robolectric. Uses `includeAndroidResources = true`.
Expand Down
Loading