mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Fix tidy json alphabetical order check
This commit is contained in:
parent
7eb4d7a9a7
commit
63a4bf74b0
2 changed files with 1 additions and 2 deletions
|
@ -734,7 +734,7 @@ def check_for_alphabetical_sorted_json_keys(key_value_pairs):
|
||||||
def check_json_requirements(filename):
|
def check_json_requirements(filename):
|
||||||
def check_fn(key_value_pairs):
|
def check_fn(key_value_pairs):
|
||||||
check_for_possible_duplicate_json_keys(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)
|
check_for_alphabetical_sorted_json_keys(key_value_pairs)
|
||||||
return check_fn
|
return check_fn
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ skip-check-length = false
|
||||||
skip-check-licenses = false
|
skip-check-licenses = false
|
||||||
check-ordered-json-keys = [
|
check-ordered-json-keys = [
|
||||||
"./resources/prefs.json",
|
"./resources/prefs.json",
|
||||||
"./resources/package-prefs.json",
|
|
||||||
]
|
]
|
||||||
lint-scripts = [
|
lint-scripts = [
|
||||||
"./python/servo/lints/wpt_lint.py",
|
"./python/servo/lints/wpt_lint.py",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue