Hey,
I just noticed that this code passes cpplint 2.0.2:
I would expect this to be disallowed, as stated here:
All of a project's header files should be listed as descendants of the project's source directory without use of UNIX directory aliases . (the current directory) or .. (the parent directory).
Full test setup:
I have the file foo/bar.cpp with contents:
// Copyright 2026 Acme Corp
#include "../include/foo/bar.h"
#include "../private/./test.h"
and the header foo/bar.h which is just an empty file, which needs to exist for the linter to run CheckHeaderFileIncluded.
I then run cpplint:
$ cpplint.py foo/bar.cpp
Done processing foo/bar.cpp
Hey,
I just noticed that this code passes cpplint 2.0.2:
I would expect this to be disallowed, as stated here:
Full test setup:
I have the file
foo/bar.cppwith contents:and the header
foo/bar.hwhich is just an empty file, which needs to exist for the linter to runCheckHeaderFileIncluded.I then run cpplint: