This document describes the command-line interface to the FIDL linter.
For more information about FIDL's overall purpose, goals, and requirements, see Overview.
The FIDL linter is a command line program that processes one or more FIDL files, and prints warnings about content that compiles (technically valid FIDL), but appears to violate rules from the FIDL Style Rubric. Readability is important, and style is a component of that, but the FIDL Rubric also defines rules that help ensure the FIDL API does not include things that are known to hamper cross-language portability.
Fuchsia includes the
fx lint command that automatically selects and runs the
appropriate code linter for each of a set of specified files.
fx lint bundles
the files with a
.fidl extension, and passes all of them, together, to the FIDL
fx lint is the recommended way to invoke the FIDL linter, and ideally should be
run before uploading new FIDL libraries or changes to existing FIDL. Without any
fx lint will run all available linters on all files in your most
To review other available options, run:
fx lint --help
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-03-12.