getsentry / getsentry/sentry-java

Add custom lint checks

Open
#2,685 1 comment 0 reactions 0 assignees View on GitHub
Android Improvement repository maintenance
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
67

Description

### Description

From the top of my head we could automatically detect the following potential problem that we point out in the PRs all the time:
* Using `withScope` instead of `configureScope`
* Adding `final` keywords everywhere (parameters, properties, etc.)
* Adding @Nullable/@NonNull annotation everywhere (parameters, properties, etc.)
* Catching `Throwable` instead of `Exception`, see #1806

There's probably more, so keep updating this issue when you got something in mind.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.