<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FAidan9382%2FCodeAnalysis%2Fdoc</id>
	<title>Module:Sandbox/Aidan9382/CodeAnalysis/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FAidan9382%2FCodeAnalysis%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Sandbox/Aidan9382/CodeAnalysis/doc&amp;action=history"/>
	<updated>2026-04-23T03:53:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Sandbox/Aidan9382/CodeAnalysis/doc&amp;diff=18033671&amp;oldid=prev</id>
		<title>imported&gt;Aidan9382: dont generate a category for this</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Sandbox/Aidan9382/CodeAnalysis/doc&amp;diff=18033671&amp;oldid=prev"/>
		<updated>2023-10-30T07:37:29Z</updated>

		<summary type="html">&lt;p&gt;dont generate a category for this&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|beta|nocat=true}}&lt;br /&gt;
&lt;br /&gt;
This function provides basic analysis of module code, pointing out any unused variables or unexpected globals. Note that just because this module points out certain behaviour does not neccessarily mean the behaviour is wrong nor needs correcting, but is rather a guide.&lt;br /&gt;
&lt;br /&gt;
The code of this is mostly lifted from https://github.com/9382/Dump/tree/main/LuaObfuscator, which in turn lifts a lot of code from https://github.com/stravant/LuaMinify.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
This module can be required and used from the Debug console, like the following: &amp;lt;syntaxhighlight lang=lua inline&amp;gt;require(&amp;quot;Module:Sandbox/Aidan9382/CodeAnalysis&amp;quot;).run()&amp;lt;/syntaxhighlight&amp;gt;. The module will then log any behaviour it notices. The function can be provided a string argument to specify a target page other than the current page.&lt;br /&gt;
&lt;br /&gt;
This module can also be used via templates using &amp;lt;code&amp;gt;#invoke:&amp;lt;/code&amp;gt;, like the following: &amp;lt;syntaxhighlight lang=wikitext inline&amp;gt;{{#invoke:Sandbox/Aidan9382/CodeAnalysis|main}}&amp;lt;/syntaxhighlight&amp;gt;. The module will then produce a wikitable of anything it notes within the code. An argument can be provided to the first positional parameter to specify a certain page to analyse.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{#invoke:Sandbox/Aidan9382/CodeAnalysis|main}}&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Sandbox/Aidan9382/CodeAnalysis|main|Module:Wikitext Parsing}}&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Sandbox/Aidan9382/CodeAnalysis|main|Module:Banner shell}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Aidan9382</name></author>
	</entry>
</feed>