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
Anne Redulla 4dac5d6b4b [ssci] Return relative license filepath instead of absolute
This CL updates the third party metadata field License File, so that
missing license filepaths are reported as relative to the repo root,
instead of the absolute filepath.


Bug: b:277147404
Change-Id: I16ac23d86b0ef12ab6020d8e81525965489888ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4876394
Auto-Submit: Anne Redulla <aredulla@google.com>
Reviewed-by: Rachael Newitt <renewitt@google.com>
Commit-Queue: Anne Redulla <aredulla@google.com>
2 years ago
..
fields [ssci] Return relative license filepath instead of absolute 2 years ago
tests [ssci] Support alias for Shipped field 2 years ago
OWNERS [ssci] Defined basic metadata fields 2 years ago
PRESUBMIT.py [ssci] PEP8 formatting for metadata directory 2 years ago
README.md [ssci] Script to run validation on all metadata files 2 years ago
__init__.py Define main metadata validation functions 2 years ago
dependency_metadata.py [ssci] Support alias for Shipped field 2 years ago
discover.py [ssci] PEP8 formatting for metadata directory 2 years ago
parse.py [ssci] PEP8 formatting for metadata directory 2 years ago
scan.py [ssci] PEP8 formatting for metadata directory 2 years ago
validate.py switch to 4 space indent 2 years ago
validation_result.py switch to 4 space indent 2 years 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