Returns json data about a single user.
|const checkCategoryMapping = require('./check_category_mapping');|
|const categories = (checkName) => [checkCategoryMapping[checkName] || 'Style'];|
|// Here Be Dragons: this function extracts the relevant value that triggered the issue for|
|// checks in the Complexity category. Unfortunately, these values are not available in a|
|// structured way, so we extract them from strings. That means that any check categorized|
|// as Complexity MUST have a rule here to extract value.|
|// If a matching string segment cannot be found, `null` will be returned.|