1876 Commits

Author SHA1 Message Date
Jeff Williams
a80431ab3c Merge pull request #1160 from kevinoid/silent-template
Create silent template
2016-03-21 15:57:24 -07:00
Jeff Williams
c864604a8f Merge pull request #1166 from clenemt/master
Add docdash to README.md
2016-03-21 15:56:21 -07:00
clenemt
3c2493a72d Add docdash to available templates
If you are ever interested in another template you can merge this in :)
2016-02-29 16:37:19 +01:00
Kevin Locke
67d3693214 Create silent template
This commit creates a template named `silent` which outputs nothing at
all.  As discussed in the `README.md`, this can be useful when running
JSDoc as a linter to check for syntax errors or unknown tags.  It may
also be useful for testing or benchmarking.

The same effect can be achieved using the haruki template and
redirecting the output to /dev/null, but this has a few downsides:

* It is non-obvious.
* It is difficult to do in scripts which must run in bash and cmd.exe
  (like npm scripts).
* It is slower due to the unnecessary formatting work and output
  syscalls.

This template could be distributed as a third-party template, but given
the tiny code size, broad applicability, and potential usefulness for
tests, it makes sense to include it officially.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-02-24 14:28:53 -08:00
Kevin Locke
61a3599154 Support an Array of tags titles in allowUnknownTags
This commit adds support for specifying an Array of tags which are
unknown to JSDoc, but allowed without error.  It provides a more
granular way to disable such errors while retaining the benefits of
catching errant tags (e.g. typos).

The intended use case is catching errant tags when using additional
tools which support tags not recognized by JSDoc (e.g. Closure Compiler
and the tags discussed in #605).

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-02-24 11:38:56 -08:00
Kevin Locke
2a4d1250d1 Remove dead code for allowUnknownTags checking
When tagDef is falsey the previous if block is entered and the function
always returns.  Therefore, this code block can never be entered.  If it
could, it would log the same error as above.  Remove it.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2016-02-24 11:36:35 -08:00
Prayag Verma
13defb857e Update license 2016-01-19 01:02:41 +05:30
Jeff Williams
3dbb94f157 autodetect défault and repeatable parameters in ES2015 methods (#1144) 2016-01-14 17:23:37 -08:00
Jeff Williams
3d7004a87d Merge pull request #1139 from algolia/fix/lint-cli-double-quotes
fix(lint): fix cli quotes
2016-01-05 15:58:06 -08:00
Jeff Williams
45d9b5ee0e Merge pull request #1140 from algolia/fix/avoid-astnode.js-test-skip
test(astnode.js): avoid skipping tests having node.js inside
2016-01-05 15:57:19 -08:00
Jeff Williams
d62691288e Merge pull request #1141 from algolia/fix/handle-object-spread-operator
fix(object spread): support experimental object spread
2016-01-05 15:52:55 -08:00
vvo
b1cd9a2598 fix(object spread): support experimental object spread
As per https://github.com/sebmarkbage/ecmascript-rest-spread

This was badly failing previously.

Any insights/comments welcomed!
2016-01-05 18:10:46 +01:00
vvo
8799e898bf test(astnode.js): avoid skipping tests having node.js inside
This commit makes the test suite run test/specs/jsdoc/src/astnode.js

It was previously skipped because of the runtime being node and
astnode.js containing "node"..

I even wonder if its still relevant to try to support different
runtime, but that's for another PR I guess.
2016-01-05 17:28:58 +01:00
vvo
9eee32cd85 fix(lint): fix cli quotes
linting was failing
2016-01-05 17:05:19 +01:00
mlucool
23dad61d13 Update README.md to include gulp task 2015-12-20 08:47:01 -05:00
Jeff Williams
b1ff7c14ce Merge pull request #1122 from lukeapage/patch-1
Change URL for where docstrap now lives
2015-12-16 15:30:28 -08:00
Jeff Williams
bce36281b6 use appropriate styling for all tables (#1064) 2015-12-14 16:25:57 -08:00
Jeff Williams
759243af08 add test for the Markdown fix in acc47fdfd19c53f8836e6ec5ade939c94c23013a 2015-12-08 16:18:29 -08:00
Jeff Williams
012369aca4 Merge pull request #1036 from Oblongmana/fix/markdown-breaks-namepaths-with-special-characters
Fix markdown breaking namepaths w/special chars
2015-12-08 16:05:29 -08:00
Jeff Williams
3734dd621a differentiate CSS for h2 and h3 elements (#1108) 2015-12-08 15:55:39 -08:00
Ger Hobbelt
6be9dac616 fixing #1081:
- tightened-up detection of the correct path for the plugins by checking if the plugin file *itself* actually exists in the given path; it's done this way to cope with scenarios where JSDoc is executed in another project's working directory where *that* project has plugins of itself in a similar directory structure (`plugins/*`).

  We DO NOT change the search path used by JSDoc.

- ditto for templates: we know that a template MUST have a `publish.js` file at least, so we go and check if that one exists at the location where we would otherwise have assumed it does.
2015-12-07 16:24:41 -08:00
Jeff Williams
ab2d8626c1 better docs 2015-12-07 16:01:22 -08:00
Jeff Williams
41d33e8399 fix multiple naming issues with members of a class that is the default export (#1120) 2015-12-07 15:56:07 -08:00
Luke Page
ba59b32579 Change URL for where docstrap now lives 2015-12-07 08:13:11 +00:00
Jeff Williams
25ab7b6631 refactor 2015-12-05 10:41:12 -08:00
Jeff Williams
a19ae48831 bump version 2015-12-03 06:04:16 -08:00
Jeff Williams
1bdcc52156 correctly handle classes that are the default export (#1113) 2015-12-03 06:03:20 -08:00
Jeff Williams
224e796428 prevent crash when exporting an anonymous class (#1113) 2015-11-29 14:53:55 -08:00
Jeff Williams
ba673ff4c1 cleanup 2015-11-25 16:03:45 -08:00
Jeff Williams
62b5dbe0c7 3.4.0 3.4.0 2015-11-17 16:39:52 -08:00
Jeff Williams
7bb5ee4a3b add 3.4.0 changelog 2015-11-16 17:37:43 -08:00
Jeff Williams
6519acee73 bump revision 2015-11-09 16:28:34 -08:00
Jeff Williams
e2fd9e75de Merge pull request #1106 from tschaub/four
Remove Mozilla Rhino support
2015-11-02 15:52:35 -08:00
Jeff Williams
9cb730250b Merge pull request #1082 from nicksay/quick-fix-for-1070
Prevent output from being cut off in Node 4
2015-11-02 15:46:33 -08:00
Alex Nicksay
27f592a356 Prevent output from being cut off in Node 4
This is a quick fix for truncated output in Node 4 by only calling
`process.exit` for errors.

Closes #1070
2015-11-01 19:26:10 -05:00
Tim Schaub
621f012211 Remove Rhino support 2015-10-30 13:11:43 -06:00
Tim Schaub
d18c08001f Ignore node_modules 2015-10-30 07:22:31 -06:00
Tim Schaub
f26322ae4a Remove node_modules 2015-10-30 07:21:06 -06:00
Jeff Williams
ac7ce7c408 Merge pull request #1063 from rainum/hotfix/haruki-default-values
fix displaying of falsy default values in haruki template
2015-10-21 16:21:56 -07:00
Jeff Williams
4a40d00cac Merge pull request #1084 from nicksay/lint-space-after-keywords
Clean up space-after-keywords lint violations
2015-10-19 16:25:51 -07:00
Jeff Williams
52a5b3df0f prevent crash on JSXAttribute nodes with no value (#1085) 2015-10-19 16:21:36 -07:00
Jeff Williams
2e04416a9a prevent crash on ExperimentalRestProperty nodes (#1091) 2015-10-19 15:57:53 -07:00
Alex Nicksay
13f09f397c Clean up space-after-keywords lint violations
This eliminates the following when running `gulp lint`:

> error  Keyword "catch" must be followed by whitespace

Closes #1083
2015-10-07 10:46:18 -04:00
Jeff Williams
bd1cb9d166 update changelog for 3.3.3 2015-09-22 16:11:50 -07:00
Vazha Omanashvili
4f9545c13b fix displaying of falsy default values in haruki template 2015-09-10 20:54:50 +03:00
Jeff Williams
a6927b2fbd Merge pull request #1062 from mcarroll1283/walker-typo
Fix typo in JSXMemberExpresson walker
2015-08-31 15:42:25 -07:00
Matt Carroll
65ede6e4fb Fix typo in JSXMemberExpresson walker 2015-08-24 13:01:27 -07:00
Jeff Williams
5a58bdf5a5 support arrow function expressions (#555) 2015-08-20 11:01:08 -07:00
Jeff Williams
ebee2014ad look for JSX files by default (#1001) 2015-08-20 10:50:00 -07:00
Jeff Williams
4822bca6c1 whitespace 2015-08-19 09:50:46 -07:00