You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/metadata
Jiewei Qian fd1c03e0be metadata: revise CPE validation
Use the "official" XML schema validation pattern from published CPE
schema.

Add a error message to tell owners that they need to provide at least
one component (other than part) in CPE URN format.

Bug: 378273455
Change-Id: I5ac957f02a0f899d069161cdce54fff499fb35f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6073136
Commit-Queue: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Anne Redulla <aredulla@google.com>
3 months ago
..
fields metadata: revise CPE validation 3 months ago
tests Updating presubmit to check license is a valid spdx identifier. 3 months ago
LICENSE_OWNERS Updating presubmit to check license is a valid spdx identifier. 3 months ago
OWNERS Updating presubmit to check license is a valid spdx identifier. 3 months ago
PRESUBMIT.py
README.md
SECURITY_TEAM_OWNERS Updating presubmit to check license is a valid spdx identifier. 3 months ago
__init__.py
dependency_metadata.py metadata: allow a special "Revision: DEPS" syntax 5 months ago
discover.py
parse.py metadata: add line number reporting 7 months ago
scan.py
validate.py
validation_result.py metadata: add line number reporting 7 months ago

README.md

Validation for Chromium's Third Party Metadata Files

This directory contains the code to validate Chromium third party metadata files, i.e. README.chromium files.

Prerequisites

  1. Have the Chromium source code checked out on disk
  2. Ensure you've run gclient runhooks on your source checkout

Run

metadata/scan.py can be used to search for and validate all Chromium third party metadata files within a repository. For example, if your chromium/src checkout is at ~/my/path/to/chromium/src, run the following command from the root directory of depot_tools:

vpython3 --vpython-spec=.vpython3 metadata/scan.py ~/my/path/to/chromium/src