Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Description
Issue Summary
There should be a unified report to pull out of Bitbucket the ranking of languages from repositories. For example:
- Java 6,098,
- Python 5,976,
- Javascript 4,098
Actual Results
Currently, you can search by a certain file extension and Bitbucket will tell you the number of files found:
However, you need to search one file type at a time.
Expected Results
There should be a unified report in the web interface that informs how many files of each language/extension exist for a certain repository or for all repositories from a certain project.
Workaround
It is possible to retrieve that information directly from the file system.
You will have to first identify which repository ID on disk refers to which repository in the web interface, and then use one of the following commands:
- The Git command below returns how many files with .java extension exist on a given repository:
git ls-files '*.java' | wc -l
- The command below returns how many files of each extension exist under a certain directory:
find . -type f | sed -n 's/..*\.//p' | sed '/git/d' | sort | uniq -c