Skip to content

Commit

Permalink
Document luacheck.get_message function
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Jul 18, 2015
1 parent b77688a commit 6c1a296
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 1 deletion.
Binary file modified doc/.doctrees/environment.pickle
Binary file not shown.
Binary file modified doc/.doctrees/module.doctree
Binary file not shown.
1 change: 1 addition & 0 deletions doc/_sources/module.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Use ``local luacheck = require "luacheck"`` to import ``luacheck`` module. It co
* ``luacheck.process_reports(reports, options)``: Processes array of analysis reports and applies options. ``reports[i]`` uses ``options``, ``options[i]``, ``options[i][1]``, ``options[i][2]``, ... as options, overriding each other in that order. Options table is a table with fields similar to config options; see :ref:`options`. Analysis reports with field ``fatal`` are ignored. ``process_reports`` returns final report, see :ref:`report`.
* ``luacheck.check_strings(sources, options)``: Checks array of sources using options, returns final report. Tables with field ``fatal`` within ``sources`` array are ignored.
* ``luacheck.check_files(files, options)``: Checks array of files using options, returns final report. Open file handles can passed instead of filenames, in which case they will be read till EOF and closed.
* ``luacheck.get_message(issue)``: Returns a string message for an issue, see :ref:`report`.

``luacheck._VERSION`` contains Luacheck version as a string in ``MAJOR.MINOR.PATCH`` format.

Expand Down
1 change: 1 addition & 0 deletions doc/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ <h1>Luacheck module<a class="headerlink" href="#luacheck-module" title="Permalin
<li><tt class="docutils literal"><span class="pre">luacheck.process_reports(reports,</span> <span class="pre">options)</span></tt>: Processes array of analysis reports and applies options. <tt class="docutils literal"><span class="pre">reports[i]</span></tt> uses <tt class="docutils literal"><span class="pre">options</span></tt>, <tt class="docutils literal"><span class="pre">options[i]</span></tt>, <tt class="docutils literal"><span class="pre">options[i][1]</span></tt>, <tt class="docutils literal"><span class="pre">options[i][2]</span></tt>, ... as options, overriding each other in that order. Options table is a table with fields similar to config options; see <a class="reference internal" href="config.html#options"><em>Config options</em></a>. Analysis reports with field <tt class="docutils literal"><span class="pre">fatal</span></tt> are ignored. <tt class="docutils literal"><span class="pre">process_reports</span></tt> returns final report, see <a class="reference internal" href="#report"><em>Report format</em></a>.</li>
<li><tt class="docutils literal"><span class="pre">luacheck.check_strings(sources,</span> <span class="pre">options)</span></tt>: Checks array of sources using options, returns final report. Tables with field <tt class="docutils literal"><span class="pre">fatal</span></tt> within <tt class="docutils literal"><span class="pre">sources</span></tt> array are ignored.</li>
<li><tt class="docutils literal"><span class="pre">luacheck.check_files(files,</span> <span class="pre">options)</span></tt>: Checks array of files using options, returns final report. Open file handles can passed instead of filenames, in which case they will be read till EOF and closed.</li>
<li><tt class="docutils literal"><span class="pre">luacheck.get_message(issue)</span></tt>: Returns a string message for an issue, see <a class="reference internal" href="#report"><em>Report format</em></a>.</li>
</ul>
<p><tt class="docutils literal"><span class="pre">luacheck._VERSION</span></tt> contains Luacheck version as a string in <tt class="docutils literal"><span class="pre">MAJOR.MINOR.PATCH</span></tt> format.</p>
<p>Using <tt class="docutils literal"><span class="pre">luacheck</span></tt> as a function is equivalent to calling <tt class="docutils literal"><span class="pre">luacheck.check_files</span></tt>.</p>
Expand Down
Binary file modified doc/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docsrc/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Use ``local luacheck = require "luacheck"`` to import ``luacheck`` module. It co
* ``luacheck.process_reports(reports, options)``: Processes array of analysis reports and applies options. ``reports[i]`` uses ``options``, ``options[i]``, ``options[i][1]``, ``options[i][2]``, ... as options, overriding each other in that order. Options table is a table with fields similar to config options; see :ref:`options`. Analysis reports with field ``fatal`` are ignored. ``process_reports`` returns final report, see :ref:`report`.
* ``luacheck.check_strings(sources, options)``: Checks array of sources using options, returns final report. Tables with field ``fatal`` within ``sources`` array are ignored.
* ``luacheck.check_files(files, options)``: Checks array of files using options, returns final report. Open file handles can passed instead of filenames, in which case they will be read till EOF and closed.
* ``luacheck.get_message(issue)``: Returns a string message for an issue, see :ref:`report`.

``luacheck._VERSION`` contains Luacheck version as a string in ``MAJOR.MINOR.PATCH`` format.

Expand Down

0 comments on commit 6c1a296

Please sign in to comment.