No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lua-checks Add files via upload May 4, 2017
lua-squid
sonar-lua-plugin
sslr-lua-toolkit Update LuaToolkit.java May 4, 2017
.travis.yml
LICENSE Add License Oct 27, 2016
README.md
pom.xml
travis.sh

README.md

SonarQube Lua Plugin

Description

This plugin enables analysis of Lua project within SonarQube:

Steps to Analyze a Lua Project

The metrics:

  • Computes the following metrics:

  • LINES_OF_CODE,

  • LINES,

  • FILES,

  • COMMENT_LINES,

  • FUNCTIONS,

  • STATEMENTS,

  • TABLECONSTRUCTORS,

  • COMPLEXITY;

Complexity

The following elements increment the complexity by one:

  • FUNCTION

  • FUNCSTAT

  • WHILE_STATEMENT

  • FOR_STATEMENT

  • IF_STATEMENT

  • DO_STATEMENT

  • REPEAT_STATEMENT

  • ELSEIF_STATEMENT

  • TAILCALL

  • BREAK

  • AND

  • OR

Rules

  • FunctionComplexityCheck.

  • MethodComplexityCheck

  • LocalFunctionComplexityCheck

  • FunctionCallComplexityCheck

  • FileComplexityCheck.

  • TableComplexityCheck

  • FunctionWithTooManyParametersCheck.

  • TableWithTooManyFieldsCheck.

  • NestedControlFlowDepthCheck

  • NestedFunctionsDepthCheck

  • NestedTablesDepthCheck

  • LocalFunctionNameCheck

  • LineLengthCheck

  • TooManyLinesInFileCheck

  • CommentRegularExpressionCheck

  • XPathCheck