Servo is a prototype web browser engine written in the Rust language. It is currently developed on 64-bit macOS, 64-bit Linux, 64-bit Windows, and Android.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

139 lines
3.8 KiB

  1. [configs]
  2. skip-check-length = false
  3. skip-check-licenses = false
  4. check-alphabetical-order = true
  5. check-ordered-json-keys = [
  6. "./resources/prefs.json",
  7. ]
  8. lint-scripts = [
  9. "./python/servo/lints/wpt_lint.py",
  10. ]
  11. # Packages which we avoid using in Servo.
  12. # For each blocked package, we can list the exceptions,
  13. # which are packages allowed to use the blocked package.
  14. [blocked-packages]
  15. num = []
  16. rand = [
  17. "hashglobe", # Only used in tests
  18. "ipc-channel",
  19. "phf_generator",
  20. "quickcheck", # Only used in tests
  21. "servo_rand",
  22. "tempfile",
  23. "uuid",
  24. "tungstenite",
  25. "ws",
  26. ]
  27. [ignore]
  28. # Ignored packages with duplicated versions
  29. packages = [
  30. "arrayvec",
  31. "base64",
  32. "cloudabi",
  33. "cocoa",
  34. "gleam",
  35. "libloading",
  36. "lock_api",
  37. "metal",
  38. "miniz_oxide",
  39. "num-rational",
  40. "parking_lot",
  41. "parking_lot_core",
  42. "ron",
  43. "wayland-sys",
  44. # https://github.com/servo/servo/issues/26933
  45. "futures",
  46. "tokio-openssl",
  47. "tokio",
  48. "http",
  49. "bytes",
  50. # https://github.com/servo/servo/pull/23288#issuecomment-494687746
  51. "gl_generator",
  52. # Lots of crates to update.
  53. "smallvec",
  54. # https://github.com/servo/servo/issues/24421
  55. "proc-macro2",
  56. "quote",
  57. "unicode-xid",
  58. # https://github.com/servo/servo/pull/25518
  59. "core-foundation",
  60. "core-foundation-sys",
  61. "core-graphics",
  62. "lyon_geom",
  63. # Duplicated by webrender debugger via ws
  64. "digest",
  65. "generic-array",
  66. "opaque-debug",
  67. "sha-1",
  68. "block-buffer",
  69. ]
  70. # Files that are ignored for all tidy and lint checks.
  71. files = [
  72. "./components/net/tests/parsable_mime/text",
  73. # Mako does not lend itself easily to splitting long lines
  74. "./components/style/properties/helpers/animated_properties.mako.rs",
  75. "./components/style/properties/shorthands/text.mako.rs",
  76. # Long regexes are long.
  77. "./components/style/gecko/regen_atoms.py",
  78. # Helper macro where actually a pseudo-element per line makes sense.
  79. "./components/style/gecko/non_ts_pseudo_class_list.rs",
  80. "./resources/hsts_preload.json",
  81. "./tests/wpt/metadata/MANIFEST.json",
  82. "./tests/wpt/mozilla/meta/MANIFEST.json",
  83. # Long encoded string
  84. "./tests/wpt/mozilla/tests/mozilla/resources/brotli.py",
  85. "./tests/wpt/webgl/meta/MANIFEST.json",
  86. "./support/android/openssl.sh",
  87. # Upstream code from Khronos/WebGL uses tabs for indentation
  88. "./tests/wpt/webgl/tests",
  89. # Our import script is not currently respecting the lint.
  90. "./tests/wpt/webgl/tools/import-conformance-tests.py",
  91. # Ignore those files since the issues reported are on purpose
  92. "./tests/html/bad-line-ends.html",
  93. "./tests/wpt/mozilla/tests/css/fonts",
  94. "./tests/wpt/mozilla/tests/css/pre_with_tab.html",
  95. "./tests/wpt/mozilla/tests/mozilla/textarea_placeholder.html",
  96. # Python 3 syntax causes "E901 SyntaxError" when flake8 runs in Python 2
  97. "./etc/taskcluster/decision_task.py",
  98. "./etc/taskcluster/decisionlib.py",
  99. "./tests/wpt/reftests-report/gen.py",
  100. "./components/style/properties/build.py",
  101. ]
  102. # Directories that are ignored for the non-WPT tidy check.
  103. directories = [
  104. # Upstream
  105. "./support/android/apk",
  106. "./support/hololens",
  107. "./support/linux/gstreamer",
  108. "./support/magicleap/Servo2D/.vscode",
  109. "./support/magicleap/Servo2D/code/inc.gen",
  110. "./support/magicleap/Servo2D/code/src.gen",
  111. "./support/magicleap/Servo2D/pipeline",
  112. "./tests/wpt/harness",
  113. "./tests/wpt/update",
  114. "./tests/wpt/web-platform-tests",
  115. "./tests/wpt/mozilla/tests/mozilla/referrer-policy",
  116. "./tests/wpt/mozilla/tests/webgl",
  117. "./tests/wpt/sync",
  118. "./python/tidy/servo_tidy_tests",
  119. "./components/script/dom/bindings/codegen/parser",
  120. "./components/script/dom/bindings/codegen/ply",
  121. "./python/_virtualenv*",
  122. "./components/hashglobe/src",
  123. # Generated and upstream code combined with our own. Could use cleanup
  124. "./target",
  125. ]
  126. # Directories that are checked for correct file extension
  127. [check_ext]
  128. # directory, list of expected file extensions
  129. "./components/script/dom/webidls" = [".webidl"]