Skip to content

Commit a43110e

Browse files
authored
Refine coding.mdc
1 parent e4a1803 commit a43110e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.cursor/rules/coding.mdc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,18 @@ sentry-java is the Java and Android SDK for Sentry. This repository contains the
3232
1. Follow existing code style and language
3333
2. Do not modify the API files (e.g. sentry.api) manually, instead run `./gradlew apiDump` to regenerate them
3434
3. Write comprehensive tests
35-
4. Use Kotlin only for test code and Android modules which already use Kotlin, otherwise use Java
36-
5. New features should be opt-in by default, extend `SentryOptions` with getters and setters to enable/disable a new feature
37-
6. Consider backwards compatibility
38-
7. Before implementing a feature or a fix, create a new branch off the `main` branch, the branch name should have the following pattern: `markushi/[feat|fix]/branch-name`
35+
4. New features should always be opt-in by default, extend `SentryOptions` or similar Option classes with getters and setters to enable/disable a new feature
36+
5. Consider backwards compatibility
3937

4038
## Coding rules
4139

4240
1. First think through the problem, read the codebase for relevant files, and propose a plan
4341
2. Before you begin working, check in with me and I will verify the plan
4442
3. Then, begin working on the todo items, marking them as complete as you go
45-
4. Please every step of the way just give me a high level explanation of what changes you made
43+
4. Please do not describe every step of the way and just give me a high level explanation of what changes you made
4644
5. Make every task and code change you do as simple as possible. We want to avoid making any massive or complex changes. Every change should impact as little code as possible. Everything is about simplicity.
4745
6. Once you're done, format the code and regenerate the .api files using the following command `./gradlew spotlessApply apiDump`
48-
7. As a last step, do a git commit
46+
7. As a last step, git stage the relevant files and propose (but not execute) a single git commit command (e.g. `git commit -m "<git commit message>"`)
4947

5048

5149
## Useful Resources

0 commit comments

Comments
 (0)