Module: lib/Sniff/SyntaxTree/FunctionNamingConventions

lib/Sniff/SyntaxTree/FunctionNamingConventions

new require("lib/Sniff/SyntaxTree/FunctionNamingConventions")(sourceCode, mediator)

Parameters:
Name Type Description
sourceCode module:lib/SourceCode
mediator module:lib/Mediator
Source:
A module representing a sniffer.
Source:

Methods

<inner> define(factory)

Override AMD `define` function for RequireJS
Parameters:
Name Type Description
factory function
Source:

<inner> run(rule, node)

Run the sniffer according a given rule if a given node type matches the case
Parameters:
Name Type Description
rule Object
node Object
Source:

<protected, inner> sniffCase(rule, node)

Report to the mediator if name contained in a given node doesn't match specified case (camel, pascal)
Parameters:
Name Type Description
rule Object
node Object
Source:

<protected, inner> sniffNumbers(rule, node)

Report to the mediator if name contained in a given node doesn't match specified `numbers in name allowed` convention
Parameters:
Name Type Description
rule Object
node Object
Source:

<protected, inner> sniffRepeatingUc(rule, node)

Report to the mediator if name contained in a given node doesn't match specified `repeating uppercaser` convention
Parameters:
Name Type Description
rule Object
node Object
Source:

<inner> validateRule(rule)

Check the contract
Parameters:
Name Type Description
rule Object
Source: