lmntal / slim

slim LMNtal implementation
Other
18 stars 5 forks source link

LinterとFormatterの導入 #333

Open QRWells opened 7 months ago

QRWells commented 7 months ago

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

Example

https://github.com/lmntal/slim/blob/modernization/.clang-format

関連Issue

312

QRWells commented 7 months ago

To be discussed