@@ -6,6 +6,7 @@ export default class BlinkFeaturesHTMLCheck {
66 this . id = 'BLINK_FEATURES_HTML_CHECK' ;
77 this . description = `Do not use Chromium's experimental features` ;
88 this . type = sourceTypes . HTML ;
9+ this . shortenedURL = "https://git.io/Jeu19" ;
910 }
1011
1112 match ( cheerioObj , content ) {
@@ -15,15 +16,15 @@ export default class BlinkFeaturesHTMLCheck {
1516 webviews . each ( function ( i , elem ) {
1617 let wp = cheerioObj ( this ) . attr ( 'enableblinkfeatures' ) ;
1718 if ( wp ) {
18- loc . push ( { line : content . substr ( 0 , elem . startIndex ) . split ( '\n' ) . length , column : 0 , id : self . id , description : self . description , severity : severity . LOW , confidence : confidence . CERTAIN , manualReview : true } ) ;
19+ loc . push ( { line : content . substr ( 0 , elem . startIndex ) . split ( '\n' ) . length , column : 0 , id : self . id , description : self . description , shortenedURL : self . shortenedURL , severity : severity . LOW , confidence : confidence . CERTAIN , manualReview : true } ) ;
1920 }
2021
2122 // search for both names for now
2223 // todo: implement taking electron version into account
2324 // https://github.com/electron/electron/blob/master/docs/api/breaking-changes.md#browserwindow
2425 wp = cheerioObj ( this ) . attr ( 'blinkfeatures' ) ;
2526 if ( wp ) {
26- loc . push ( { line : content . substr ( 0 , elem . startIndex ) . split ( '\n' ) . length , column : 0 , id : self . id , description : self . description , severity : severity . LOW , confidence : confidence . CERTAIN , manualReview : true } ) ;
27+ loc . push ( { line : content . substr ( 0 , elem . startIndex ) . split ( '\n' ) . length , column : 0 , id : self . id , description : self . description , shortenedURL : self . shortenedURL , severity : severity . LOW , confidence : confidence . CERTAIN , manualReview : true } ) ;
2728 }
2829 } ) ;
2930 return loc ;
0 commit comments