https://github.com/cmstead/fchurn
File churn metric generator for projects using Git
https://github.com/cmstead/fchurn
Last synced: 24 days ago
JSON representation
File churn metric generator for projects using Git
- Host: GitHub
- URL: https://github.com/cmstead/fchurn
- Owner: cmstead
- License: mpl-2.0
- Created: 2019-11-03T20:01:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T13:45:49.000Z (almost 4 years ago)
- Last Synced: 2025-12-19T16:02:10.721Z (6 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FChurn #
File churn is a great way to see that a part of your application might be modified too often. This can indicate issues like a "god module/class" or logical pieces are too tightly coupled, making the software harder to change over time.
FChurn (File Churn) helps get a quick read on which files are seeing the most development and which are being created and then left alone.
## Setup ##
Be sure you have a current version of Node.js installed.
To install:
`npm install -g fchurn`
## Usage ##
Open a terminal window (terminal, powershell, cmd.exe, etc.) in a folder containing a git repository.
Run: `fchurn`.
For a full list of options, run `fchurn --help`.
## Help Output ##
fchurn [--help][--flag value]
Flag options:
- fileName
- Value: file name string
- Description: Get the churn for all files matching file name string
- help
- Value: none
- Description: display help info
- json
- Value: none
- Description: Display churn metrics in JSON format
- showTop
- Value: Number of churn records to show
- Description: Show the top X churned files
- snapshotDayCount
- Value: Number of days to include in the churn snapshot
- Description: Build a churn snapshot of the past X days
Examples:
---------
Show the 10 files with the highest churn over the last 30 days
`fchurn --showTop 10 --snapshotDayCount 30`
Show the churn of the package file over the past year
`fchurn --fileName "package.json" --snapshotDayCount 365`