Back to Pixie

Coding style

styleguide/index.md

latest952 B
Original Source

Coding style

  • Code is automatically formatted using linters and checked during CI builds. Static checkers also validate other coding style requirements for our most commonly used languages (C++, Go, Typescript, Python, Shell).

  • We expect all production code to be written in either C++ or Go, with the UI written in Typescript.

C++ Style

C++ code uses Google C++ style guidelines, with some deviations. Refer to C++ Style.

Go Style

Go style is automatically enforced by linters. Refer to Go Style.

Typescript style

Typescript code uses Google Typescript style guidelines, with some deviations. Refer to Typescript Style.

Naming guide

Pixie uses inclusive naming in our source code and all our assets. Refer to Inclusive Naming Guide.