virtual-labs / structural-dynamics-iiith-ph2

Other
0 stars 74 forks source link

Strings must use doublequote. (quotes) #251

Open BSravanthi opened 5 years ago

BSravanthi commented 5 years ago

JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted). Many codebases require strings to be defined in a consistent manner. This rule takes as parameter the style you prefer ("double", "single" or "backtick") default is double.

//Bad with double:
var single = 'single';
var unescaped = 'a string containing "double" quotes';

Please refer to the following link to fix similar issues. https://app.codacy.com/app/BSravanthi/structural-dynamics-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNjM5XX0seyJ2YWx1ZXMiOltdfV0=

DevikaBoddu commented 5 years ago

Commit id's: e6dff7c-exp1 b69b01e-exp10 76f57f0-exp2 74f68a4-exp4 dfed76e-exp5 b2c1a37-exp6 752b990-exp7 8de8ac7-exp8 4af1707-exp9 39cb7f0-exp10 cb2c3b4-exp2 e055d6a-exp4 203710f-exp5 ba7f361-exp6 aeb35b1-exp7 d7e5df0-exp8 3abed17-exp9 2a74646-exp1 e15da22-exp2 9003e8a-exp3 b0b783d-exp5 299e9d3-exp6 e6f6d65-exp7 952bd99-exp9 ff32c68-exp1 a7e13a3-exp10 3a330ea-exp3 2ff3f7c-exp4 0d7afbc-exp5 fddbcdd-exp6 f0a12c8-exp8 74d992a-exp9 c8b452f-custom.js 9422677-npm.js

ShivaniKomandury commented 5 years ago

Valid Fix @DevikaBoddu

samhithavootkoor commented 5 years ago

valid fix @DevikaBoddu