virtual-labs-archive / problem-solving-iiith

Other
4 stars 437 forks source link

Strings(quotes) must use doublequote. #455

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/problem-solving-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNjM5XX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W251bGxdfSx7InZhbHVlcyI6W119XQ==

AksharaMayreddy commented 5 years ago

commit id's : eb26c3b777f5709222b6c6e585cce8a55d140ab3 (brainfuck.js) 03be2678e047ca011fd1ce8109cc0391ba9dc113 (cpp.js) 72c29962ec02ebf9e3632dfc1aef5dabb41371cf (edit_area.js) baf8f95eebedb6b595a5b020d843225ad0a94e08 (html.js) 1d683b80ed6d9276127e4474e145766bf006f7e8 (css.js) 82cfca381b6303931dedcd3807629ad08c9f4171 (pas.js) e5d608158884e19209b790280ba4ecda8ae51fbf (css.js) e37ff6d72d39768719ff2f78d52f3901f9608693 (pas.js) 4e957e08bc682e0eddbe408d2ab3e8930e92ea0d (tsql.js) 4ed763dd54c9d2faf84020908c9bf1e63bac1f08 (manage_area.js) 6bfdbd8c74f90af4e68ef2320f7afdd1978fb1f4 (coldfusion.js) 10986e91ea1a395ad9957cc9fd5ae31a2b2d6e93 (edit_area_full.js) f9fda3964d9c1881ac6df679e7a9f4392166c35d (pas.js) 7569ce8007ff4aa12f2156b54b3af5d9fd16b218 (xml.js) 33776b5bed7c6f8fa297038497086f8a71d774d4 (php.js) d63279e44eb118141fa93c3e73bf6b00b3b79193 (ruby.js)

niveditareddy commented 5 years ago

Valid fix @AksharaMayreddy

VINEETHREDDYSHERI commented 5 years ago

Valid fix @AksharaMayreddy

thecoderxman commented 5 years ago

Validated @AksharaMayreddy