summaryrefslogtreecommitdiff
path: root/.arc-linters/check-binaries.py
diff options
context:
space:
mode:
Diffstat (limited to '.arc-linters/check-binaries.py')
-rwxr-xr-x.arc-linters/check-binaries.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/.arc-linters/check-binaries.py b/.arc-linters/check-binaries.py
deleted file mode 100755
index 017b89bff0..0000000000
--- a/.arc-linters/check-binaries.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env python3
-
-# A linter to warn when binary files are added to the repository
-
-import sys
-import os
-import json
-
-path = sys.argv[1]
-warnings = []
-if os.path.isfile(path):
- with open(path, 'rb') as f:
- if b'\0' in f.read(8000):
- warning = {
- 'severity': 'warning',
- 'message': 'This file appears to be a binary file; does it really belong in the repository?'
- }
- warnings.append(warning)
-
-print(json.dumps(warnings))