Closed
Bug 1571308
Opened 5 years ago
Closed 5 years ago
Apilint error message should not include `detail`
Categories
(GeckoView :: General, defect, P3)
Tracking
(firefox69 wontfix, firefox70 fixed)
RESOLVED
FIXED
mozilla70
People
(Reporter: agi, Assigned: agi)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
The integration of apilint with mach lint
adds the detail
section to the error message. This is unnecessary as the detail
just contains the name of the method or class that is causing the error, this piece of information is already present in the file/line/column fields.
e.g. this:
/Users/asferro/workspace/mozilla-central/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/RuntimeTelemetry.java
71:25 error Field-only classes should not be final for mocking.: None failures (android-api-lint)
71:25 error Field-only classes need at least one constructor for mocking.: None failures (android-api-lint)
75:29 error Missing field type nullability annotation. Needs one of @Nullable, @NonNull.: field public final String name failures (android-api-lint)
80:29 error Missing field type nullability annotation. Needs one of @Nullable, @NonNull.: field public final long[] values failures (android-api-lint)
104:21 error Method missing threading annotation. Needs one of: @MainThread, @UiThread, @WorkerThread, @BinderThread, @AnyThread.: method public void onTelemetryReceived(@NonNull RuntimeTelemetry.Metric) failures (android-api-lint)
should be:
/Users/asferro/workspace/mozilla-central/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/RuntimeTelemetry.java
71:25 error Field-only classes should not be final for mocking. failures (android-api-lint)
71:25 error Field-only classes need at least one constructor for mocking. failures (android-api-lint)
75:29 error Missing field type nullability annotation. Needs one of @Nullable, @NonNull. failures (android-api-lint)
80:29 error Missing field type nullability annotation. Needs one of @Nullable, @NonNull. failures (android-api-lint)
104:21 error Method missing threading annotation. Needs one of: @MainThread, @UiThread, @WorkerThread, @BinderThread, @AnyThread. failures (android-api-lint)
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Failures in apilint have a rule code so include that in the information from
the lint.
Assignee | ||
Comment 3•5 years ago
|
||
I need to land one patch of the series for another bug.
Keywords: leave-open
Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b587b6fc7ee1 Don't include |detail| in apilint output. r=nalexander
Comment 5•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Keywords: leave-open
Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/56152ebae420 Use error code from apilint. r=nalexander
Comment 7•5 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox70:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Comment 8•5 years ago
|
||
status-firefox69=wontfix because we don't need to uplift this apilint fix to Beta.
Assignee: nobody → agi
status-firefox69:
--- → wontfix
Updated•2 years ago
|
Has Regression Range: --- → yes
Updated•2 years ago
|
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•