diff --git a/CPPLINT.cfg b/CPPLINT.cfg new file mode 100644 index 00000000..df82aae5 --- /dev/null +++ b/CPPLINT.cfg @@ -0,0 +1 @@ +filter=-whitespace/braces,-legal/copyright diff --git a/gitignore b/gitignore index 1d5e4a55..1f848be8 100644 --- a/gitignore +++ b/gitignore @@ -20,8 +20,9 @@ tags.lock tags.temp # Persistent undo [._]*.un~ -# Exclude local vimrc +# Exclude local vim configuration .lvimrc +.vim ### YouCompleteMe .ycm_extra_conf.py diff --git a/install.conf.yaml b/install.conf.yaml index 80842dca..5bc9fbae 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -66,6 +66,7 @@ ~/.zsh-syntax-highlighting: ~/.zshenv: ~/.zshrc: + ~/CPPLINT.cfg: - create: - ~/.git-template diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 3f76f0b8..d6e9291a 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -15,4 +15,4 @@ call SetTextWidth(80) setlocal matchpairs+=<:> -let b:ale_fixers = { 'cpp': [ 'clang-format', 'clangtidy' ]} +let b:ale_fixers = { 'cpp': [ 'clang-format', 'clangtidy', 'cpplint' ]}