summaryrefslogtreecommitdiffstats
path: root/comm/tools/lint/file-perm.yml
diff options
context:
space:
mode:
Diffstat (limited to 'comm/tools/lint/file-perm.yml')
-rw-r--r--comm/tools/lint/file-perm.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/comm/tools/lint/file-perm.yml b/comm/tools/lint/file-perm.yml
new file mode 100644
index 0000000000..aa20787d14
--- /dev/null
+++ b/comm/tools/lint/file-perm.yml
@@ -0,0 +1,55 @@
+---
+file-perm:
+ description: File permission check
+ include:
+ - comm/
+ extensions:
+ - .build
+ - .c
+ - .cc
+ - .cpp
+ - .flac
+ - .h
+ - .html
+ - .idl
+ - .js
+ - .jsm
+ - .jsx
+ - .m
+ - .md
+ - .m4s
+ - .mjs
+ - .mm
+ - .mozbuild
+ - .mp4
+ - .png
+ - .rs
+ - .rst
+ - .svg
+ - .ttf
+ - .wasm
+ - .webidl
+ - .xhtml
+ - .xml
+ - .xul
+ - .yml
+ support-files:
+ - 'tools/lint/file-perm/**'
+ type: external
+ payload: commlint:lint_wrapper
+ wraps: file-perm:lint
+
+maybe-shebang-file-perm:
+ description: "File permission check for files that might have `#!` header."
+ include:
+ - .
+ allow-shebang: true
+ extensions:
+ - .js
+ - .py
+ - .sh
+ support-files:
+ - 'tools/lint/file-perm/**'
+ type: external
+ payload: commlint:lint_wrapper
+ wraps: file-perm:lint