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
Jordan b5eb54d5c1 Updating presubmit to check license is a valid spdx identifier.
Further details are available in https://docs.google.com/document/d/1x4GLly7KJ2xmlJRvsswJlmVSLLjBjk5NOxWZ-Dryg_A

Bug: 358504615
Change-Id: I76997454140ee63aea6b6f492669800efce271be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6021876
Reviewed-by: Joey Scarr <jsca@google.com>
Commit-Queue: Jordan Brown <rop@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Reviewed-by: Rachael Newitt <renewitt@google.com>
9 months ago
..
fields Updating presubmit to check license is a valid spdx identifier. 9 months ago
tests Updating presubmit to check license is a valid spdx identifier. 9 months ago
LICENSE_OWNERS Updating presubmit to check license is a valid spdx identifier. 9 months ago
OWNERS Updating presubmit to check license is a valid spdx identifier. 9 months ago
PRESUBMIT.py [ssci] PEP8 formatting for metadata directory 2 years ago
README.md
SECURITY_TEAM_OWNERS Updating presubmit to check license is a valid spdx identifier. 9 months ago
__init__.py
dependency_metadata.py metadata: allow a special "Revision: DEPS" syntax 10 months ago
discover.py metadata: sort discovered files and validation messages 1 year ago
parse.py metadata: add line number reporting 1 year ago
scan.py metadata: sort result summary 1 year ago
validate.py metadata: sort discovered files and validation messages 1 year ago
validation_result.py metadata: add line number reporting 1 year 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