Skip to content

Commit

Permalink
ruby off
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 15, 2019
1 parent d643659 commit 92352cd
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 829 deletions.
2 changes: 0 additions & 2 deletions .rubocop.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .rultor.yml

This file was deleted.

24 changes: 0 additions & 24 deletions Gemfile

This file was deleted.

27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/volatility)](http://www.rultor.com/p/yegor256/volatility)
[![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)

[![Build Status](https://travis-ci.org/yegor256/volatility.svg)](https://travis-ci.org/yegor256/volatility)
[![Build status](https://ci.appveyor.com/api/projects/status/3i9r5lak77mmfbr0?svg=true)](https://ci.appveyor.com/project/yegor256/volatility-1rwvv)

[![Gem Version](https://badge.fury.io/rb/volatility.svg)](http://badge.fury.io/rb/volatility)
[![Code Climate](http://img.shields.io/codeclimate/github/yegor256/volatility.svg)](https://codeclimate.com/github/yegor256/volatility)
[![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/volatility.svg)](https://codecov.io/github/yegor256/volatility?branch=master)
[![Hits-of-Code](https://hitsofcode.com/github/yegor256/volatility)](https://hitsofcode.com/github/yegor256/volatility)

It's an experimental way to calculate how "volatile" is a project
source code repository. More or less detailed theoretical summary
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/downloads/yegor256/volatility/theory.pdf).

Prerequisites:
Expand All @@ -26,15 +20,24 @@ Prerequisites:
First, collect lines-of-code data (we assume that your source code
has been already checked-out/cloned into `PROJECT` directory):

> $ ./cloc-1.56.pl --xml --quiet --progress-rate=0 PROJECT > cloc.xml
```bash
$ ./cloc-1.56.pl --xml --quiet --progress-rate=0 PROJECT > cloc.xml
```

Next, calculate the volatility, using our custom PHP script. For Git
repository:

> $ git --git-dir PROJECT/.git log --reverse --format=short --stat=1000 --stat-name-width=950 | php volatility.php --git > vol.json
```
$ git --git-dir PROJECT/.git log --reverse --format=short --stat=1000 --stat-name-width=950 | \
php volatility.php --git > vol.json
```

For a Subversion repository:

for Subversion repository:
```
$ svn log -r1:HEAD -v PROJECT | php volatility.php --svn > vol.json
```

> $ svn log -r1:HEAD -v PROJECT | php volatility.php --svn > vol.json
The `vol.json` file will contain the metrics collected.

That's it.
83 changes: 0 additions & 83 deletions Rakefile

This file was deleted.

60 changes: 0 additions & 60 deletions bin/volatility

This file was deleted.

3 changes: 0 additions & 3 deletions cucumber.yml

This file was deleted.

8 changes: 0 additions & 8 deletions features/cli.feature

This file was deleted.

22 changes: 0 additions & 22 deletions features/gem_package.feature

This file was deleted.

27 changes: 0 additions & 27 deletions features/git_basics.feature

This file was deleted.

77 changes: 0 additions & 77 deletions features/step_definitions/steps.rb

This file was deleted.

Loading

0 comments on commit 92352cd

Please sign in to comment.