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.
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.
Please refer to the following link to fix similar issues.
https://app.codacy.com/app/BSravanthi/problem-solving-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNTUyXX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W251bGxdfSx7InZhbHVlcyI6W119XQ==