On Mon, Aug 11, 2014 at 10:23 AM, James Forrester
<jforrester(a)wikimedia.org> wrote:
On 10 August 2014 00:51, Ricordisamoa
<ricordisamoa(a)openmailbox.org> wrote:
If we're going to store JavaScript gadgets
and Lua modules in a central
wiki (this is planned, I suppose), some coding guidelines would be
certainly useful.
We've talked a good deal about adding a "global" stash of things to be
used
across WMF wikis and more widely (see this RfC
<https://www.mediawiki.org/wiki/Requests_for_comment/Global_scripts> for
example).
...and see also:
https://meta.wikimedia.org/wiki/Global-Wiki
https://meta.wikimedia.org/wiki/Requests_for_comment/Global_bits_and_pieces
We've talked a good deal about adding a proper
code review integration for
code written "in" a wiki (but there's not an RfC, because it's taken
as
given).
Ideally we'd do the two together (or the latter first) to make this sane
for everyone.
A code review system could easily support (and indeed probably should)
linting of content to help users. Note that our use of Ace in CodeEditor
does warnings like this for JS, for example. In "real" code review we're
encouraging the use of jscs to enforce coding style conventions, and it
might be worth doing something like this?
+1.
Helder