Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Annlix
ShellCheck
提交
d8a32da0
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,体验更适合开发者的 AI 搜索 >>
提交
d8a32da0
编写于
7月 26, 2018
作者:
V
Vidar Holen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Retire SC1117 (unknown quoted escapes) due to noise
上级
5005dc0f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
5 deletion
+4
-5
CHANGELOG.md
CHANGELOG.md
+1
-0
src/ShellCheck/Parser.hs
src/ShellCheck/Parser.hs
+3
-5
未找到文件。
CHANGELOG.md
浏览文件 @
d8a32da0
...
...
@@ -2,6 +2,7 @@
### Added
### Changed
-
Most warnings now have useful end positions
-
SC1117 about unknown double-quoted escape sequences has been retired
### Fixed
-
SC2021 no longer triggers for equivalence classes like '[=e=]'
...
...
src/ShellCheck/Parser.hs
浏览文件 @
d8a32da0
...
...
@@ -1254,7 +1254,6 @@ prop_readDoubleQuoted5 = isOk readSimpleCommand "lol \"foo\nbar\" etc"
prop_readDoubleQuoted6
=
isOk
readSimpleCommand
"echo
\"
${ ls; }
\"
"
prop_readDoubleQuoted7
=
isOk
readSimpleCommand
"echo
\"
${ ls;}bar
\"
"
prop_readDoubleQuoted8
=
isWarning
readDoubleQuoted
"
\"\x201C
hello
\x201D\"
"
prop_readDoubleQuoted9
=
isWarning
readDoubleQuoted
"
\"
foo
\\
n
\"
"
prop_readDoubleQuoted10
=
isOk
readDoubleQuoted
"
\"
foo
\\\\
n
\"
"
readDoubleQuoted
=
called
"double quoted string"
$
do
start
<-
startSpan
...
...
@@ -1440,8 +1439,9 @@ readDoubleEscaped = do
<|>
fmap
return
doubleQuotable
<|>
do
c
<-
anyChar
parseNoteAt
pos
StyleC
1117
$
"Backslash is literal in
\"\\
"
++
[
c
]
++
"
\"
. Prefer explicit escaping:
\"\\\\
"
++
[
c
]
++
"
\"
."
-- This is an invalid escape sequence where the \ is literal.
-- Previously this caused a SC1117, which may be re-enabled as
-- as a pedantic warning.
return
[
bs
,
c
]
readBraceEscaped
=
do
...
...
@@ -1694,8 +1694,6 @@ prop_readHereDoc14= isWarning readScript "cat << foo\nbar\nfoo \n"
prop_readHereDoc15
=
isWarning
readScript
"cat <<foo
\n
bar
\n
foo bar
\n
foo"
prop_readHereDoc16
=
isOk
readScript
"cat <<- ' foo'
\n
bar
\n
foo
\n
"
prop_readHereDoc17
=
isWarning
readScript
"cat <<- ' foo'
\n
bar
\n
foo
\n
foo
\n
"
prop_readHereDoc18
=
isWarning
readScript
"cat << foo
\n
Loose
\\
t
\n
foo"
prop_readHereDoc19
=
isOk
readScript
"# shellcheck disable=SC1117
\n
cat << foo
\n
Loose
\\
t
\n
foo"
prop_readHereDoc20
=
isWarning
readScript
"cat << foo
\n
foo
\n
()
\n
foo
\n
"
prop_readHereDoc21
=
isOk
readScript
"# shellcheck disable=SC1039
\n
cat << foo
\n
foo
\n
()
\n
foo
\n
"
readHereDoc
=
called
"here document"
$
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录