redpen-cc / redpen

RedPen is an open source proofreading tool to check if your technical documents meet the writing standard. RedPen supports various markup text formats (Markdown, Textile, AsciiDoc, Re:VIEW, reStructuredText and LaTeX).
https://redpen.cc
Apache License 2.0
567 stars 74 forks source link

Fix typo #838

Closed duck8823 closed 6 years ago

duck8823 commented 6 years ago

I run redpen for .properties file

find . -name "*.properties"  | xargs redpen

but got error.

[2018-08-01 12:14:47.077][INFO ] cc.redpen.Main - Configuration file: /usr/local/redpen-1.10.1/conf/redpen-conf-en.xml
[2018-08-01 12:14:47.084][INFO ] cc.redpen.config.ConfigurationLoader - Loading config from specified config file: "/usr/local/redpen-1.10.1/conf/redpen-conf-en.xml"
[2018-08-01 12:14:47.095][INFO ] cc.redpen.config.ConfigurationLoader - Succeeded to load configuration file
[2018-08-01 12:14:47.095][INFO ] cc.redpen.config.ConfigurationLoader - Language is set to "en"
[2018-08-01 12:14:47.095][WARN ] cc.redpen.config.ConfigurationLoader - No variant configuration...
[2018-08-01 12:14:47.142][INFO ] cc.redpen.config.ConfigurationLoader - No "symbols" block found in the configuration
[2018-08-01 12:14:47.145][INFO ] cc.redpen.config.SymbolTable - Default symbol settings are loaded
[2018-08-01 12:14:47.147][INFO ] cc.redpen.parser.SentenceExtractor - "[., ?, !]" are added as a end of sentence characters
[2018-08-01 12:14:47.147][INFO ] cc.redpen.parser.SentenceExtractor - "[', "]" are added as a right quotation characters
Exception in thread "main" java.lang.IllegalArgumentException: no such parser for :propery
    at cc.redpen.parser.DocumentParser.of(DocumentParser.java:99)
    at cc.redpen.Main.getDocuments(Main.java:219)
    at cc.redpen.Main.run(Main.java:196)
    at cc.redpen.Main.main(Main.java:60)

With -f properties option, redpen worked it.

I found typo in extension parser, and fixed it.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.01%) to 91.317% when pulling 72e184195fc2ec304ccaa900e08b641bb0442b4d on duck8823:fix/typo into 79b00e23d10662a4296b952a921b7c66fdbda69b on redpen-cc:master.

takahi-i commented 6 years ago

Ooops.... @duck8823 Thank you very much for the valuable contribution 🙏