Skip to content

Commit

Permalink
Add message url
Browse files Browse the repository at this point in the history
Closes GH-20.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
remcohaszing authored Dec 22, 2021
1 parent 4fada8c commit 6994779
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import {pointStart, pointEnd} from 'unist-util-position'

const own = {}.hasOwnProperty

const url = 'https://github.com/retextjs/retext-profanities#readme'

/**
* @param {Config} config
*/
Expand Down Expand Up @@ -80,7 +82,7 @@ export function factory(config) {
},
[source, phrase.replace(/\W+/g, '-')].join(':')
),
{profanitySeverity, actual, expected: []}
{profanitySeverity, actual, expected: [], url}
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ test('profanities', (t) => {
fatal: false,
profanitySeverity: 2,
actual: 'Shit',
expected: []
expected: [],
url: 'https://github.com/retextjs/retext-profanities#readme'
}
],
'should warn'
Expand Down

0 comments on commit 6994779

Please sign in to comment.