88 * they are errors or warnings.
99 */
1010function Reporter ( lines , ruleset ) {
11+ "use strict" ;
1112
1213 /**
1314 * List of messages being reported.
@@ -54,6 +55,7 @@ Reporter.prototype = {
5455 * @method error
5556 */
5657 error : function ( message , line , col , rule ) {
58+ "use strict" ;
5759 this . messages . push ( {
5860 type : "error" ,
5961 line : line ,
@@ -74,6 +76,7 @@ Reporter.prototype = {
7476 * @deprecated Use report instead.
7577 */
7678 warn : function ( message , line , col , rule ) {
79+ "use strict" ;
7780 this . report ( message , line , col , rule ) ;
7881 } ,
7982
@@ -86,8 +89,9 @@ Reporter.prototype = {
8689 * @method report
8790 */
8891 report : function ( message , line , col , rule ) {
92+ "use strict" ;
8993 this . messages . push ( {
90- type : this . ruleset [ rule . id ] == 2 ? "error" : "warning" ,
94+ type : this . ruleset [ rule . id ] === 2 ? "error" : "warning" ,
9195 line : line ,
9296 col : col ,
9397 message : message ,
@@ -105,6 +109,7 @@ Reporter.prototype = {
105109 * @method info
106110 */
107111 info : function ( message , line , col , rule ) {
112+ "use strict" ;
108113 this . messages . push ( {
109114 type : "info" ,
110115 line : line ,
@@ -122,6 +127,7 @@ Reporter.prototype = {
122127 * @method rollupError
123128 */
124129 rollupError : function ( message , rule ) {
130+ "use strict" ;
125131 this . messages . push ( {
126132 type : "error" ,
127133 rollup : true ,
@@ -137,6 +143,7 @@ Reporter.prototype = {
137143 * @method rollupWarn
138144 */
139145 rollupWarn : function ( message , rule ) {
146+ "use strict" ;
140147 this . messages . push ( {
141148 type : "warning" ,
142149 rollup : true ,
@@ -152,6 +159,7 @@ Reporter.prototype = {
152159 * @method stat
153160 */
154161 stat : function ( name , value ) {
162+ "use strict" ;
155163 this . stats [ name ] = value ;
156164 }
157165} ;
0 commit comments