Skip to content

Allow exclude_files option in the config file to exclude a specific file in a subdirectory #254

Open

Description

@aaronliu0130

Currently, this comment from 2014 in the ProcessConfigOverrides function says:

if we are checking for lint errors in /foo/bar/baz.cc and we found the .cfg file at /foo/CPPLINT.cfg, then the config file's "exclude_files" filter is meant to be checked against "bar" and not "baz" nor "bar/baz.cc".

This undocumented behavior makes no sense to me and would probably confuse people. Opening this issue to see if anyone'd oppose unlimiting this behavior.

Activity

  1. aaronliu0130 commented on Feb 28, 2026

    @aaronliu0130
    MemberAuthor

    To clarify, I'm thinking of making the check against "bar/baz.cc".

  2. added this to the 2.1.0 milestone on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions