deathnote 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/changelog +1 -1
- data/lib/deathnote.rb +2 -2
- data/lib/deathnote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18d3b8146838ac27ae40469f4a45d863c8c5a909
|
4
|
+
data.tar.gz: d525786ea9f99481d595ed555242553e3bfd1f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5056cd59d4b05a5e4557124c9531003c8d5c610eb21a134ccbf98c9c938bf9745c5ec42c63e1286d25a23ea8fd89885954979fb2c6bf0c2f2dbd49a797289c8
|
7
|
+
data.tar.gz: 94e99a7e3e8ad0a3f85fdf8a48da11878e9694050234c6d0a3f1ea9ea3fd57ee4151c89cd056e595a0e92f212642eb310cbc2b6f7cebfa4c196e185123f29e57
|
data/README.md
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
deathnote gem receive 2 commit hash and compare those dead code from each version of project code.
|
4
4
|
This will be helpful if you have a lot false-positive result.
|
5
5
|
|
6
|
+
You may get better understanding with [this slide](https://speakerdeck.com/riseshia/find-out-potential-dead-codes-from-diff).
|
7
|
+
|
6
8
|
## Requirement
|
7
9
|
|
8
10
|
deathnote assumes you are using git.
|
@@ -28,7 +30,8 @@ Usage: deathnote [options] files_or_dirs
|
|
28
30
|
-p, --past-commit=[commit hash] Specify past commit hash.
|
29
31
|
-n, --newer-commit=[commit hash] Specify newer commit hash.
|
30
32
|
-r, --rails Filter some rails call conversions.
|
31
|
-
-
|
33
|
+
-w, --whitelist=FILE Whitelist with separated by \n
|
34
|
+
-e, --exclude=FILE1,FILE2,... Exclude files or directories in comma-separated list.
|
32
35
|
```
|
33
36
|
|
34
37
|
## Development
|
data/changelog
CHANGED
data/lib/deathnote.rb
CHANGED
@@ -50,10 +50,10 @@ module Deathnote
|
|
50
50
|
opts.on('-r', '--rails', 'Filter some rails call conversions.') do
|
51
51
|
options[:rails] = true
|
52
52
|
end
|
53
|
-
opts.on('-w', '--whitelist', 'Whitelist with separated by \n') do
|
53
|
+
opts.on('-w', '--whitelist=FILE', 'Whitelist with separated by \n') do
|
54
54
|
options[:whitelist] = File.read(s).split(/\n+/) rescue []
|
55
55
|
end
|
56
|
-
opts.on('-e', '--exclude=
|
56
|
+
opts.on('-e', '--exclude=FILE1,FILE2,...', Array, 'Exclude files or directories in comma-separated list.') do |list|
|
57
57
|
options[:exclude] = list
|
58
58
|
end
|
59
59
|
end.parse!
|
data/lib/deathnote/version.rb
CHANGED