Skip to main content

Module formatters

Module formatters 

Source
Expand description

Language-specific formatter implementations.

Re-exports§

pub use cpp::CppFormatter;
pub use csharp::CSharpFormatter;
pub use dart::DartFormatter;
pub use go::GoFormatter;
pub use java::JavaFormatter;
pub use kotlin::KotlinFormatter;
pub use lua::LuaFormatter;
pub use php::PhpFormatter;
pub use python::PythonFormatter;
pub use ruby::RubyFormatter;
pub use rust::RustFormatter;
pub use scala::ScalaFormatter;
pub use shell::ShellFormatter;
pub use swift::SwiftFormatter;
pub use traits::Formatter;
pub use typescript::TypeScriptFormatter;

Modules§

cpp
C/C++ language formatter using clang-format, clang-tidy –fix, and cpplint fixer.
csharp
C# language formatter using dotnet format.
dart
Dart language formatter using dart format.
go
Go language formatter using gofmt.
java
Java language formatter using clang-format.
kotlin
Kotlin language formatter using ktlint.
lua
Lua language formatter using stylua.
php
PHP language formatter using php-cs-fixer.
python
Python language formatter using ruff.
ruby
Ruby language formatter using RuboCop.
rust
Rust language formatter using rustfmt.
scala
Scala language formatter using scalafmt.
shell
Shell/Bash language formatter using shfmt.
swift
Swift language formatter using swift-format.
traits
Formatter trait definition for language-specific formatters.
typescript
TypeScript/JavaScript language formatter using prettier.