You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# MetricFu [](http://badge.fury.io/rb/metric_fu)[](https://github.com/metricfu/metric_fu/actions/workflows/ruby.yml)[](https://gitter.im/metricfu/metric_fu?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[](https://codeclimate.com/github/metricfu/metric_fu)[](http://inch-ci.org/github/metricfu/metric_fu)
2
2
3
-
[](https://gitter.im/metricfu/metric_fu?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3
+
[MetricFu](http://rdoc.info/github/metricfu/metric_fu/) is a set of tools to provide reports that show which parts of your code might need extra work.
MetricFu needs maintainers. If you are up for helping out, please left a note in [issue 280](https://github.com/metricfu/metric_fu/issues/280). MetricFu is free and open source code that belongs to everyone. Benjamin (@bf4) hasn't been working on MetricFu for a while, which is a great opportunity for you to step up!
11
+
```
12
+
$ gem install metric_fu
13
+
```
12
14
13
-
## Installation
15
+
Or add this line to your application's Gemfile:
16
+
17
+
```ruby
18
+
gem 'metric_fu'
19
+
```
14
20
15
-
gem install metric_fu
21
+
And then execute:
16
22
17
-
If you have trouble installing the gem
18
-
- try adding metric_fu to your Gemfile and bundling.
19
-
- file a ticket on the issues page.
23
+
```
24
+
$ bundle
25
+
```
26
+
27
+
### Considerations
20
28
21
29
MetricFu is [cryptographically signed](http://guides.rubygems.org/security/).
22
30
To be sure the gem you install hasn't been tampered with:
31
+
23
32
- Add my public key (if you haven't already) as a trusted certificate `gem cert --add <(curl -Ls https://raw.github.com/metricfu/metric_fu/master/certs/bf4.pem)`
24
33
-`gem install metric_fu -P MediumSecurity`
25
34
@@ -29,29 +38,15 @@ This is necessary because not all of MetricFu's dependencies are signed, so we c
29
38
30
39
## Usage
31
40
32
-
From your application root. Running via Rake is still supported.
41
+
From your application root, run:
33
42
34
-
```sh
35
-
metric_fu
43
+
```
44
+
$ metric_fu
36
45
```
37
46
38
-
See:
39
-
-`metric_fu --help` for more options
40
-
- Documentation and Compatibility below
41
-
- There is also a [wiki page of user-maintained usage information](https://github.com/metricfu/metric_fu/wiki#usage)
You can specify a different formatter at the command line by referencing a built-in formatter or providing the fully-qualified name of a custom formatter.
173
168
174
-
175
169
```sh
176
170
metric_fu --format yaml --out custom_report.yml
177
171
```
@@ -214,7 +208,7 @@ Then
214
208
metric_fu --formatMyCustomFormatter
215
209
```
216
210
217
-
See [lib/metric_fu/formatter/](lib/metric_fu/formatter/) for examples.
211
+
See [lib/metric_fu/formatter](https://github.com/metricfu/metric_fu/tree/main/lib/metric_fu/formatter) for examples.
218
212
219
213
MetricFu will attempt to require a custom formatter by
220
214
fully qualified name based on ruby search path. So if you include a custom
@@ -224,76 +218,48 @@ your .metrics configuration file.
224
218
225
219
For instance, to require a formatter in your app's lib directory `require'./lib/my_custom_formatter.rb'`
226
220
227
-
### Configure Graph Engine
221
+
### Configure Graph Engine
228
222
229
223
By default, MetricFu uses the Bluff (JavaScript) graph engine.
- ['ArgumentError; message invalid byte sequence in US-ASCII'](https://github.com/metricfu/metric_fu/issues/215) may be caused by having a default external encoding that is not UTF-8. You can see this in the output of `metric_fu --debug`
247
-
- OSX: Ensure you have set `LANG=en_US.UTF-8` and `LC_ALL=en_US.UTF-8`. You can add these to your `~/.profile`.
241
+
- OSX: Ensure you have set `LANG=en_US.UTF-8` and `LC_ALL=en_US.UTF-8`. You can add these to your `~/.profile`.
248
242
249
243
## Compatibility
250
244
251
-
* It is currently testing on MRI (>= 1.9.3), JRuby (19 mode), and Rubinius (19 mode). Ruby 1.8 is no longer supported.
252
-
253
-
* For 1.8.7 support, see version 3.0.0 for partial support, or 2.1.3.7.18.1 (where [Semantic Versioning](http://semver.org/) goes to die)
254
-
255
-
* MetricFu no longer runs any of the analyzed code. For code coverage, you may use a formatter as documented above
256
-
257
-
* The Cane, Flog, and Rails Best Practices metrics are disabled when Ripper is not available
258
-
259
-
### Historical
260
-
261
-
There is some useful-but-out-of-date documentation about configuring metric_fu at http://metricfu.github.io/metric_fu and a change log in the the HISTORY file.
262
-
263
-
## Resources:
264
-
265
-
This is the official repository for metric_fu. The original repository by Jake Scruggs at [https://github.com/jscruggs/metric_fu](https://github.com/jscruggs/metric_fu) has been deprecated.
* Jake's Post about stepping down: http://jakescruggs.blogspot.com/2012/08/why-i-abandoned-metricfu.html
255
+
Take a look at our [contributing guide](https://github.com/metricfu/metric_fu/blob/master/CONTRIBUTING.md).
256
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/metricfu/metric_fu](https://github.com/metricfu/metric_fu). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Code of Conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct/).
0 commit comments