400,000 GitHub repositories, 1 billion files, 14 terabytes of code: Spaces or Tabs?
Felipe Hoffa
70531

There’s a mistake in your query that completely skews the result in favor of spaces: you check if a file uses tabs by seeing if it has more lines that start with a single space than those that start with a single tab.

However, pretty much any version of [lang]Doc (e.g. JavaDoc, JSDoc) use a leading space in front of the * in block comments, e.g.:

/*
* <-- leading space
*/ <-- another leading space

This means that tab-indented files with relatively few code but a lot of (top-level) documentation will be considered to be space indented.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.