108 Commits

Author SHA1 Message Date
Michael Mathews
22e4812275 Allow externally documented objects to be extended, as if they were classes. Addresses Issue #145 2012-07-08 01:10:50 +01:00
Michael Mathews
51e1a785f8 Rhino likes the filepaths (all args really) to be url encoded, which is an issue if spaces appear in filepaths. This makes JSDoc cooperate better with that rule. 2012-07-08 01:07:49 +01:00
Michael Mathews
4ead9aa4f9 Merge pull request #140 from hegemonic/ce287745f15f420ec31006e6435e4b4505bca0ee
Make JSDoc JSHint-clean (part 2)
2012-07-05 13:00:50 -07:00
Jeff Williams
0fd9a3fee1 replace broken --strict option with working --lenient option
also fixes the test so that console.log actually works after it runs.
2012-07-05 00:00:03 -07:00
Jeff Williams
ce287745f1 enable JSDoc's "trailing" test 2012-07-04 16:27:06 -07:00
Jeff Williams
1951ea3821 enable JSHint's "undef" test 2012-07-04 16:22:08 -07:00
Michael Mathews
ff78852907 Resolve merge conflict. 2012-07-05 00:21:54 +01:00
Jeff Williams
c60f68286f enable JSHint's "newcap" test 2012-07-04 16:05:08 -07:00
Jeff Williams
dabb0b4410 enable JSHint's "immed" test 2012-07-04 16:01:55 -07:00
Jeff Williams
769a71298e enable JSHint's "forin" test 2012-07-04 15:59:33 -07:00
Michael Mathews
901d17baa3 Small tweaks required to get ready for upgrade to rhino 1.7r4. 2012-07-04 23:53:19 +01:00
Jeff Williams
324af73dcf enable JSHint's "curly" test 2012-07-04 15:19:31 -07:00
Jeff Williams
40898c19a1 enable JSHint's "bitwise" test 2012-07-04 15:06:11 -07:00
Jeff Williams
77f505f2a1 don't use destructuring assignment
this fixes a JSHint error that cannot be suppressed.
2012-07-04 14:34:46 -07:00
Jeff Williams
f7aacfd80c escape - in regexp
this fixes a JSHint error that cannot be suppressed.
2012-07-04 08:14:17 -07:00
Jeff Williams
dac7203816 don't use each() to iterate over an array, and remove another unnecessary semicolon
this fixes a JSHint error that cannot be suppressed.
2012-07-03 19:07:19 -07:00
Jeff Williams
9ade2a2fe2 remove unnecessary semicolon
this fixes a JSHint error that cannot be suppressed.
2012-07-03 18:55:25 -07:00
Jeff Williams
366c33ffe6 fix comment that totally freaked out JSHint
this fixes a JSHint error that cannot be suppressed.
2012-07-03 18:53:38 -07:00
Jeff Williams
a54b51e276 detab files to eliminate mixed spaces/tabs
this fixes a JSHint error that cannot be suppressed.
2012-07-03 18:40:15 -07:00
Jeff Williams
ee858cc894 replace "unsafe" character with HTML entity
this fixes a JSHint error that cannot be suppressed.
2012-07-03 18:31:03 -07:00
Jeff Williams
43a1c9ea8b don't silently fall through in a switch statement
this fixes a JSHint error that cannot be suppressed.
2012-07-03 18:29:04 -07:00
Jeff Williams
da39bdd302 rename Object.prototype.hasOwnProperty alias to hasOwnProp
this fixes a JSHint error that cannot be suppressed.
2012-07-03 17:45:44 -07:00
Jeff Williams
22e899fa9d change __dirname to env.dirname
this fixes a JSHint error that cannot be suppressed.
2012-07-03 17:37:17 -07:00
Michael Mathews
81f145708d Merge pull request #138 from hegemonic/strict-option
add a strict validation option that controls whether validation errors are fatal (issue #134)
2012-07-03 15:28:42 -07:00
Michael Mathews
afb2a3226a Merge pull request #137 from hegemonic/circular-refs
Parser creates circular references in enums
2012-07-03 15:26:31 -07:00
Jeff Williams
c095b6e20c add a strict validation option (defaults to true) that controls whether validation errors are fatal (issue #134) 2012-07-02 22:52:46 -07:00
Jeff Williams
5f23be1251 use doop() to break circular refs in enums, and add test for circular refs in enums 2012-07-02 20:49:26 -07:00
Jeff Williams
08da5ce4f6 move doop() function to doop.js 2012-07-02 20:48:08 -07:00
Jeff Williams
06c73c157d fix parser.js so it doesn't throw exceptions when parsing itself 2012-07-01 16:26:09 -07:00
Michael Mathews
6d914ee30e Added support for including README.md content on the output index page. Closes #128 2012-06-21 22:46:32 +01:00
Michael Mathews
c29e4e3309 Add support for default configuration values. Closes Issue #129. References Issue #126. 2012-06-21 21:09:40 +01:00
Michael Mathews
ef37251464 Fix for exception thrown when documenting symbols with special names like "hasOwnProperty". Closes #125. 2012-06-07 22:36:22 +01:00
Michael Mathews
810dd7f7fd Improved support for @alias when documenting inner classes as global. 2012-06-06 15:32:16 +01:00
Michael Mathews
1f6f4a7ee7 Added support for "include" and "exclude" of source files in the project configuration. Closes issue #56. 2012-06-01 00:00:02 +01:00
Jannon Frank
7d97a17421 Merge pull request #117 from jannon/SmartTestRunner
Upgrade testing framework
2012-05-06 03:59:43 -07:00
Michael Mathews
e0538ae011 Bugfix for exception thrown when the name of a member seen by the parser matches a name on the Object prototype. closes #116 2012-05-03 08:12:08 +01:00
Jannon
2d73440b3d Testing Framework Upgrade Part I
This first part of the testing framework upgrade:

- enhances the jsdoc script to allow switching to debug mode from the command line
- uses Jasmine to run tests
- adds flexibility to run tests from multiple root directories
- does automatic test discovery, so test files can just be created, dropped in an appropriate folder, and run without having to explicity add it to the test runner
- cleans up the test directory layout
- incorporates env.rhino.js which should make it easier to test templates
- is incomplete: this is just a savepoint.  About 1/3 of the tests have been converted.  The rest are still run through the old testrunner
2012-04-30 17:39:50 -07:00
Jannon
11aacdef1b Fix for valueOf key in object literals
This is a test (provided by julienbachmann) and a fix for an issue where the parser crashes when valueOf is used as a key in an object literal
2012-04-21 04:04:48 -07:00
Jannon Frank
dfd5955719 Merge pull request #100 from jannon/ExtendsTypeFix
Allow braces for @extends values (e.g. {Type})
2012-03-21 02:03:58 -07:00
Jannon
64ae4c013b Allow braces for @extends values (e.g. {Type})
Fixes#96.  Includes test
2012-03-21 01:58:41 -07:00
Jannon
9896096b88 Test and fix for #84 2012-03-21 00:02:44 -07:00
Jannon
00f3ed8dc6 typo fix in template helper and changes for split path and filename in doclet.meta 2012-03-16 03:06:26 -07:00
Jannon
28d0af0749 Separate doclet.meta.filename into doclet.meta.path and doclet.meta.filename when appropriate 2012-03-16 02:44:32 -07:00
Jannon Frank
eeb6611ea5 Merge pull request #78 from rafalwrzeszcz/feature-template-helper
Feature template helper
2012-03-16 01:56:53 -07:00
Jannon
026d1ac0fa The name collision solution from rafalwrzeszcz (#73) 2012-03-16 00:51:36 -07:00
Jannon
ecf2cfba3c Fix the recursive alias resolve test and track global variables so global aliases can be resolved 2012-03-15 22:13:08 -07:00
Jannon
a2259ac14c adding recursive alias resolving from rafalwrzeszcz 2012-03-15 20:09:50 -07:00
Jannon Frank
51d148fddd Merge pull request #83 from tschaub/extends
Properly inherit members from grandparents.
2012-03-15 17:49:29 -07:00
Jannon Frank
282da00517 Merge pull request #86 from jannon/FilesForAll
Always making source file list available to templates
2012-03-15 17:48:46 -07:00
Jannon
e35ef82d99 A different take on a more flexible parser/plugin architecture
Plugins can now do any or all of three things:
- Add tags to the dictionary by exporting a 'defineTags' function
- Register event handlers like before, but exporting them in a 'handlers' object.
- Add a node visitor to the parser.  As the parser visits nodes, it will give all attached plugin visitors an opportunity to process the node as well.  This gives plugin creators an opportunity to do things with symbols that the standard parser doesn't handle (like class factory function calls)

This includes a new Rhino jar just for JSDoc3!  Well, it just has a small change that causes Rhino's parser to attach jsdoc comments to function call nodes when present.
2012-02-24 05:53:03 -08:00