aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy/licenseck.py
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2016-07-19 12:25:25 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2016-07-21 11:29:04 -0500
commit536314be79ba0ee4a45e3afd027c7bdd4200d95c (patch)
tree2c2c5c65535c41d2c88ecb1450ec06d0f3868e98 /python/tidy/servo_tidy/licenseck.py
parentd28f2b89041e8b36e8423eff432ea3c507f0826f (diff)
downloadservo-536314be79ba0ee4a45e3afd027c7bdd4200d95c.tar.gz
servo-536314be79ba0ee4a45e3afd027c7bdd4200d95c.zip
Added test-tidy for dependent licenses.
Diffstat (limited to 'python/tidy/servo_tidy/licenseck.py')
-rw-r--r--python/tidy/servo_tidy/licenseck.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy/licenseck.py b/python/tidy/servo_tidy/licenseck.py
index 40bdfb8e5d8..03113da507d 100644
--- a/python/tidy/servo_tidy/licenseck.py
+++ b/python/tidy/servo_tidy/licenseck.py
@@ -88,3 +88,38 @@ licenses_toml = [
'license = "MPL-2.0"',
'license = "MIT/Apache-2.0"',
]
+
+# The valid dependency licenses, in the form we'd expect to see them in a Cargo.toml file.
+licenses_dep_toml = [
+ # Licenses that are compatible with Servo's licensing
+ 'license = "Apache-2 / MIT"',
+ 'license = "Apache-2.0 / MIT"',
+ 'license = "Apache-2.0"',
+ 'license = "Apache-2.0/MIT"',
+ 'license = "BSD-2-Clause"',
+ 'license = "BSD-3-Clause"',
+ 'license = "BSD-3-Clause/MIT"',
+ 'license = "CC0-1.0"',
+ 'license = "ISC"',
+ 'license = "MIT / Apache-2.0"',
+ 'license = "MIT OR Apache-2.0"',
+ 'license = "MIT"',
+ 'license = "MIT/Apache-2.0"',
+ 'license = "MPL-2.0"',
+ 'license = "Unlicense/MIT"',
+ 'license = "zlib-acknowledgement"',
+ 'license-file = "LICENSE-MIT"',
+ 'license= "MIT / Apache-2.0"',
+ # Whitelisted crates whose licensing has been checked manually
+ 'name = "device"',
+ 'name = "dylib"',
+ 'name = "ipc-channel"',
+ 'name = "mozjs_sys"',
+ 'name = "azure"',
+ 'name = "freetype"',
+ 'name = "js"',
+ 'name = "servo-freetype-sys"',
+ 'name = "simd"',
+ 'name = "webrender"',
+ 'name = "webrender_traits"',
+]