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)
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.
Assignee | ||
Comment 2•10 months ago
|
||
Updated•10 months ago
|
Severity: -- → N/A
Priority: -- → P1
Comment 3•10 months ago
|
||
Should just be @file:Suppress("ktlint:standard:no-wildcard-imports")
at the top of the file, no?
Comment 4•10 months ago
|
||
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)
Comment 5•10 months ago
|
||
Also, the line and column numbers being reported don't make any sense at all.
Updated•10 months ago
|
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 | ||
Comment 6•10 months ago
|
||
Updated•10 months ago
|
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
Assignee | ||
Updated•10 months ago
|
Flags: needinfo?(royang)
Comment 8•10 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
status-firefox128:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Comment hidden (Intermittent Failures Robot) |
You need to log in
before you can comment on or make changes to this bug.
Description
•