Commit graph

85 commits

Author SHA1 Message Date
Gunter Labes
76246291cd
Simplify campaign rank display 2023-08-11 21:41:42 +02:00
Gunter Labes
d5c76f7cc5
Use DATA variable consistently 2023-08-11 21:00:20 +02:00
Gunter Labes
73f2a6e90a
Update key bindings extraction 2023-08-11 20:56:13 +02:00
Gunter Labes
e863350260
Allow specifying the destination for the macro reference 2023-08-11 18:38:27 +02:00
Steve Cotton
f1ba89ec6d Fix mixed indents in the schema, and verify new additions
This uses tabs instead of spaces, because although that's not our coding
standard, it is only a few lines of changes.

The alternative of running wmlindent on these files changes 4700 lines.
2023-03-02 15:34:41 +01:00
Steve Cotton
1640076dc4 Make the CI check the indent on most of the unit tests
There were two `--exclude` statements both pointing at the data/test
directory before, which was a trivial bug.

Exclude cve_tests because of the binary file that's masquerading as a .cfg;
I think it's correct to exclude the whole directory because any new tests
added there might also use weird edge cases in the parsing.

Exclude lua_tests as a "keep this PR small" thing. We should fix the bugs in
wmlindent, but I don't want to take on that work.

The exclusion of TerrainWML is again because I don't want to take on the work
of working out whether it's problems with terrain masks or bugs in wmlindent.

Most of the files in those directories wouldn't be changed, the ones that would
(or would trigger an error about not being valid UTF-8 ) are:

* data/test/scenarios/cve_tests/test_cve_2018_1999023_2.cfg
* data/test/scenarios/lua_tests/functional/lua_functional.cfg
* data/test/scenarios/lua_tests/wesnoth/map/mapgen_filter.cfg
* data/test/scenarios/wml_tests/TerrainWML/test_terrain_mask.cfg
2023-01-20 02:28:54 +01:00
Celtic Minstrel
ef14581956 Remove make targets for the old and obsolete wmlvalidator
This validator was already removed in another commit, so there's no point in these targets existing.
2020-11-29 12:53:54 -05:00
gfgtdf
2f234a8823 add data/schema to wmlindent ignore
until we decided what to do with it
2020-10-19 23:53:52 +02:00
Charles Dang
3a90f86674 Addressed more whitespace issues from #2613
[ci skip]
2018-03-12 03:48:59 +11:00
Ignacio R. Morelle
09d5f799ac wmlscope: Make this and the template prerequisites for macro-reference.html
This makes it so changes in these three actually cause make to
regenerate the file if they are newer than it.
2017-07-23 19:59:19 -04:00
Ignacio R. Morelle
3821b7c416 Remove macro-reference.html on clean target 2015-12-16 15:24:29 -03:00
Ignacio R. Morelle
599504cee3 Exclude data/test from reindent target
wmlindent currently breaks things in there due to data/test containing
multiple triggers for bug #22264.
2015-04-07 21:07:30 -03:00
Eric S. Raymond
ff5f8b6852 Remove an obsolete production. 2010-06-18 16:15:27 +00:00
Fabian Müller
5a73121a0c Added a lint-low option for wmllint...
...and made more scenarios being available in multiplayer.
2010-02-17 06:27:48 +00:00
Alexander van Gessel
292dcd7bf6 Proof-of-concept GUI schema, with makefile entry to run it in data/tools 2010-02-16 16:19:48 +01:00
Alexander van Gessel
5950a82a68 Rewrite wmltest as wmlvalidator, unfinished, but somewhat functional 2010-02-14 23:52:57 +01:00
Ignacio R. Morelle
0716bef553 Rename *.xhtml snippets for macro-reference.html target to *.html 2010-01-21 13:54:49 +00:00
Ignacio R. Morelle
3efb87abd9 Rename macro-reference.xhtml target and its output to macro-reference.html 2010-01-21 13:53:08 +00:00
Eric S. Raymond
617ed57222 Teach wmllint how to catch truncated sound-file names. 2009-09-04 04:22:17 +00:00
Fabian Müller
a6837fe4cc added a rule for checking LoW only. 2009-04-12 19:25:56 +00:00
Eric S. Raymond
c7a09d7dcb Add a production for listing campaigns by rank order. 2009-03-18 22:04:50 +00:00
Eric S. Raymond
decb66a304 Alter commented-ount UMC def to something more useful,
...now that wesnoth-umc-dev exists.
2009-01-31 16:03:31 +00:00
Alexander van Gessel
09e8a90d44 Make a comment show properly. 2008-12-14 23:26:28 +01:00
Alexander van Gessel
ff5205c9b4 Add a 'test' target to tools makefile. 2008-12-14 23:26:01 +01:00
Eric S. Raymond
322bc6ece9 Add a warning comment. 2008-12-08 18:56:48 +00:00
Eric S. Raymond
e4e530334b Remove obsolete productions. 2008-12-08 18:54:31 +00:00
Eric S. Raymond
de549ba3cf Suppress fewer unused-images checks, but remove the unused-image check
from the default test.
2008-12-08 18:43:54 +00:00
Fabian Müller
6d6ba11807 adds a lint-utbs target to the pytools makefile 2008-11-27 15:46:25 +00:00
Fabian Müller
4941b95378 adds a target lint-low to the Makefile of the pytools 2008-11-26 18:59:43 +00:00
Eric S. Raymond
cdf6076a80 Spellchecking is no longer an experimental separate mode. 2008-11-04 23:32:42 +00:00
Eric S. Raymond
a055f9fbe2 Spell checking for WML text strings.
This is the infrastructure; there are still about 1500 exceptions to
be chased down.
2008-11-01 23:58:38 +00:00
Eric S. Raymond
bdbf60838a Address bug #12269 by making Ratheln's appearance trigger...
...any time the dwarves get through the midpoint of the pass and
making his survival a requirement for this scenario only.

In the process, introduce a REMOVE_HERO_ICON macro to the standard library.
I have tweaked Liberty to use it.
2008-09-03 00:34:46 +00:00
Eric S. Raymond
c900eff1fa The --oldversion switch is dead. 2008-08-29 18:57:03 +00:00
Eric S. Raymond
318486ce4b Reindent most of the data tree in preparation for making wmlindent smarter. 2008-08-28 17:57:00 +00:00
Gunter Labes
1b8d44e84d revert 2008-04-23T19:07:49Z!esr@thyrsus.com 2008-04-23 20:34:59 +00:00
Gunter Labes
8c61572b07 revert 2008-04-23T19:31:40Z!esr@thyrsus.com, something went wrong there... 2008-04-23 20:27:27 +00:00
Eric S. Raymond
9db68b9b88 Back out my previous commit; I misunderstood the spec for the name change. 2008-04-23 19:31:40 +00:00
Eric S. Raymond
6921485048 campaigns -> add-ons.
This has been tested with the game, but the campaign-server client may 
need work.
2008-04-23 19:07:49 +00:00
Eric S. Raymond
3a9b7440d1 Comment fix. 2008-03-26 14:14:56 +00:00
Eric S. Raymond
7ef7600fe3 No need to exclude unused image. 2008-03-26 14:13:25 +00:00
Eric S. Raymond
4b2f5eecc7 Clean up the way the game_config::svnrev string is computed...
...(now game_config::revsion).  As a result, user will never see
"unknown" when the SVN revision is not available.
2008-03-19 05:15:30 +00:00
Eric S. Raymond
303a039679 Use cancrecruit={yes,no} rather than canrecruit={1,0} everywhere,
...because it's a good example mainline should set for UMC.
This change was done mechanically with a wmllint enhancement.
2008-03-01 08:42:40 +00:00
Eric S. Raymond
a8cee73c12 Enrich the editor theme markup for hotkeys by adding a description= attribute.
A new script, data/tools/extractbindings, uses this to automatically
generate an up-to-date list of editor keybindings in a form suitable
for the wiki.
2008-02-29 21:11:35 +00:00
Eric S. Raymond
9c637bf7ae Keep some unwanted macros ot of the reference. 2008-02-26 10:43:19 +00:00
Eric S. Raymond
9b86ddb269 Suppress reporting of known unused images. 2008-02-19 23:42:35 +00:00
Eric S. Raymond
e3c2652f31 Scenery-scattering for two more campaigns.
The images-unused test noe passes on mainline.
2008-02-17 14:59:57 +00:00
Eric S. Raymond
c9d86da3f7 Get rid of the FAKE_REFERENCE kluge. 2008-02-16 10:48:20 +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
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
28bee542c6 More formal-argument fixups and macro type checking. 2008-02-10 08:05:32 +00:00