Code style analytics for the automatic setting of formatting rules in IDEs: A solution to the Tabs vs. Spaces Debate
Autor: | Anthony Whitehead, Eric Torunski, M. Omair Shafiq |
---|---|
Rok vydání: | 2017 |
Předmět: |
Class (computer programming)
Source lines of code Source code Computer science business.industry Programming language media_common.quotation_subject 020207 software engineering 02 engineering and technology computer.software_genre Disk formatting Software Software bug Analytics 020204 information systems 0202 electrical engineering electronic engineering information engineering Code (cryptography) business computer media_common |
Zdroj: | ICDIM |
DOI: | 10.1109/icdim.2017.8244675 |
Popis: | The use of code style is very important since it conveys meaning as well as intent of source code. Developers are used to reading code according to their preferred style but those guidelines of proper style vary among software teams, and even different companies. Code style decisions are typically made by managers of software developers, but we would like to investigate how common the different variations of code style are. There are also automated tools to convert code style in a file, however the tools must be configured manually. In this paper, we present a tool for the collection and analysis of code style metrics. We demonstrate the feasibility of scanning existing source code to automatically generate the code style rules for existing tools. We also look at the results of our data mining to look at trends in source code. We perform a quantitative analysis on source code for questions like: How many functions are in a class, on average? How many lines of code are in a method, on average? We also present graphs of the distribution of these data, as well look at special cases of outliers. |
Databáze: | OpenAIRE |
Externí odkaz: |