Open iyongliang opened 7 years ago
I found a question about this. the "repository" option can detect .git directory, and the default path is from second level directory. If I have follow files:
Example - src/ - hello.h - hello.cpp - .git/
and in hello.h file,
# ifndef EXAMPLE_SRC_HELLO_H_ # define EXAMPLE_SRC_HELLO_H_ ... # endif // EXAMPLE_SRC_HELLO_H_
cpplint will waring as: header guard has wrong style.
this can fix by:
python cpplint.py --repository=`cd ..;pwd` src/hello.h
But, when I configure CPPLINT.cfg file, set repository, I found it's a invalid option. and set
root=`cd ..;pwd`
is not working.
So, can you fix it let root support cd ..;pwd or add repository to CPPLINT.cfg.
cd ..;pwd
THX!
I just ran into this
I have a git repo @ ~/ for dot files, and it is detected, I would imagine checking if the CD has a .git repo it should be used first
I found a question about this. the "repository" option can detect .git directory, and the default path is from second level directory. If I have follow files:
and in hello.h file,
cpplint will waring as: header guard has wrong style.
this can fix by:
But, when I configure CPPLINT.cfg file, set repository, I found it's a invalid option. and set
is not working.
So, can you fix it let root support
cd ..;pwd
or add repository to CPPLINT.cfg.THX!