Commit graph

1430 commits

Author SHA1 Message Date
Tad Hardesty
6ca656a549 Bump versions for suite 1.3 2020-02-18 21:58:54 -08:00
Tad Hardesty
6c70374f11 Replace 2019 with 2020 in notices 2020-02-18 21:49:50 -08:00
Tad Hardesty
c684952afe Add json output mode to dreamchecker 2020-02-12 19:35:00 -08:00
Tad Hardesty
16ebb19b5d Remove slugify debug message, add 'rendering html' 2020-01-26 14:14:56 -08:00
Tad Hardesty
28839b6efe Add padding to pre, fix darkmode :target bgcolor 2020-01-26 13:51:54 -08:00
Tad Hardesty
55f07cd31d Highlight entire active headings rather than just name 2020-01-26 13:51:54 -08:00
Tad Hardesty
31af4dee77 Add anchor attributes to Markdown headings
Closes #91.
2020-01-26 13:51:54 -08:00
spookydonut
f4df75f22c Add ref() to builtins 2020-01-27 01:38:02 +08:00
Tad Hardesty
4e9e7f0fb5 Properly handle global procs 2020-01-25 20:54:57 -08:00
Tad Hardesty
1352b69490 Add crosslinking to procs and vars
Closes #92.
2020-01-25 20:39:11 -08:00
Tad Hardesty
cbbfc104ba Pass broken_link_callback to all markdown rendering 2020-01-25 20:20:25 -08:00
Tad Hardesty
855c26cc67 Query which types have docs earlier in the process 2020-01-25 20:16:01 -08:00
Tad Hardesty
6db1da9a9c Rename types_with_docs to type_docs 2020-01-25 20:07:24 -08:00
Tad Hardesty
f1dc9bfd27 Add broken link handling for macro names 2020-01-25 20:02:47 -08:00
Tad Hardesty
568aaa0f01 Remove progress indicator from dmdoc 2020-01-25 19:54:48 -08:00
Tad Hardesty
2d080b93d1 Change handle_crosslink to capture all_type_names 2020-01-25 19:46:41 -08:00
Tad Hardesty
c0ce2f2a7d Move hrefable collation above module rendering 2020-01-25 19:29:59 -08:00
Tad Hardesty
cbd1b35d22 Split Module::items_wip into a predecessor type 2020-01-25 19:18:34 -08:00
Tad Hardesty
232e4830a4 Pass all_type_names to linkify_type more directly 2020-01-25 18:43:54 -08:00
Tad Hardesty
4daada0c9f Inline tera filters into closures again 2020-01-25 18:41:10 -08:00
Tad Hardesty
d2bdd447a2 Move tera initialization later in the process 2020-01-25 18:24:56 -08:00
Tad Hardesty
58a95d529c Add links to parent vars and procs if documented
Closes #93.
2020-01-25 18:04:31 -08:00
Tad Hardesty
a592e94286 Improve dmdoc template error formatting 2020-01-25 14:52:50 -08:00
Tad Hardesty
bdae56058e Fix linkify_type calls in templates for tera 1.0 2020-01-25 14:22:09 -08:00
Tad Hardesty
2467a8992a Enable strikethrough in dmdoc rendering 2020-01-25 14:06:47 -08:00
Tad Hardesty
9d0c265d5f Update dmdoc to tera 1.0 2020-01-24 21:50:07 -08:00
Tad Hardesty
714c85d436 Update lsp-types dependency 2020-01-24 21:36:50 -08:00
Tad Hardesty
6aaf1c79d3 Run cargo update 2020-01-24 21:33:07 -08:00
Tad Hardesty
05ed24d3fe Use TryFrom in Int Pow Int 2020-01-24 21:22:27 -08:00
spookydonut
0871ccffe4 Fix Pow constant eval by using checked_pow (#164) 2020-01-24 21:10:06 -08:00
spookydonut
f26399f215 Bump builtins to build 1508 (#163) 2020-01-24 21:09:49 -08:00
Tad Hardesty
c5e301bd70 Merge dreamchecker main() and run() into a common code path 2020-01-22 21:28:16 -08:00
spookydonut
259c0a4d9e Add check_var_defs to dreamchecker::run, comments (#158) 2020-01-22 17:33:46 -08:00
spookydonut
09b016736c
return type test (#162) 2020-01-23 01:27:19 +08:00
spookydonut
4c6cd7ee0b
These defines were wrong (#161) 2020-01-23 01:26:46 +08:00
spookydonut
185b8ba5e2 Add static return types for built-in global procs (#128)
Only for ones that return types or lists.
2020-01-21 19:51:02 -08:00
spookydonut
9dbcfefe2f Add off-by-default lint to forbid relative pathing (#150)
Warning: extremely opinionated code standard linting.

Closes #148.

This detects type definitions without a leading / as relative though.
2020-01-21 19:46:13 -08:00
spookydonut
f3d4820c72 Warn about invalid filter() kwargs (#154)
Removes a TODO and leaves a new one.
2020-01-21 19:10:46 -08:00
spookydonut
70bb8b682d Add option for dmdoc to always use typepath names (#149)
Closes #94.
2020-01-21 19:03:47 -08:00
spookydonut
8f1fda64ee Fix new . parse error (#153)
Fixes #85.
2020-01-21 19:01:10 -08:00
spookydonut
45e28e6ab3
Add targeted dreamchecker unit testing (#156)
* Add targetted dreamchecker unit testing

* check op overloads

* enhancements

* change request

* scream

* kwarg

* more

* Hide the test_helpers module from documentation

* Remove redundant `extern crate`

* Remove trailing whitespace

Co-authored-by: Tad Hardesty <tad@platymuus.com>
2020-01-21 17:57:15 +08:00
spookydonut
321f7ccd7a
Add configuration option for "SpacemanDMM_final" var declare warnings (#157) 2020-01-21 17:42:39 +08:00
Tad Hardesty
ffd9445e7f Add .editorconfig 2020-01-20 18:11:08 -08:00
Tad Hardesty
a04136cfc2 Add regression test for defined() 2020-01-18 14:22:15 -08:00
Tad Hardesty
52829daf27 Downgrade override_precedes_definition to a hint 2020-01-18 14:22:15 -08:00
Tad Hardesty
34f605c86f Add more info to override_precedes_definition messages 2020-01-18 14:22:15 -08:00
spookydonut
bb70113d0f Fix regression on defined() preprocessing (#152)
Fixes #96.

0a650be853 changed the preprocessor to 
always substitute macros for their value if they were defined, as such 
`#if defined(FOO)` would cause a lint error if `FOO` was defined.

There were two different errors with the exact same message, the first 
would happen if `#define FOO` because `defined()` would have no 
arguments.  The second would happen if `#define FOO 1` because `1` 
isn't an ident.

Because of those tangentially related things I discovered in my 
attempts to fix the bug, I've changed the error messages to be more 
specific.
2020-01-18 14:22:07 -08:00
spookydonut
b945de9315 Readd "override precedes definition" warning (#147)
Now with configuration option.
2020-01-18 13:58:37 -08:00
spookydonut
8f5a0f7be9 Add world.Profile() and args for other world procs (#155) 2020-01-17 23:27:05 -08:00
steamport
b17066d634 Add render_source argument to /proc/filter (#145) 2020-01-14 22:08:52 -08:00