getsentry / getsentry/sentry-java

Add custom lint checks

Offen
#2,685 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Android Improvement repository maintenance
Vorherrschende Sprache
Kotlin
Sterne
1.4k
Forks
478
Ø Merge
2 T. 23 Std.
Gemergte PRs (30 T.)
67

Beschreibung

### 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.