Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-19396

Be able to report the ranking of languages from repositories

    XMLWordPrintable

Details

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    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 

      Attachments

        Activity

          People

            Unassigned Unassigned
            fkraemer Felipe Kraemer
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: