https://github.com/yegor256/volatility
The Calculator of the Source Code "Volatility" Metric
https://github.com/yegor256/volatility
metrics metrics-gathering php volatility
Last synced: 3 months ago
JSON representation
The Calculator of the Source Code "Volatility" Metric
- Host: GitHub
- URL: https://github.com/yegor256/volatility
- Owner: yegor256
- License: mit
- Created: 2012-09-23T11:39:33.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-04-05T02:55:23.000Z (over 2 years ago)
- Last Synced: 2025-03-21T07:35:39.395Z (4 months ago)
- Topics: metrics, metrics-gathering, php, volatility
- Language: Ruby
- Homepage:
- Size: 244 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://www.elegantobjects.org)
[](https://www.0crat.com/p/C3RFVLU72)
[](http://www.rultor.com/p/yegor256/volatility)
[](https://www.jetbrains.com/ruby/)[](https://travis-ci.org/yegor256/volatility)
[](https://ci.appveyor.com/project/yegor256/volatility-jm2bc)
[](http://www.0pdd.com/p?name=yegor256/volatility)
[](http://badge.fury.io/rb/volatility)
[](https://codeclimate.com/github/yegor256/volatility/maintainability)[](https://github.com/yegor256/takes/volatility/master/LICENSE.txt)
[](https://codecov.io/github/yegor256/volatility?branch=master)
[](https://hitsofcode.com/view/github/yegor256/volatility)It's an experimental way to calculate how "volatile" is a project
source code repository, by comparing the amount of dead code (rarely touched)
with the amount of actively modified one. More or less detailed theoretical summary
is in [theory.pdf](https://github.com/yegor256/volatility/raw/master/theory.pdf).You need to have Ruby 2.6+ installed. Then you install this tool:
```bash
$ gem install volatility
```Then, you run it:
```bash
$ volatility --help
```## How to contribute
Read [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).
Make sure your build is green before you contribute
your pull request. You will need to have [Ruby](https://www.ruby-lang.org/en/) 2.3+ and
[Bundler](https://bundler.io/) installed. Then:```
$ bundle update
$ bundle exec rake
```If it's clean and you don't see any error messages, submit your pull request.