google / styleguide

Style guides for Google-originated open-source projects
https://google.github.io/styleguide/
Apache License 2.0
37.01k stars 13.28k forks source link

The base_name should fully match the exclude_files pattern #778

Open kenkangxgwe opened 1 year ago

kenkangxgwe commented 1 year ago

Previously, a path in the same directory as the CPPLINT.cfg is excluded if one of its prefixes matches the pattern, which leads some confusing cases like "exclude_files=l" excluding "libs". With this change we should change the pattern to "exclude_files=l.*" to achieve the same result.