2016-10-03 20:28:07 +00:00
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
2016-10-05 18:18:12 +00:00
< title > Usage — Git Lint 0.0.6 documentation< / title >
2016-10-03 20:28:07 +00:00
2016-10-06 15:32:58 +00:00
< link rel = "stylesheet" href = "static/alabaster.css" type = "text/css" / >
2016-10-03 20:31:59 +00:00
< link rel = "stylesheet" href = "static/pygments.css" type = "text/css" / >
2016-10-03 20:28:07 +00:00
< script type = "text/javascript" >
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
2016-10-05 18:18:12 +00:00
VERSION: '0.0.6',
2016-10-03 20:28:07 +00:00
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
< / script >
2016-10-03 20:31:59 +00:00
< script type = "text/javascript" src = "static/jquery.js" > < / script >
< script type = "text/javascript" src = "static/underscore.js" > < / script >
< script type = "text/javascript" src = "static/doctools.js" > < / script >
2016-10-05 18:18:12 +00:00
< link rel = "top" title = "Git Lint 0.0.6 documentation" href = "index.html" / >
2016-10-03 20:28:07 +00:00
< link rel = "next" title = "Contributing" href = "contributing.html" / >
2016-10-06 15:32:58 +00:00
< link rel = "prev" title = "Installation" href = "installation.html" / >
< link rel = "stylesheet" href = "static/custom.css" type = "text/css" / >
< meta name = "viewport" content = "width=device-width, initial-scale=0.9, maximum-scale=0.9" / >
2016-10-03 20:28:07 +00:00
< / head >
2016-10-05 16:16:06 +00:00
< body role = "document" >
2016-10-06 15:32:58 +00:00
2016-10-03 20:28:07 +00:00
< div class = "document" >
< div class = "documentwrapper" >
< div class = "bodywrapper" >
2016-10-05 16:16:06 +00:00
< div class = "body" role = "main" >
2016-10-03 20:28:07 +00:00
< div class = "section" id = "usage" >
< h1 > < a class = "toc-backref" href = "#id1" > Usage< / a > < a class = "headerlink" href = "#usage" title = "Permalink to this headline" > ¶< / a > < / h1 >
< div class = "section" id = "command-line" >
< h2 > < a class = "toc-backref" href = "#id2" > Command Line< / a > < a class = "headerlink" href = "#command-line" title = "Permalink to this headline" > ¶< / a > < / h2 >
< div class = "contents topic" id = "contents" >
< p class = "topic-title first" > Contents< / p >
< ul class = "simple" >
< li > < a class = "reference internal" href = "#usage" id = "id1" > Usage< / a > < ul >
< li > < a class = "reference internal" href = "#command-line" id = "id2" > Command Line< / a > < / li >
< li > < a class = "reference internal" href = "#options" id = "id3" > Options< / a > < / li >
< li > < a class = "reference internal" href = "#as-a-pre-commit-hook" id = "id4" > As a pre-commit hook:< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
< p > git lint [options] [filenames]< / p >
< / div >
< div class = "section" id = "options" >
< h2 > < a class = "toc-backref" href = "#id3" > Options< / a > < a class = "headerlink" href = "#options" title = "Permalink to this headline" > ¶< / a > < / h2 >
2016-10-04 17:20:46 +00:00
< dl class = "docutils" >
< dt > < strong > -o < linters> , – only=< linters> < / strong > < / dt >
< dd > A comma-separated list of only those linters to run.< / dd >
< dt > < strong > -x < linters> – exclude=< linters> < / strong > < / dt >
< dd > A comma-separated list of linters to skip.< / dd >
< dt > < strong > -l, – linters< / strong > < / dt >
< dd > Show the list of configured linters.< / dd >
< dt > < strong > -b, – base< / strong > < / dt >
< dd > Check all changed files from GIT_DIR, not just those in the current directory and down.< / dd >
< dt > < strong > -a, – all< / strong > < / dt >
< dd > Scan all files, not just those that have changed.< / dd >
< dt > < strong > -e, – every< / strong > < / dt >
< dd > Scan all files, not just those that have changed, from GIT_DIR. Short for -b -a< / dd >
< dt > < strong > -w, – workspace< / strong > < / dt >
< dd > Scan the workspace [default]< / dd >
< dt > < strong > -s, – staging< / strong > < / dt >
< dd > Scan the staging area (useful for pre-commit).< / dd >
< dt > < strong > -c < path> , – config=< path> < / strong > < / dt >
< dd > Path to config file< / dd >
< dt > < strong > -t, – bylinter< / strong > < / dt >
< dd > Group reports by linter first as they appear in the config file [default]< / dd >
< dt > < strong > -f, – byfile< / strong > < / dt >
< dd > Group reports by file first, linter second< / dd >
< dt > < strong > -d, – dryrun< / strong > < / dt >
< dd > Report what git-lint would do, but don’ t actually do anything.< / dd >
< dt > < strong > -q, – quiet< / strong > < / dt >
< dd > Produce a short report of file that failed to pass.< / dd >
< dt > < strong > -h, – help< / strong > < / dt >
< dd > Print a short help message< / dd >
< dt > < strong > -V, – verbose< / strong > < / dt >
< dd > Print a slightly more verbose long report< / dd >
< dt > < strong > -v, – version< / strong > < / dt >
< dd > Print version information< / dd >
< / dl >
2016-10-03 20:28:07 +00:00
< / div >
< div class = "section" id = "as-a-pre-commit-hook" >
< h2 > < a class = "toc-backref" href = "#id4" > As a pre-commit hook:< / a > < a class = "headerlink" href = "#as-a-pre-commit-hook" title = "Permalink to this headline" > ¶< / a > < / h2 >
2016-10-05 20:12:30 +00:00
< p > There’ s a file, pre-commit, in the /bin directory with the project. (Or you can download
it from the github repository.) Install it in you .git/hooks/pre-commit file, and
chmod +x .git/hooks/pre-commit.< / p >
< p > The pre-commit hook is < em > experimental< / em > . Please be careful with it.< / p >
2016-10-03 20:28:07 +00:00
< / div >
< / div >
< / div >
< / div >
< / div >
2016-10-05 16:16:06 +00:00
< div class = "sphinxsidebar" role = "navigation" aria-label = "main navigation" >
2016-10-03 20:28:07 +00:00
< div class = "sphinxsidebarwrapper" >
< h3 > < a href = "index.html" > Table Of Contents< / a > < / h3 >
< ul >
< li > < a class = "reference internal" href = "#" > Usage< / a > < ul >
< li > < a class = "reference internal" href = "#command-line" > Command Line< / a > < / li >
< li > < a class = "reference internal" href = "#options" > Options< / a > < / li >
< li > < a class = "reference internal" href = "#as-a-pre-commit-hook" > As a pre-commit hook:< / a > < / li >
< / ul >
< / li >
< / ul >
2016-10-06 15:32:58 +00:00
< div class = "relations" >
< h3 > Related Topics< / h3 >
< ul >
< li > < a href = "index.html" > Documentation overview< / a > < ul >
< li > Previous: < a href = "installation.html" title = "previous chapter" > Installation< / a > < / li >
< li > Next: < a href = "contributing.html" title = "next chapter" > Contributing< / a > < / li >
< / ul > < / li >
< / ul >
< / div >
2016-10-05 16:16:06 +00:00
< div role = "note" aria-label = "source link" >
< h3 > This Page< / h3 >
< ul class = "this-page-menu" >
< li > < a href = "sources/usage.txt"
rel="nofollow">Show Source< / a > < / li >
< / ul >
< / div >
< div id = "searchbox" style = "display: none" role = "search" >
2016-10-03 20:28:07 +00:00
< h3 > Quick search< / h3 >
< form class = "search" action = "search.html" method = "get" >
2016-10-05 16:16:06 +00:00
< div > < input type = "text" name = "q" / > < / div >
< div > < input type = "submit" value = "Go" / > < / div >
2016-10-03 20:28:07 +00:00
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< / div >
< script type = "text/javascript" > $ ( '#searchbox' ) . show ( 0 ) ; < / script >
< / div >
< / div >
< div class = "clearer" > < / div >
< / div >
2016-10-06 15:32:58 +00:00
< div class = "footer" >
© 2016, Kenneth M. "Elf" Sternberg.
|
Powered by < a href = "http://sphinx-doc.org/" > Sphinx 1.4.6< / a >
& < a href = "https://github.com/bitprophet/alabaster" > Alabaster 0.7.9< / a >
|
< a href = "sources/usage.txt"
rel="nofollow">Page source< / a >
2016-10-03 20:28:07 +00:00
< / div >
2016-10-06 15:32:58 +00:00
2016-10-03 20:28:07 +00:00
< / body >
2016-10-04 00:31:52 +00:00
< / html >