Content-Length: 259061 | pFad | http://github.com/MegEngine/flatbuffers/blob/master/Formatters.md

80 flatbuffers/Formatters.md at master · MegEngine/flatbuffers · GitHub
Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.1 KB

Formatters.md

File metadata and controls

22 lines (12 loc) · 1.1 KB

Format Guidelines

If you are interesting in contributing to the flatbuffers project, please take a second to read this document. Each language has it's own set of rules, that are defined in their respective formatter/linter documents.

Notes

  • Run the linter on the language you are working on before making a Pull Request.
  • DONT format/lint the generated code.

Languages

C++

C++ uses clang-format as it's formatter. Run the following script sh scripts/clang-format-git.sh, and it should style the C++ code according to google style guide.

Swift

Swift uses swiftformat as it's formatter. Take a look at how to install here. Run the following command swiftformat --config swift.swiftformat . in the root directory of the project

Typescript

Typescript uses eslint as it's linter. Take a look at how to install here. Run the following command eslint ts/** --ext .ts in the root directory of the project









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/MegEngine/flatbuffers/blob/master/Formatters.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy