John Firebaugh
39efefb2b7
Update to doctrine-0.7.0
2015-10-12 20:28:16 -07:00
John Firebaugh
efd5b4ccb4
Correctly name comments attached to module.exports ( fixes #178 )
2015-10-12 15:57:56 -07:00
John Firebaugh
4c2cc4d8b2
Infer module names
2015-10-12 15:29:30 -07:00
John Firebaugh
5449757782
More test cases and fixes for exports inference
2015-10-12 14:06:14 -07:00
John Firebaugh
9822f75b47
Fix output documentation
2015-10-12 11:08:25 -07:00
John Firebaugh
9dcfa84d1b
Drop @lends tags during membership inference ( fixes #161 )
2015-10-12 10:10:42 -07:00
John Firebaugh
268fcce66a
Infer module membership for [module.]exports ( fixes #113 )
2015-10-11 14:20:42 -07:00
John Firebaugh
341ab4a075
Use module pattern for infers
...
Some inferencing will require state.
2015-10-11 14:20:42 -07:00
John Firebaugh
7327e0093c
Make hierarchy tests 100% self-covering; fix bugs
2015-10-11 14:20:14 -07:00
Tom MacWright
171b7d707a
Improve internal documentation
2015-10-11 16:16:43 -04:00
Tom MacWright
2ea79c0870
Combine highlight and html. Fixes #173
2015-10-11 16:06:21 -04:00
Anand Thakker
cea83efc84
Fix broken build. No one saw that, right?
2015-10-09 09:21:22 -04:00
Anand Thakker
eb6892192b
Safely reset yargs
2015-10-09 09:05:14 -04:00
Tom MacWright
b3c990db1f
Simpler and stricter eslint
2015-10-06 20:31:50 -04:00
Tom MacWright
d7f06fa5c4
Store commentLineNumber on errors. Fixes #159
...
cc @jfirebaugh for the review
2015-10-06 16:23:22 -04:00
Tom MacWright
a65801a6d4
Add and test default parameter parsing.
...
cc @killercup this implements default parameter parsing for both
flow-annotated and unannotated methods
2015-10-06 15:51:46 -04:00
Tom MacWright
0aa42d294f
Enable and fix no-unused-vars rule
2015-10-06 15:28:32 -04:00
Tom MacWright
11826ad98c
Add return type inference as well
2015-10-06 10:44:08 -04:00
Tom MacWright
7730af7603
Implement flow type inference
...
cc @thejameskyle
`lib/flow_doctrine.js` is where we convert Babel-parsed
Flow annotations into doctrine-style objects so they
can be formatted with all of the existing helpers.
2015-10-06 10:31:54 -04:00
Anand Thakker
6545f3e5bf
Reset yargs to play nicely with documentation-readme
2015-10-05 22:17:47 -04:00
Anand Thakker
83517abd89
Fix: default to index.js if package.json doesn't specify
2015-10-05 21:43:16 -04:00
Tom MacWright
b173cf14a5
Fix parameter sorting, nest properties in Markdown
2015-10-05 15:02:33 -04:00
Tom MacWright
c38b91b4e3
Reparse transformed source
2015-10-05 14:19:48 -04:00
Tom MacWright
c50cb7e430
Specify babylon options
2015-10-05 09:45:52 -04:00
Tom MacWright
7b156d8769
Babel! 🙌
...
cc @jfirebaugh for the review
This was easier than expected.
2015-10-04 21:55:54 -04:00
Tom MacWright
5753da1af6
Just deal with comment.params, not comment.tags
2015-10-04 14:04:12 -04:00
Tom MacWright
30525847f3
Handle both flattened and unflattened forms
2015-10-04 13:27:15 -04:00
Tom MacWright
7ff858420e
Infer parameters
...
This uses the AST to add (untyped) params where they aren't explicitly
specified.
Would love to infer types here as well, but espree doesn't support
them yet.
cc @anandthakker / @jfirebaugh for the review
2015-10-04 12:51:41 -04:00
Tom MacWright
1e4dd63875
Never attach an AST to a trailing comment
2015-10-04 11:39:55 -04:00
Tom MacWright
0a122b51c2
Walk trailing comments. Fixes #93
...
cc @jfirebaugh for the review
2015-10-04 11:39:55 -04:00
Tom MacWright
1e8f0e8b36
Merge pull request #155 from documentationjs/arg-parsing
...
Pull additional parsing and validation into args.js
2015-10-04 11:22:12 -04:00
Anand Thakker
398f510582
Use Array.prototype.some()
...
Closes #152
2015-10-04 10:31:38 -04:00
Anand Thakker
ea4116fed1
Pull additional parsing & validation into args.js
2015-10-04 10:26:57 -04:00
Tom MacWright
01b34dee06
Add markdown_ast raw AST output mode
2015-10-03 16:57:37 -04:00
Tom MacWright
f0954859f6
mdast-powered Markdown output
2015-10-03 16:57:37 -04:00
Tom MacWright
791dcaf1d5
Remove ref to git_dir
2015-10-01 21:32:51 -04:00
Tom MacWright
db319b0e1c
Make github internals testable
2015-10-01 21:31:52 -04:00
Tom MacWright
1603bc6357
Simplifications
2015-10-01 20:41:50 -04:00
Tom MacWright
74b9bd4e0e
Fix tests for new error strategy
2015-10-01 20:41:50 -04:00
Tom MacWright
a848202dcf
Simplify error parsing by attaching errors to comments
2015-10-01 20:41:50 -04:00
Tom MacWright
b4764e15de
Use options
2015-09-30 14:02:30 -04:00
Tom MacWright
42babf7c03
Refactor arg parser out of binary
2015-09-30 13:55:47 -04:00
Tom MacWright
2e8ea165d9
Fix custom markdown formatter tests
2015-09-28 21:09:20 -04:00
Tom MacWright
de9ff078a6
Remove straggling mentions of streams
2015-09-28 20:40:44 -04:00
Tom MacWright
c24a9b88a4
Enable jsdoc rule and enforce it.
...
Also:
* Moves reduction out of parsers so that they don't have awkward
function signatures
2015-09-28 20:36:07 -04:00
Tom MacWright
717b0fde18
Simplify lint API
2015-09-27 18:00:12 -04:00
Tom MacWright
de0e3cc662
Make github search sync
2015-09-27 17:54:36 -04:00
Tom MacWright
a383a045e2
Fix tests
2015-09-27 12:46:09 -04:00
Tom MacWright
abf5100095
Rewrite more tests
2015-09-27 10:36:30 -04:00
Tom MacWright
5a06c6640a
Reorganize lint
2015-09-26 18:05:22 -04:00