File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 17
17
settings .DESC_DFLT
18
18
),
19
19
'W%d01' % settings .BASE_FORMAT_ID : (
20
- 'Incoherent interpreter comment and executable permission. '
21
- 'Interpreter: [%s] Exec perm: %s' ,
20
+ 'You have a python file with execution permissions but you don\' t '
21
+ 'have a interpreter magic comment. '
22
+ 'If you really needs a execution permission then add a magic comment '
23
+ '( https://en.wikipedia.org/wiki/Shebang_(Unix) ). '
24
+ 'If you don\' t needs a execution permission then remove it with: '
25
+ 'chmod -x %s' ,
22
26
'incoherent-interpreter-exec-perm' ,
23
27
settings .DESC_DFLT
24
28
),
@@ -84,4 +88,5 @@ def process_tokens(self, tokens):
84
88
if bool (interpreter_content ) != access_x :
85
89
self .add_message (
86
90
'incoherent-interpreter-exec-perm' ,
87
- line = line_num , args = (interpreter_content , access_x ))
91
+ line = line_num , args = (
92
+ os .path .basename (self .linter .current_file )))
You can’t perform that action at this time.
0 commit comments