AtomLinter / linter-cpplint

Linter plugin for c++, using cpplint
https://atom.io/packages/linter-cpplint
MIT License
6 stars 5 forks source link

False "build/header_guard" positive due to mismatch in project root directory #20

Closed neumannrf closed 8 years ago

neumannrf commented 9 years ago

My include files are placed in the include/ folder, therefore, according to cpplint my header guard for include/main.h should be INCLUDE_MAINH. If I choose any other string for the header guard and run cpplint via the command line on that file, I get a warning telling me that it should be INCLUDE_MAINH.

However, when editing the file within Atom, the linter-cpplint package gives me a warning as if my main.h was in some obscure tmp/ folder I have never heard of. screenshot from 2015-07-15 15 02 41

Arcanemagus commented 8 years ago

Looks like this was filed before the rewrite, marking as closed as it should be fixed right now since the plugin no longer uses temporary files. Please reopen if you are still seeing issues.