Commit Graph

9 Commits

Author SHA1 Message Date
mcarare
7cf165fed2 Bug 1964352 - Enable standard:parameter-list-spacing ktlint rule and fix errors. r=geckoview-reviewers,android-reviewers,nalexander
Kotlin style guide: No new line before parameter type.

Differential Revision: https://phabricator.services.mozilla.com/D248505
2025-05-09 13:56:13 +00:00
mcarare
ce734efdf2 Bug 1851774 - Update ktlint to 1.5.0 and disable some new rules. r=android-reviewers,jonalmeida
This also fixes one violation of standard-wrapping rule that needs to be enabled for existing trailing commas rules.

Differential Revision: https://phabricator.services.mozilla.com/D247734
2025-05-06 08:23:07 +00:00
Roger Yang
92a5444b40 Revert "Bug 1875923 - Update max_line_length in editorconfig to match detekt" 2024-01-30 00:25:08 +00:00
Roger Yang
532fdd9549 Revert "Bug 1876419 - Move comment from editorconfig files"
This reverts commit f293b810969921ac6468f75a7915375c0c1cab4f.
2024-01-29 23:09:19 +00:00
Jonathan Almeida
f10e743112 Bug 1876419 - Move comment from editorconfig files 2024-01-26 20:26:39 +00:00
Jonathan Almeida
67e068657b Bug 1875923 - Update max_line_length in editorconfig to match detekt 2024-01-22 23:00:06 +00:00
mcarare
49b31b5bf6 [components] For https://github.com/mozilla-mobile/android-components/issues/12620: Enable trailing commas rule. 2022-09-09 09:25:21 +00:00
Emilio Cobos Álvarez
8ebe3719ee [components] editorconfig: Make sure to specify 4 spaces as kotlin style.
Otherwise editors might use tabs by default for example. Since we
specify `root = true` you can't even override it yourself.
2020-12-03 17:36:34 +00:00
Michael Droettboom
ca4078250e [components] Add an .editorconfig file to fix ktlint
If an .editorconfig file exists in any parent directory of the checkout
directory, ktlint will fail because it uses those settings to determine what
the indentation should be.

This creates an .editorconfig that ktlint will "stop" at, effectively getting
the .editorconfig defaults. It should only be necessary to add settings to this
file if we want to override the defaults.
2018-10-31 11:27:04 +01:00