virtual-labs / structural-dynamics-iiith-ph2

Other
0 stars 74 forks source link

'c' is not defined. (no-undef) #252

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/structural-dynamics-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNTU0XX0seyJ2YWx1ZXMiOltdfV0=

ShivaniKomandury commented 5 years ago

Commit id : 78de9ca049f0252db7c78f30b5a28020c47cf036 Commit id : edbcff53127d18c1b4ba6d52ed8aa31690d0990d Commit id : 5e06c7d2778ca7dee845497c62b75725b88e4870 Commit id : 9c472b9173549a6fbe39457618c027854ed5bb59 Commit id : b86f2e9d766c4c40b7ee859b449d406eb87f7be7 Commit id : e36e69a2e0a8e2fcb1f711b866c07e96135a62d8 Commit id : 82d4c845fbfea727a4d24dc1ebcdbc8933fd9b09 Commit id : 437aaf177e91592020329a1de1c2fa31302ddc7a

Please validate.

sharath99 commented 5 years ago

Valid fix @ShivaniKomandury

VINEETHREDDYSHERI commented 5 years ago

Valid fix @ShivaniKomandury