mtuchowski/mdspell

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# MdSpell

[![Gem Version](https://badge.fury.io/rb/mdspell.svg)](http://badge.fury.io/rb/mdspell)
[![Build Status](https://travis-ci.org/mtuchowski/mdspell.svg)](
https://travis-ci.org/mtuchowski/mdspell)
[![Code Climate](https://codeclimate.com/github/mtuchowski/mdspell/badges/gpa.svg)](
https://codeclimate.com/github/mtuchowski/mdspell)
[![Test Coverage](https://codeclimate.com/github/mtuchowski/mdspell/badges/coverage.svg)](
https://codeclimate.com/github/mtuchowski/mdspell/coverage)
[![Inline docs](http://inch-ci.org/github/mtuchowski/mdspell.svg?branch=master)](
http://inch-ci.org/github/mtuchowski/mdspell)
[![Dependency Status](https://gemnasium.com/mtuchowski/mdspell.svg)](
https://gemnasium.com/mtuchowski/mdspell)

A Ruby markdown spell checking tool.

## Installation

To install from [rubygems.org](http://rubygems.org/), run:

```console
$ gem install mdspell
Successfully installed mdspell-0.1.3
1 gem installed
```

On top of that, make sure that [GNU Aspell](http://aspell.net/) is installed on the system:

```console
# Ubuntu
$ sudo apt-get install aspell
# Arch Linux
$ sudo pacman -S aspell
```

## Usage

To spell-check markdown files, simply run `mdspell` with the filename (or directory) as
a parameter. For each spelling error found, MdSpell will display the misspelled word, filename
and line number:

```console
$ mdspell README.md spec
README.md:19: MD014 Dollar signs used before commands without showing output
README.md:36: MD014 Dollar signs used before commands without showing output
README.md:42: MD014 Dollar signs used before commands without showing output
spec/examples/with_errors.md:1: mispelled
spec/examples/with_errors.md:3: qiute
spec/examples/with_errors.md:3: actualy
spec/examples/with_errors.md:5: tobe
spec/examples/complete.md:24: Unordered
```

### Ignore lists

In some cases, there may be words that are legitimately not in the dictionary you are using because they are proper nouns, or obscure technical terms.

You may specify words (or even regular expressions) to ignore via the --ignored flag:

```
mdspell README.md --ignored config,mdspell,ruby.*,file.ame
```

Likewise, you may specify this in a config file

```
ignored:
- expr1
- word2
...
```

Please note that you should take care to use non-greedy, precise, regular expressions as to not mask legitimate spelling errors.

## MIT Licensed

See [LICENSE](https://github.com/mtuchowski/mdspell/blob/master/LICENSE) file for full license
text.