virtual-labs-archive / problem-solving-iiith

Other
4 stars 437 forks source link

Mixed spaces and tabs. (no-mixed-spaces-and-tabs) #458

Open BSravanthi opened 5 years ago

BSravanthi commented 5 years ago

Most code conventions require either tabs or spaces be used for indentation. As such, it's usually an error if a single line of code is indented with both tabs and spaces. The no-mixed-spaces-and-tabs rule is aimed at flagging any lines of code that is indented with a mixture of tabs and spaces. This option suppresses warnings about mixed tabs and spaces when the latter is used for alignment only. This technique is called SmartTabs. The option is turned off by default.

//Bad:
function add(x, y) {
// --->..return x + y;

      return x + y;    /*error Mixed spaces and tabs.*/
}

Please refer to the following link to fix similar issues.

https://app.codacy.com/app/BSravanthi/problem-solving-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNTUyXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W251bGxdfSx7InZhbHVlcyI6W119XQ==

dmeghana98 commented 5 years ago

valid fix @SakethMattupalli

FlowrenceNikitha commented 5 years ago

Valid fix @SakethMattupalli

VINEETHREDDYSHERI commented 5 years ago

Valid fix @SakethMattupalli

SakethMattupalli commented 5 years ago

issue fixed commit id: 901f9fe

Gowthambhujam commented 5 years ago

Valid fix @sakethmattupalli

Mani082 commented 5 years ago

Valid fix @sakethMattupalli

thecoderxman commented 5 years ago

Validated @SakethMattupalli