Skip to content

Commit 6ab533c

Browse files
committed
Drop shebang matches with file extension check
1 parent a9f5490 commit 6ab533c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

‎igcommit/file_checks.py‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,6 @@ def get_exe_problems(self):
103103
yieldSeverity.WARNING, 'redundant file extension'
104104
return
105105

106-
# If the file has an extension we don't know about, we test if
107-
# the executable matches with any extension we know. If so, it
108-
# should probably now have this extension.
109-
forkey, patterninself.file_extensions.items():
110-
ifpattern.search(exe):
111-
yield (
112-
Severity.WARNING,
113-
'shebang executable{} matches with file extension ".{}"'
114-
.format(exe, key)
115-
)
116-
117106

118107
classCheckSymlink(CommittedFileCheck):
119108
"""Special check for symlinks"""

0 commit comments

Comments
(0)