?
avatar brunowego
brunowego
8 Jan 2013

I get some messages when use in the same line more than 1 php code.

To solve that I add in ruleset.xml this code:

< rule ref="Generic.Formatting.DisallowMultipleStatements.SameLine">
< severity>0
< /rule>

I use PHP_CodeSniffer version 1.4.3.
I could make a request to update the file ruleset.xml, or it would not be necessary?

avatar brunobatista brunobatista - open - 8 Jan 2013
avatar brunobatista
brunobatista - comment - 8 Jan 2013

I get another messager: Closing brace must be on a line by itself

I believe that "exclude-pattern" is not working ...

< rule ref="Squiz.WhiteSpace.ScopeClosingBrace">
<!-- These exceptions are temporary -->
< exclude-pattern>/administrator/components/
< exclude-pattern>/components/

< exclude-pattern>/plugins/
< exclude-pattern>/modules/

< exclude-pattern>/templates/
< exclude-pattern>/layouts/

< /rule>

I had to comment out the code to remove this message.

avatar javigomez
javigomez - comment - 8 Jan 2013

Hey Bruno, thanks for your input!!! ^_^

Just mention that the code sniffers are in this specific repository: https://github.com/joomla/coding-standards/tree/master/Sniffs
If you do a pull request I guess that is better to do it there first.

I recommend you to share this issue in the Platform mail list: https://groups.google.com/forum/?fromgroups#!forum/joomla-dev-platform

avatar zero-24 zero-24 - close - 8 Jan 2013
avatar brunobatista brunobatista - close - 8 Jan 2013
avatar brunobatista
brunobatista - comment - 8 Jan 2013

Thanks @javigomez!

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?
Build staging

Add a Comment

Login with GitHub to post a comment