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
6a48cdf9
Commit
6a48cdf9
authored
Apr 13, 2016
by
Antti Tanhuanpää
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow parameters in linter config
parent
68735c7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gitlint
gitlint
+2
-2
No files found.
gitlint
View file @
6a48cdf9
...
...
@@ -8,7 +8,7 @@ import sys
linters
=
{
'js'
:
(
'/usr/bin/eslint'
,
'--stdin'
),
'py'
:
(
'/usr/bin/flake8'
,
'--ignore=E121,E123,E126,E266,E501,E704,E731'
,
'-'
),
'scss'
:
(
'/usr/bin/scss-lint'
,
'-'
),
'scss'
:
(
'/usr/bin/scss-lint'
,
'-
-stdin-file-path'
,
'{filename}'
,
'-
'
),
}
...
...
@@ -23,7 +23,7 @@ def get_linter(filename):
except
(
KeyError
,
ValueError
):
raise
NoLinterFound
return
linter_args
return
(
arg
.
format
(
filename
=
filename
)
for
arg
in
linter_args
)
def
lint
(
filename
,
require_linter
=
False
):
...
...
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