Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
404e3c5d
提交
404e3c5d
authored
8月 10, 2009
作者:
buckyballs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Issue 109 with "build spellcheck" ignoring errors if folder name includes '_'
上级
85abb7c2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
5 行删除
+9
-5
SpellChecker.java
h2/src/tools/org/h2/build/doc/SpellChecker.java
+8
-4
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
没有找到文件。
h2/src/tools/org/h2/build/doc/SpellChecker.java
浏览文件 @
404e3c5d
...
@@ -29,7 +29,7 @@ public class SpellChecker {
...
@@ -29,7 +29,7 @@ public class SpellChecker {
"bz2"
,
"rc"
,
"layout"
,
"res"
,
"dll"
,
"jar"
,
"svg"
};
"bz2"
,
"rc"
,
"layout"
,
"res"
,
"dll"
,
"jar"
,
"svg"
};
private
static
final
String
DELIMITERS
=
" \n.();-\"=,*/{}_<>+\r:'@[]&\\!#|?$^%~`\t"
;
private
static
final
String
DELIMITERS
=
" \n.();-\"=,*/{}_<>+\r:'@[]&\\!#|?$^%~`\t"
;
private
static
final
String
PREFIX_IGNORE
=
"abc"
;
private
static
final
String
PREFIX_IGNORE
=
"abc"
;
private
static
final
String
IGNORE_FILE
=
"mainWeb.html"
;
private
static
final
String
[]
IGNORE_FILES
=
{
"mainWeb.html"
,
"pg_catalog.sql"
}
;
private
HashSet
<
String
>
dictionary
=
new
HashSet
<
String
>();
private
HashSet
<
String
>
dictionary
=
new
HashSet
<
String
>();
private
HashSet
<
String
>
used
=
new
HashSet
<
String
>();
private
HashSet
<
String
>
used
=
new
HashSet
<
String
>();
...
@@ -89,12 +89,13 @@ public class SpellChecker {
...
@@ -89,12 +89,13 @@ public class SpellChecker {
}
}
}
}
/** Searches for spelling errors in the source and documentation */
private
void
process
(
File
file
)
throws
IOException
{
private
void
process
(
File
file
)
throws
IOException
{
String
name
=
file
.
getCanonicalPath
();
String
name
=
file
.
getCanonicalPath
();
if
(
name
.
endsWith
(
".svn"
))
{
if
(
name
.
endsWith
(
".svn"
))
{
return
;
return
;
}
}
if
(
name
.
indexOf
(
"_"
)
>
0
&&
name
.
indexOf
(
"_en"
)
<
0
)
{
if
(
file
.
getCanonicalFile
().
getName
().
startsWith
(
"_"
)
&&
name
.
indexOf
(
"_en"
)
<
0
)
{
return
;
return
;
}
}
if
(
file
.
isDirectory
())
{
if
(
file
.
isDirectory
())
{
...
@@ -117,8 +118,11 @@ public class SpellChecker {
...
@@ -117,8 +118,11 @@ public class SpellChecker {
break
;
break
;
}
}
}
}
if
(
fileName
.
endsWith
(
IGNORE_FILE
))
{
for
(
int
i
=
0
;
i
<
IGNORE_FILES
.
length
;
i
++)
{
if
(
fileName
.
endsWith
(
IGNORE_FILES
[
i
]))
{
ignore
=
true
;
ignore
=
true
;
break
;
}
}
}
if
(
ignore
)
{
if
(
ignore
)
{
return
;
return
;
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
404e3c5d
...
@@ -320,7 +320,7 @@ possibility possible possibly post postal postgre postgres postgresql postmaster
...
@@ -320,7 +320,7 @@ possibility possible possibly post postal postgre postgres postgresql postmaster
potential potentially pound pow power poweroff practice prd pre prec precision
potential potentially pound pow power poweroff practice prd pre prec precision
preferdoslikelineends preferences preferred prefix prefixes premature prep
preferdoslikelineends preferences preferred prefix prefixes premature prep
prepare prepared prepares preparing prepended prepends pres present preserve
prepare prepared prepares preparing prepended prepends pres present preserve
press pressed pretty prev prevent previous previously pri price prices primary
press pressed pretty prev prevent prev
ents prev
ious previously pri price prices primary
prime primitive primitives principal print printed println prints prio prior
prime primitive primitives principal print printed println prints prio prior
priority private privilege privileges probability probable probably problem
priority private privilege privileges probability probable probably problem
problems proc procedural procedure procedures process processed processes
problems proc procedural procedure procedures process processed processes
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论