我想知道Javadoc拼写检查器是否存在于开源的某个地方?将它作为Maven插件插入可能会很棒,但即使是独立的二进制发行版也可以使用。
答案 0 :(得分:2)
实际上至少有一个库可以做到这一点:Spell Check Doclet
普通Javadoc用法:
javadoc ^
-doclet spellcheck.SpellCheckDoclet ^
-classpath "c:\Javasoft\j2sdk1.5.0_06\lib\tools.jar;" ^
-sourcepath "c:\Work\dev" ^
-docletpath ".;c:\Tools\jazzy-0.5.2\jazzy-core.jar" ^
-subpackages "jpdf" ^
^
-echo on ^
-checkHtmlFiles ^
-dictionary "/Tools/jazzy-0.5.2/dict/english.0" ^
-dictionary "/Tools/jazzy-0.5.2/scowl_dict/american-words.10" ^
-dictionary "/Tools/jazzy-0.5.2/scowl_dict/american-words.20" ^
-dictionary "/Tools/jazzy-0.5.2/scowl_dict/american-words.35" ^
-dictionary "./files/dictionary_java.txt" ^
-dictionary "./files/dictionary_jpdf.txt" ^
-ignoreContaining "_" ^
-ignoreContaining "." ^
-echo off ^
-ignoreFile "./files/ignoreWords_html.txt" ^
-ignoreFile "./files/ignoreWords_gui.txt"
现在你只需要
javadoc:javadoc
mojo
parameters