Groggy Dice
ea380c21c4
wmlscope: import glob for Windows shell
...
The Windows cmd shell will not expand a globbed argument by default, in
fact it will make the argument invalid. Importing and utilizing the glob
module is needed for x-platform.
Globbing is especially important for breaking up the subtree, so wmlscope
doesn't give off "more than one resource/definition is visible here"
errors.
2014-08-01 04:34:56 -04:00
Groggy Dice
a88e97b5e0
wmlscope: fix mistakes in help and options pointed out by Elvish Hunter
...
See EH's forum post:
http://forums.wesnoth.org/viewtopic.php?f=10&t=40397#p570438
2014-06-09 22:00:27 -04:00
Alexander van Gessel
38b224c1ff
Revert "Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old""
...
This reverts commit 23b72d6956
.
2013-08-09 00:13:46 +02:00
Thibault Févry
23b72d6956
Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old"
...
This reverts commit 5fa5c03411
, reversing
changes made to 06374c64ba
.
2013-08-08 18:50:46 +02:00
Alexander van Gessel
d394f27afb
Some python syntax updates for the WML tools
2013-07-26 15:38:05 +02:00
Elvish_Hunter
8200214e9b
wmllint, wmlscope and wmlindent: fixed bug caused by Windows' command prompt appending double quotes to arguments
2013-02-23 13:04:12 +00:00
Timotei Dolean
79f2309489
add the 'Unresolved reference' in each reported line...
...
...instead of adding one comment
2010-08-19 20:45:11 +00:00
Eric S. Raymond
b1fe81d099
Progress option for wmlscope.
2010-07-19 15:04:06 +00:00
Eric S. Raymond
e66a6eacf6
Flag specific macro arguments that have no typechecking with suffix ?
2010-02-08 18:26:07 +00:00
Eric S. Raymond
767c75358a
Typo fix.
2010-01-13 23:34:10 +00:00
Gunter Labes
5b3a5412d4
fixed listing logic
2010-01-13 09:26:00 +00:00
Eric S. Raymond
bf36440ece
Avoid a duplicative calculation to improve the cross-referencer's performance.
2009-10-31 11:10:11 +00:00
Eric S. Raymond
617ed57222
Teach wmllint how to catch truncated sound-file names.
2009-09-04 04:22:17 +00:00
Eric S. Raymond
33a61c6a10
Make python tools use hashlib instead of the deprecated md5 module.
2009-05-15 02:29:34 +00:00
Eric S. Raymond
40aa7d0ce5
Oops, don't discard *all* errors.
2009-03-18 14:43:21 +00:00
Eric S. Raymond
11efcc99ec
Make wmlscope abort gracefully (without stack trace) on interrupt.
2009-03-18 14:41:39 +00:00
Eric S. Raymond
38aa1e661e
Add code to detect image below 72&72 size.
2008-11-14 13:11:48 +00:00
Eric S. Raymond
48cadae1ad
Another wmllint hack around the macro processor.
2008-10-14 23:14:35 +00:00
Eric S. Raymond
0d43b36615
Teach wmlscope to selectively ignore multiple macro definitions.
2008-10-14 22:30:21 +00:00
Eric S. Raymond
c014cbe185
Beat wmlscope into not complaining about multiple definitions...
...
...of the carryover macros (they're conditionalized, but wmlscope
cannot know this).
2008-09-30 01:09:12 +00:00
Piotr Cychowski
748220eff8
Commit patch #1076
2008-06-29 16:52:29 +00:00
Eric S. Raymond
c978a28d52
Add an "alignment" type check to wmllint.
2008-03-20 20:26:51 +00:00
Eric S. Raymond
4a5a030151
Change definition-list format to carry more information.
2008-03-16 10:28:07 +00:00
Eric S. Raymond
5a693050e9
Make the --listfiles option work again.
2008-03-07 11:43:52 +00:00
Eric S. Raymond
43900022cf
Improve the duplicate detection...
...
...so that it normally only triggers on exported IDs. The
--collisions option check all IDs.
2008-03-07 11:36:44 +00:00
Eric S. Raymond
c2971fed96
Teach wmlscope how to detect duplicate unit IDs. Fix some trivial instances.
2008-03-07 10:19:25 +00:00
Eric S. Raymond
c3facc5d43
Document magic export comments.
2008-02-27 11:48:14 +00:00
Eric S. Raymond
b20adef3e9
Frewall in case of really ill-formed WML.
2008-02-27 02:48:23 +00:00
Eric S. Raymond
c14a607215
Add typelist feature.
2008-02-16 23:56:03 +00:00
Eric S. Raymond
e140ac971f
Add the ability to change the warning level with in-line comments.
2008-02-16 09:13:28 +00:00
Eric S. Raymond
de18297a39
Suppress trying to print out macro arity in normal listings.
2008-02-16 08:27:54 +00:00
Eric S. Raymond
6252baf0c9
Allow wmlscope to take multiple --foce-used options, and use the capability.
2008-02-13 18:03:43 +00:00
Eric S. Raymond
fe36193828
Collect statistics on macros with unchecked argument types.
2008-02-13 00:03:30 +00:00
Eric S. Raymond
d1c3678356
Generalize the --from option.
...
Add an images-unused production so we can find things than need to be
included in animation frames etc. Note, the report generator emits a
fair number of false positives through not recognizing implicit
references; I'll fix that next.
2008-02-10 18:32:20 +00:00
Eric S. Raymond
0ee463c8cf
Enrich macro type checking some more and simplify the type inference rules.
...
Also head off a potential bug noted by Mordante with WML that
looks like {X_SPAN},{Y_SPAN}.
2008-02-10 09:38:07 +00:00
Eric S. Raymond
28bee542c6
More formal-argument fixups and macro type checking.
2008-02-10 08:05:32 +00:00
Eric S. Raymond
74534ae07b
wmlscope can now list macros with untyped formals.
2008-02-10 06:15:29 +00:00
Eric S. Raymond
fc045b288e
Impprove reporting of type mismatches. Fix a few more formal args.
2008-02-10 05:18:39 +00:00
Eric S. Raymond
7eb3510fca
Implement checking of range, span, and filter types in macros.
...
Show the type signatures in ythe wmlscope error messages for the mismatches.
2008-02-06 20:22:44 +00:00
Eric S. Raymond
3bf19bb1f1
wmlscope now does some argument type checking of macros.
...
The logic for deducing expected types from formals needs work.
2008-02-06 11:47:20 +00:00
Eric S. Raymond
2f30f121cc
Implement zookeeper's FR #5 from bug #10990
...
check macro calls for mismatches in argument number. Fix a few
glitches found in mainline using this test.
2008-02-06 08:17:57 +00:00
Eric S. Raymond
746312be0a
Cosmetic fixes.
2008-01-31 19:36:29 +00:00
Eric S. Raymond
f39e2bd385
Sort cross-reference results by key.
2007-09-21 07:31:34 +00:00
Eric S. Raymond
b1b809feed
Omit textdomain declarations from generated macro reference, fix a typo.
2007-08-26 13:56:51 +00:00
Eric S. Raymond
17ec5556ba
Document what we're doing.
2007-07-24 12:54:34 +00:00
Eric S. Raymond
5606e00902
Document "no-icon".
2007-07-24 12:45:50 +00:00
Eric S. Raymond
0cdc363178
wmlscope now constructs implicit references to attack icons.
2007-07-22 19:16:39 +00:00
Eric S. Raymond
9433ae3fee
Implement a facility to make wmlindent ignore designated stretches of lines.
...
Allow generation of XHTML docs from macro comments indented in the new format.
2007-06-29 11:50:33 +00:00
Eric S. Raymond
7cf55aa99a
Fix the macro-reference generator.
2007-06-23 15:38:21 +00:00
Elias Pschernig
48a82a6f55
Grouped the installed python scripts into a single wesnoth module...
...
...as to not clutter up the python lib dir too much.
2007-05-31 19:06:25 +00:00