Source code
Revision control
Copy as Markdown
Other Tools
Spotless
========
for Gradle and Android.
In our current configuration, Spotless includes the
which formats all our Java code using the Google Java coding style guidelines,
our Kotlin code using the official Kotlin coding convention and Android Kotlin
Style Guide.
Run Locally
-----------
The mozlint integration of spotless can be run using mach:
.. parsed-literal::
$ mach lint --linter android-format
Alternatively, omit the ``--linter android-format`` and run all configured linters, which will include
spotless.
Autofix
-------
The spotless linter provides a ``--fix`` option.