Enable some of the disabled new rules after ktlint 1.5.0 upgrade.
Categories
(Firefox for Android :: General, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | fixed |
People
(Reporter: mcarare, Assigned: mcarare)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][group6] )
Attachments
(10 files, 1 obsolete file)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
We recently upgraded to ktlint version 1.5.0, which introduced some new linting rules. Due to the potential for widespread changes, we initially disabled these new rules in our .editorconfig files.
This issue tracks the work to review and enable a subset of the previously disabled ktlint rules.
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Kotlin style guide: Consistent spacing around colon.
| Assignee | ||
Comment 2•1 year ago
|
||
Kotlin style guide: No new line before parameter type.
| Assignee | ||
Comment 3•1 year ago
|
||
Kotlin style guide: Consistent spacing in try { .. } catch { .. } finally { .. }.
| Assignee | ||
Comment 4•1 year ago
|
||
Kotlin style guide: Constant names use UPPER_SNAKE_CASE, Non-constant names are written in camelCase.
| Assignee | ||
Comment 5•1 year ago
|
||
Also disable the rule for Composables.
| Assignee | ||
Comment 6•1 year ago
|
||
Kotlin style guide: No newline expected before parameter.
| Assignee | ||
Comment 7•1 year ago
|
||
Kotlin style guide: No empty parentheses are needed before trailing lambda.
| Assignee | ||
Comment 8•1 year ago
|
||
Kotlin style guide:
Braces are not required for if expressions which have no more than one else branch and which fit on a single line.
When braces are kept for better readability, block should be placed after a new line.
| Assignee | ||
Comment 9•1 year ago
|
||
Kotlin style guide: Wildcard imports (of any type) are not allowed.
Also remove exception from detekt for java.util package.
| Assignee | ||
Comment 10•1 year ago
|
||
Replace single line block comments with EOL comments
| Assignee | ||
Comment 11•1 year ago
|
||
Also remove extra blank lines in editorconfig files.
Updated•1 year ago
|
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
Comment 14•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e7664711c1f7
https://hg.mozilla.org/mozilla-central/rev/b703012d6a24
https://hg.mozilla.org/mozilla-central/rev/356d1ddfca4d
https://hg.mozilla.org/mozilla-central/rev/e0d52ca653cb
https://hg.mozilla.org/mozilla-central/rev/369aea30d300
https://hg.mozilla.org/mozilla-central/rev/e69ea3203ec1
https://hg.mozilla.org/mozilla-central/rev/653c42a0da90
https://hg.mozilla.org/mozilla-central/rev/dce5415cb092
https://hg.mozilla.org/mozilla-central/rev/8c17555e31e2
https://hg.mozilla.org/mozilla-central/rev/ca73b3cb2304
Updated•1 year ago
|
Description
•