@@ -10,8 +10,8 @@ module.exports = {
1010 } ,
1111 schema : [ ] ,
1212 messages : {
13- // Split from a single ` missingTitle` into four messageIds aligned with
14- // upstream ember-template-lint, providing richer diagnostic detail.
13+ // Four messageIds ( missingTitle, emptyTitle, dynamicFalseTitle,
14+ // duplicateTitle) for richer diagnostic detail.
1515 missingTitle : '<iframe> elements must have a unique title property.' ,
1616 emptyTitle : '<iframe> elements must have a unique title property.' ,
1717 dynamicFalseTitle : '<iframe> elements must have a unique title property.' ,
@@ -61,20 +61,19 @@ module.exports = {
6161 if ( value . length === 0 ) {
6262 context . report ( { node, messageId : 'emptyTitle' } ) ;
6363 } else {
64- // Check for duplicate titles. Upstream reports BOTH the
65- // first and the current occurrence of a duplicated title
66- // on every collision, sharing a `#N` index so users can
67- // correlate them. For three or more duplicates the first
68- // occurrence is therefore re-reported once per collision.
64+ // Check for duplicate titles. Reports BOTH the first and the
65+ // current occurrence on every collision, sharing a `#N` index
66+ // so users can correlate them. For three or more duplicates
67+ // the first occurrence is therefore re-reported once per
68+ // collision.
6969 const existing = knownTitles . find ( ( entry ) => entry . value === value ) ;
7070 if ( existing ) {
7171 if ( existing . index === null ) {
7272 existing . index = nextDuplicateIndex ++ ;
7373 }
7474 const index = existing . index ;
7575
76- // Report on the first occurrence on every collision,
77- // matching upstream ember-template-lint behavior.
76+ // Report on the first occurrence on every collision.
7877 context . report ( {
7978 node : existing . node ,
8079 messageId : 'duplicateTitleFirst' ,
0 commit comments