Closed Arcanemagus closed 8 years ago
Guess we can move _prepareMessage call from https://github.com/jscs-dev/node-jscs/blob/master/lib/errors.js#L86 to https://github.com/jscs-dev/node-jscs/blob/master/lib/errors.js#L211
Need to try to not break something else.
@zxqfox are you on it?
Nope that was the point - always show the error, rule
property only for the convenience
It seems that with the changes in https://github.com/jscs-dev/node-jscs/commit/dc468431aa19b6373e6fdc67b8d8bde40d7528d1 a bug was introduced where when getting the rules via the API the ruleID is shown in the
message
attribute as well as therule
attribute.Since the information is already accessible it should be up to the consumer of the API what to do with it, instead of being forced to have it in the message.