Skip to content

Commit

Permalink
Add list of rules
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 10, 2016
1 parent be248a7 commit 2cb83dc
Show file tree
Hide file tree
Showing 5 changed files with 1,790 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function attacher(processor, options) {
end: match[match.length - 1].position.end
});

message.ruleId = phrase;
message.ruleId = phrase.replace(/\W+/g, '-');
message.profanitySeverity = rating;
message.source = 'retext-profanities';
}
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@
"devDependencies": {
"browserify": "^13.0.0",
"esmangle": "^1.0.0",
"mdast-util-heading-range": "^2.0.1",
"nyc": "^8.3.1",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"retext": "^4.0.0",
"tape": "^4.0.0",
"unist-builder": "^1.0.2",
"xo": "^0.16.0"
},
"scripts": {
Expand All @@ -63,6 +65,9 @@
},
"remarkConfig": {
"output": true,
"presets": "wooorm"
"presets": "wooorm",
"plugins": [
"./script/build-table"
]
}
}
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Check for profanities.

* `ignore` (`Array.<string>`) — phrases _not_ to warn about.

## Rules

See [`rules.md`][rules] for a list of rules.

## License

[MIT][license] © [Titus Wormer][author]
Expand Down Expand Up @@ -75,3 +79,5 @@ Check for profanities.
[profanities]: https://github.com/wooorm/profanities

[cuss]: https://github.com/wooorm/cuss

[rules]: rules.md
Loading

0 comments on commit 2cb83dc

Please sign in to comment.