Skip to content

LinterとFormatterの導入 #333

@QRWells

Description

@QRWells

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions