@@ -1701,3 +1701,57 @@ If you have `cppcheck-premium-loc` files in your project folders, those should b
17011701If such files are generated during analysis, then review your scripts to check why those files are generated.
17021702
17031703:::
1704+
1705+ ::: {.content-visible when-profile="premium"}
1706+
1707+ # Git License Metrics
1708+
1709+ ## Installing the tool
1710+
1711+ The tool is installed together with Cppcheck Premium. The installation folder contains a file
1712+ ` git-license-metrics ` that you can execute.
1713+
1714+ ## Clone your repositories
1715+
1716+ If you don't have your source code locally, you need to clone your repositories.
1717+
1718+ Full clone:
1719+
1720+ git clone URL
1721+
1722+ If a "full clone" is too large you can clone like this. The file data is not cloned then, which
1723+ means that the "lines of code" can't be calculated:
1724+
1725+ git clone --no-checkout --filter=blob:none URL
1726+
1727+ ## Usage on Windows
1728+
1729+ Start the tool:
1730+
1731+ ![ Git License Metrics start window] ( images/git-license-metrics-start.png )
1732+
1733+ Click on "Select repository" and select the folder that contains your project code. The folder
1734+ you choose should contain the ` .git ` folder.
1735+
1736+ ![ Selecting the repository folder] ( images/git-license-metrics-select.png )
1737+
1738+ When you click on the "Select Folder" button the report will be shown. Here is an example
1739+ report for the simplecpp repo (open source preprocessor project):
1740+
1741+ ![ Git License Metrics report] ( images/git-license-metrics-report.png )
1742+
1743+ ## Usage on Linux
1744+
1745+ On Linux, ` git-license-metrics ` is a command line tool. Point it to the root of the repository,
1746+ copy the ` [summary] ` portion of the output, and send it to cppcheck sales:
1747+
1748+ $ ./git-license-metrics ../cppcheck
1749+ Path: ../cppcheck
1750+ [summary]
1751+ unique authors (last year): 65
1752+ ids:
1753+ * 9761353d7534333
1754+ * 766f7b48652cc16
1755+ >ae601cbc6b23b02
1756+
1757+ :::
0 commit comments