src/messages/errors.js
function(key, type, validKeys, raw) {
    return {
      title: 'Annotation ' + chalk.underline('@' + key) +
        ' not allowed for type ' + type + ' of ' + chalk.underline(raw.descriptor) + ' in ' + raw.file,
      text: 'Valid annotations are @' + validKeys.join(', @') + '. This element will not appear in the final StyleGuide until you fix this error.'
    };
  }
function(key, type, validKeys, raw) {
    return {
      title: 'Annotation ' + chalk.underline('@' + key) +
        ' not allowed for type ' + type + ' of ' + chalk.underline(raw.descriptor) + ' in ' + raw.file,
      text: 'Valid annotations are @' + validKeys.join(', @') + '. This element will not appear in the final StyleGuide until you fix this error.'
    };
  }
function ( key , type , validKeys , raw ) { return { title : 'Annotation ' + chalk . underline ( '@' + key ) + ' not allowed for type ' + type + ' of ' + chalk . underline ( raw . descriptor ) + ' in ' + raw . file , text : 'Valid annotations are @' + validKeys . join ( ', @' ) + '. This element will not appear in the final StyleGuide until you fix this error.' } ; }
Whenever there are annotations that are not allowed for certain entity types.
Whenever there are annotations that are not allowed for certain entity types .