• Wez's avatar
    Fix OWNERS canned check to avoid duplicate output. · 66c50ea1
    Wez authored
    1. Update PanProjectChecks() to supply source_filter to CheckOwners().
       This prevents files under e.g. third_party/WebKit being checked both
       by the top-level and sub-directory PRESUBMIT rules.
    2. Fix CheckOwners() to list missing-OWNERS only for the sub-directory
       it is invoked on, rather than the whole CL. This prevents files under
       sub-directories with their own PRESUBMIT rule, within the same repo,
       from causing OWNERS to be checked for files outside that directory.
    
    BUG=
    
    Change-Id: I9bd5677a69efe9c78b4174a917780d6688991a38
    Reviewed-on: https://chromium-review.googlesource.com/426003
    Commit-Queue: James Weatherall <wez@chromium.org>
    Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
    66c50ea1
presubmit_unittest.py 99.5 KB