cs50 / style50

https://cs50.readthedocs.io/style50/
GNU General Public License v3.0
61 stars 29 forks source link

Style50 unhappy with just about all indentation #98

Closed Anonymous-Humanoid closed 4 years ago

Anonymous-Humanoid commented 4 years ago

The following images have been cropped so as to not give away any sort of idea regarding a solution to pset1's "credit" problem. However, the image on the left does show how much indenting I used for this particular problem, and the image on the right shows the output from running style50 credit.c, see below: Screenshot (143) Screenshot (144) From the above images, we can see that style50 appears to be inputting twice as many indentations as there actually are before marking them up. Earlier, it even decided that the indentation was fine up until line 12. Not sure why it worked only then. Finally, I don't have an image handy to support this final statement, but style50 seems satisfied only when no indentation exists anywhere in the program. I think I can speak for the students of CS50x when I say we'd appreciate this being fixed within a reasonable time frame.

Thanks, CS50 Team!

EDIT: Now this is occurring within only the Main function, and only in this credit.c program of mine. Keep up the good work!

Anonymous-Humanoid commented 4 years ago

Never mind. This problem was quite easily fixed by manually replacing each and every instance of a tab with four spaces.

Still, keep up the good work, CS50 Team!

goyalyashpal commented 2 years ago

hi, refer to this document: https://cs50.readthedocs.io/style/c/#indentation

If you use your keyboard’s Tab key to do so, be sure that your text editor’s configured to convert tabs (\t) to four spaces...