Skip to content

Commit 7133cb0

Browse files
author
Zachary Scott
committed
update undocumented and poor documented list, and add recently generated coverage report files
1 parent b9de41a commit 7133cb0

5 files changed

+11523
-14
lines changed

_posts/2011-10-06-step-by-step-guide.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ Search for "is not documented" in "documentation_coverage.txt". Find something
4343
that interests you, and document it. You can see how much of Ruby is documented
4444
by looking at the stats at the bottom of the file.
4545

46+
We have generated a few of these reports for various areas of the MRI source,
47+
see our <a href="/undocumented-areas.html#CoverageReport">undocumented coverage
48+
report</a>.
49+
4650
<a name="Documenting"></a>
4751
<a class="top" href="#">top</a>
4852
## Documenting

_posts/2011-10-07-undocumented-areas.markdown

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,17 @@ Many modules in Ruby lack a basic top-level description of what they do. In many
1515
### Classes/Modules which lack documentation
1616

1717
- Debug
18-
- Encoding
1918
- Fiddle
20-
- IRB*
21-
- Mkmf
22-
- Monitor::MonitorMixin
23-
- Mutex_m
2419
- Profile, Profiler
25-
- RbConfig
2620
- RSS
27-
- Thread
21+
- RbConfig
2822

2923
### Classes/Modules with poor documentation
3024

3125
- ARGF
3226
- CMath need clarifications (Complex is now in core, what does it do now?)
3327
- Digest: no examples (Digest::MD5 is not even in the class list)
34-
- Enumerable
35-
- Float
36-
- PTY
28+
- OptionParser
3729
- Racc
3830
- Rinda
3931
- Sync, Sync_m
@@ -42,12 +34,18 @@ Many modules in Ruby lack a basic top-level description of what they do. In many
4234
### More specialized things
4335

4436
- initialize_copy
45-
- Object#hash
4637

38+
<a name="CoverageReport"></a>
39+
<a class="top" href="#">top</a>
40+
### Undocumented Coverage Report
4741

48-
### Some other tips for finding areas to document
42+
We also have a report of undocumented modules, classes, and methods that was
43+
generated from RDoc using the `rdoc -C path/to/files` command.
4944

50-
- Look near `Init_<class name>` in `<class_name>.c`
45+
* <a href="/assets/undocumented_core.txt">Core classes</a>
46+
* <a href="/assets/undocumented_lib.txt">Standard Ruby libraries</a>
47+
* <a href="/assets/undocumented_ext.txt">Standard Ruby extensions</a>
5148

52-
- [List of class-level documentation by byte length](https://gist.github.com/1254953). Low numbers don't necessarily mean poor documentation, but if you see a much-used class low on the list, it may be a candidate for improvement.
49+
### Some other tips for finding areas to document
5350

51+
- Look near `Init_<class name>` in `<class_name>.c`

assets/undocumented_core.txt

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
2+
The following items are not documented:
3+
4+
class File # is documented
5+
6+
# in file file.c
7+
Separator = nil
8+
# in file file.c
9+
SEPARATOR = nil
10+
# in file file.c
11+
ALT_SEPARATOR = nil
12+
# in file file.c
13+
PATH_SEPARATOR = nil
14+
end
15+
16+
class Hash # is documented
17+
18+
# in file hash.c:1216
19+
def initialize_copy(p1); end
20+
21+
end
22+
23+
class IO # is documented
24+
25+
# in file io.c
26+
SEEK_SET = nil
27+
# in file io.c
28+
SEEK_CUR = nil
29+
# in file io.c
30+
SEEK_END = nil
31+
end
32+
33+
module Kernel # is documented
34+
35+
# in file eval.c:1495
36+
def __callee__(); end
37+
38+
end
39+
40+
41+
class LoadError # is documented
42+
43+
attr_reader :path # in file error.c
44+
end
45+
46+
47+
module Marshal # is documented
48+
49+
# in file marshal.c
50+
MAJOR_VERSION = nil
51+
# in file marshal.c
52+
MINOR_VERSION = nil
53+
end
54+
55+
56+
module Math # is documented
57+
58+
# in file math.c
59+
PI = nil
60+
# in file math.c
61+
E = nil
62+
end
63+
64+
65+
module Process::GID # is documented
66+
67+
# in file process.c:4819
68+
def self.from_name(p1); end
69+
70+
end
71+
72+
module Process::UID # is documented
73+
74+
# in file process.c:4771
75+
def self.from_name(p1); end
76+
77+
end
78+
79+
class Random # is documented
80+
81+
# in file random.c
82+
DEFAULT = nil
83+
end
84+
85+
class RubyVM # is documented
86+
87+
# in file vm.c
88+
USAGE_ANALYSIS_REGS = nil
89+
# in file vm.c
90+
USAGE_ANALYSIS_INSN_BIGRAM = nil
91+
end
92+
93+
94+
Files: 77
95+
96+
Classes: 91 ( 0 undocumented)
97+
Modules: 18 ( 0 undocumented)
98+
Constants: 115 (14 undocumented)
99+
Attributes: 1 ( 1 undocumented)
100+
Methods: 1677 ( 4 undocumented)
101+
102+
Total: 1902 (19 undocumented)
103+
99.00% documented
104+
105+
Elapsed: 34.4s

0 commit comments

Comments
 (0)