|
1 | 1 | <!-- |
2 | | - - SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors |
3 | | - - SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | + ~ SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors |
| 3 | + ~ SPDX-License-Identifier: GPL-3.0-or-later |
4 | 4 | --> |
5 | 5 | # Agents.md |
6 | 6 |
|
|
161 | 161 |
|
162 | 162 | ## Code Style |
163 | 163 |
|
| 164 | +[//]: # (REUSE-IgnoreStart) |
164 | 165 | - Do not exceed 300 line of code per file. |
165 | 166 | - Line length: **120 characters** |
166 | 167 | - Standard Android Studio formatter with EditorConfig. |
|
170 | 171 | - Every new file must end with exactly one empty trailing line (no more, no less). |
171 | 172 | - Do not add comments, documentation for every function you created instead make it self explanatory as much as possible. |
172 | 173 | - `ktlint_code_style = android_studio`; disabled ktlint rules: `import-ordering`, `no-consecutive-comments`; trailing commas disallowed |
173 | | -- All new files must include an SPDX license header: `SPDX-License-Identifier: GPL-3.0-or-later` |
| 174 | +- All new files must include an SPDX license header: ` SPDX-License-Identifier: GPL-3.0-or-later ` |
174 | 175 | - Translations: only modify `values/strings.xml`; never the translated `values-*/strings.xml` files |
175 | 176 | - Create models, states in different files instead of doing it one single file. |
176 | 177 | - Do not use magic number. |
|
180 | 181 | - Avoid hardcoded strings, colors, dimensions. Use resources. |
181 | 182 | - Run lint, spotbugsGplayDebug, detekt, spotlessKotlinCheck and fix findings inside the files that have been changed. |
182 | 183 |
|
| 184 | +[//]: # (REUSE-IgnoreEnd) |
| 185 | + |
183 | 186 | ## Testing |
184 | 187 |
|
185 | 188 | - **Unit tests**: `app/src/test/` — JUnit 4, Mockito, Robolectric. Uses `includeAndroidResources = true`. |
|
0 commit comments