242 Commits

Author SHA1 Message Date
John Firebaugh
a5b94acf72 Test nested array param (fixes #98) 2015-10-12 20:33:40 -07:00
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
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
John Firebaugh
ea9a9132bb Eliminate hierarchy test dependencies 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
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
Tom MacWright
b173cf14a5 Fix parameter sorting, nest properties in Markdown 2015-10-05 15:02:33 -04:00
Tom MacWright
cbff1d3396 Cover es6 imports as well as exports 2015-10-05 14:26:44 -04:00
Tom MacWright
c38b91b4e3 Reparse transformed source 2015-10-05 14:19:48 -04:00
Tom MacWright
1e9e1dbe35 Update infer example 2015-10-04 22:01:18 -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
c058a0d2e7 Fix formatter test 2015-10-04 12:17:11 -04:00
Tom MacWright
6c4f1f68b4 Clean up github test 2015-10-04 12:12:57 -04:00
Tom MacWright
bd0d0705f6 💯 2015-10-04 12:08:49 -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
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
494eeed284 Test missed case in flatten 2015-10-02 09:28:19 -04:00
Tom MacWright
5878a2cca1 Test resolve_theme 2015-10-02 09:21:59 -04:00
Tom MacWright
bcb9e81185 Add tests for github processor 2015-10-01 21:44:00 -04:00
Tom MacWright
db319b0e1c Make github internals testable 2015-10-01 21:31:52 -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
9919f490f4 Support export default syntax. Fixes #73 2015-10-01 17:59:23 -04:00
Tom MacWright
2e8ea165d9 Fix custom markdown formatter tests 2015-09-28 21:09:20 -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
d71c03b2cc Make polyglot tests safe 2015-09-27 18:02:43 -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
11f505f5dd Rewrite hierarchy test 2015-09-26 18:11:37 -04:00
Tom MacWright
5a06c6640a Reorganize lint 2015-09-26 18:05:22 -04:00
Tom MacWright
acd3c70d49 Rewrite inferName tests 2015-09-26 17:00:04 -04:00