-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Motivation
チームで開発においては、ソースコードのコーディングスタイルを統一したほうがいいです。
それをLinterとFormatterに任せば開発効率を向上できると思います。
そこで、具体的なスタイル(仕様)を決めたいと思います。
Linter
clang-tidyはルートディレクトリにある.clang-tidyファイルによってソースコードのチェックを行います。
Reference
https://clang.llvm.org/extra/clang-tidy/
Example
https://github.com/lmntal/slim/blob/modernization/.clang-tidy
Formatter
clang-formatはルートディレクトリにある.clang-formatファイルによってソースコードをフォマードできます。
Reference
https://clang.llvm.org/docs/ClangFormat.html