virtual-labs-archive / pattern-recognition-iiith

Other
4 stars 245 forks source link

'q' is not defined. (no-undef) #69

Open BSravanthi opened 5 years ago

BSravanthi commented 5 years ago

Any reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a /global .../ comment. This rule provides compatibility with JSHint's and JSLint's treatment of global variables. This rule can help you locate potential ReferenceErrors resulting from misspellings of variable and parameter names, or accidental implicit globals (for example, from forgetting the var keyword in a for loop initializer).

//Bad:
var a = someFunction();  /*error "someFunction" is not defined.*/
b = 10;                  /*error "b" is not defined.*/

Please refer to the following link to fix similar issues. https://app.codacy.com/app/BSravanthi/pattern-recognition-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNTU0XX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W251bGxdfSx7InZhbHVlcyI6W119XQ==

ShivaniKomandury commented 5 years ago

commit id : 0075c8b7555b6b404a6b6365f89309c72e73dfcc commit id : 127f2e97f2665b66862e6225d4c4f884d2618d88 commit id : a39dc2a0b62f80e68b8e383322f9297f6c46863b

Please validate. Please validate.

snehitharangu commented 5 years ago

Valid fix @ShivaniKomandury

sharath99 commented 5 years ago

Valid fix @ShivaniKomandury

Pallavi98 commented 5 years ago

valid fix @ShivaniKomandury