Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gitlint
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antti Tanhuanpää
gitlint
Commits
657888e5
Commit
657888e5
authored
Mar 08, 2017
by
Antti Tanhuanpää
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip removed files
parent
6a48cdf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gitlint
gitlint
+5
-1
No files found.
gitlint
View file @
657888e5
#!/usr/bin/env python3
from
os
import
path
import
shlex
import
subprocess
import
sys
...
...
@@ -27,10 +28,13 @@ def get_linter(filename):
def
lint
(
filename
,
require_linter
=
False
):
if
not
path
.
exists
(
filename
):
return
True
try
:
linter_args
=
get_linter
(
filename
)
except
NoLinterFound
:
print
(
'No
t
linter found for'
,
filename
,
file
=
sys
.
stderr
)
print
(
'No linter found for'
,
filename
,
file
=
sys
.
stderr
)
return
not
require_linter
print
(
filename
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment