aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUK992 <urbankrajnc92@gmail.com>2016-12-27 19:29:06 +0100
committerUK992 <urbankrajnc92@gmail.com>2016-12-29 19:18:59 +0100
commit63a4bf74b0c19b71a2e61084c52bdbfcdd9ee6ef (patch)
tree1694842be35fbd36f299fba0f783062da67568d9
parent7eb4d7a9a7f519792754ca4f1847511d44d30f09 (diff)
downloadservo-63a4bf74b0c19b71a2e61084c52bdbfcdd9ee6ef.tar.gz
servo-63a4bf74b0c19b71a2e61084c52bdbfcdd9ee6ef.zip
Fix tidy json alphabetical order check
-rw-r--r--python/tidy/servo_tidy/tidy.py2
-rw-r--r--servo-tidy.toml1
2 files changed, 1 insertions, 2 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index cae431205f8..2528ac88642 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -734,7 +734,7 @@ def check_for_alphabetical_sorted_json_keys(key_value_pairs):
def check_json_requirements(filename):
def check_fn(key_value_pairs):
check_for_possible_duplicate_json_keys(key_value_pairs)
- if filename in config["check-ordered-json-keys"]:
+ if filename in normilize_paths(config["check-ordered-json-keys"]):
check_for_alphabetical_sorted_json_keys(key_value_pairs)
return check_fn
diff --git a/servo-tidy.toml b/servo-tidy.toml
index c5d64c6f30b..3659ba6c9bd 100644
--- a/servo-tidy.toml
+++ b/servo-tidy.toml
@@ -3,7 +3,6 @@ skip-check-length = false
skip-check-licenses = false
check-ordered-json-keys = [
"./resources/prefs.json",
- "./resources/package-prefs.json",
]
lint-scripts = [
"./python/servo/lints/wpt_lint.py",