Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Annlix
ShellCheck
提交
b936f287
S
ShellCheck
项目概览
Annlix
/
ShellCheck
与 Fork 源项目一致
Fork自
镜像 / koalaman / ShellCheck
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
ShellCheck
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b936f287
编写于
12月 15, 2013
作者:
V
Vidar Holen
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'manpage'
上级
8c008501
78d9a7ad
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
97 addition
and
2 deletion
+97
-2
.gitignore
.gitignore
+1
-0
Makefile
Makefile
+6
-2
shellcheck.1.md
shellcheck.1.md
+90
-0
未找到文件。
.gitignore
浏览文件 @
b936f287
...
...
@@ -3,4 +3,5 @@
.tests
jsoncheck
shellcheck
shellcheck.1
dist
Makefile
浏览文件 @
b936f287
...
...
@@ -2,7 +2,7 @@
GHCFLAGS
=
-O9
all
:
shellcheck .tests
all
:
shellcheck .tests
shellcheck.1
: Done
shellcheck
:
regardless
...
...
@@ -13,8 +13,12 @@ shellcheck: regardless
: Running unit tests
./test/runQuack
&&
touch
.tests
shellcheck.1
:
shellcheck.1.md
pandoc
-s
-t
man
$<
-o
$@
clean
:
rm
-f
.tests shellcheck
*
.hi
*
.o ShellCheck/
*
.hi ShellCheck/
*
.o
rm
-f
.tests shellcheck shellcheck.1
rm
-f
*
.hi
*
.o ShellCheck/
*
.hi ShellCheck/
*
.o
rm
-rf
dist
regardless
:
shellcheck.1.md
0 → 100644
浏览文件 @
b936f287
% SHELLCHECK(1) Shell script analysis tool
# NAME
shellcheck - Shell script analysis tool
# SYNOPSIS
**shellcheck**
[
*OPTIONS*
...]
*FILES*
...
# DESCRIPTION
ShellCheck is a static analysis and linting tool for sh/bash scripts. It's
mainly focused on handling typical beginner and intermediate level syntax
errors and pitfalls where the shell just gives a cryptic error message or
strange behavior, but it also reports on a few more advanced issues where
corner cases can cause delayed failures.
# OPTIONS
**-f**
*FORMAT*
,
**--format=**
*FORMAT*
: Specify the output format of shellcheck, which prints its results in the
standard output. Subsequent
**-f**
options are ignored, see
**FORMATS**
below for more information.
**-e**
\
*CODE1*
[,
*CODE2*
...],
\
**--exclude=**
*CODE1*
[,
*CODE2*
...]
: Explicitly exclude the specified codes from the report. Subsequent
**-e**
options are cumulative, but all the codes can be specified at once,
comma-separated as a single argument.
Also note that shellcheck supports multiple Bourne shell dialects, and
examines the file's shebang to determine which one to use.
# FORMATS
**tty**
: Plain text, human readable output. This is the default.
**gcc**
: GCC compatible output. Useful for editors that support compiling and
showing syntax errors.
For example, in Vim, `:set makeprg=shellcheck\ -f\ gcc\ %` will allow
using `:make` to check the script, and `:cnext` to jump to the next error.
<file>:<line>:<column>: <type>: <message>
**checkstyle**
: Checkstyle compatible XML output. Supported directly or through plugins
by many IDEs and build monitoring systems.
<?xml version='1.0' encoding='UTF-8'?>
<checkstyle version='4.3'>
<file name='file'>
<error
line='line'
column='column'
severity='severity'
message='message'
source='ShellCheck.SC####' />
...
</file>
...
</checkstyle>
**json**
: Json is a popular serialization format that is more suitable for web
applications. ShellCheck's json is compact and contains only the bare
minimum.
[
{
"line": line,
"column": column,
"level": level,
"code": ####,
"message": message
},
...
]
# SEE ALSO
sh(1) bash(1)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录