Skip to content

Custom standard name in output #290

Closed Answered by jrfnl
kczx3 asked this question in Q&A
Jan 18, 2024 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Hmm... that doesn't sound right.

As per the links I gave you before, there are strict naming requirements, so basically your file, directory and namespace structure should look like this:

Directory Namespace Contains Remark
path/to/mlinks ruleset.xml Yes the actual directory name for the standard MUST match the name of the standard
path/to/mlinks/Sniffs/*/ mlinks\Sniffs\* *Sniff.php The * in directory path + namespace is your category name, like NameValidation, the * in the file name is the sniff name, like ValidVariableName

If you want a prefix for your namespace name, so Something\mlinks\Sniffs\Category, you can indicate that in the namespace attribute in the ruleset.xml fi…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@kczx3
Comment options

@kczx3
Comment options

@jrfnl
Comment options

Answer selected by kczx3
@jrfnl
Comment options

@kczx3
Comment options

Comment options

You must be logged in to vote
1 reply
@jrfnl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants