A grunt task for detecting inappropriate language in your code.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-solemn --save-dev
The "solemn" task
In your project's Gruntfile, add a section named
solemn to the data object passed into
An array value that includes a list of paths for custom dictionaries. Each dictionary is a JSON file with the following format:
"word1": "category1" "category3""word2": "category2""word3": "category1""word4": "category2" "category3" "category4"
Every word must have at least one category. If multiple dictionaries are specified, words and their categories are merged.
A boolean value that is used to determine if grunt should exit if it finds a violation.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.