Closed Bug 1899671 Opened 10 months ago Closed 10 months ago

Update wildcard import in test files so it doesn't trigger ktlint error

Categories

(GeckoView :: General, task, P1)

All
Android
task

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: royang, Assigned: royang)

Details

Attachments

(2 files)

This was found when updating file with this import and it triggered the ktlint error.

The ktlint comment is not working. Investigate how to disable ktlint error for similar imports in test files.

The review is here

Attached file Lint error.txt
Severity: -- → N/A
Priority: -- → P1

Should just be @file:Suppress("ktlint:standard:no-wildcard-imports") at the top of the file, no?

Adding that just gives a new error:

Step 'ktlint' found problem in 'src/androidTest/java/org/mozilla/geckoview/test/GeckoSessionTestRuleTest.kt':
Error on line: 1971, column: 54
rule: standard:curly-spacing
Unexpected newline before "{"

Do we know why this only started failing now all of a sudden? This is causing a lot of pain for me at the moment as it can break gradle-dependencies runs too.

Flags: needinfo?(royang)

Also, the line and column numbers being reported don't make any sense at all.

Summary: Update wildcare import in test files so it doesn't trigger ktlint error → Update wildcard import in test files so it doesn't trigger ktlint error
Assignee: nobody → royang
Status: NEW → ASSIGNED
Pushed by rvandermeulen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3cefcfbb3ba3 Add no wildcard imports suppression to GeckoSessionTestRuleTest. r=RyanVM
Flags: needinfo?(royang)
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: