I've began the netbeans config according to conventions (because I think it is a more important tool than the CodeSniffer Standard) but I have a few questions :

White spaces before parentheses : My point of view is to use that whitespace to make a difference between control structure and methods.

Therefore I would add a whitespace before each opening parenthesis of control structure (if, elseif, for, foreach, while, catch, switch, array) and not before the opening parenthesis of method (neither definition nor call)

I do not agree with the wrapping policy I would personnaly wrap in almost all cases when the line is longer than 120 chars. The only exception is for strings which sometimes cannot be wrapped (but I personnaly wrap them as much as keeping the meaning of the string is possible).

Here is a config transforming beforeFormatting.php into afterFormatting.php

PS : this is my nbproject/project.properties file , if you just want to add the formatter rules, just copy the lines related to formatting ;)

Systho

Le 18/03/2011 9:10, Stefaan Vanbillemont a écrit :
Systho,

I will try the CLI script today .. I keep you informed about the outcome.

Kind Regards,

Stefaan.


Op 17/03/11 17:20, Philippe Van Eerdenbrugghe schreef:
Dear all,

The new CLI installer is there.

if you want to use it just go into your console and type :

php script/chamilo.php install -c MyConfigFile

or

php script/chamilo.php install --configuration=MyConfigFile

The format of the config file is the one you cand find in install/php/lib/command_line_configuration.dist.php but you should only override the values you want to change.


Systho

_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev

_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev

<<< text/html; name="beforeFormatting.php": Unrecognized >>>

<<< text/html; name="afterFormatting.php": Unrecognized >>>
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs=true
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width=4
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.spaces-per-tab=4
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.tab-size=4
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width=120
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.usedProfile=project
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineArrayInit=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineAssignment=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineBinaryOp=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineCallArgs=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineFor=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineImplements=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineMethodParams=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineParenthesized=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.alignMultilineTernaryOp=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.catchBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.classDeclBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.continuationIndentSize=4
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.forBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.ifBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.methodDeclBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.otherBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.placeCatchOnNewLine=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.placeElseOnNewLine=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.placeNewLineAfterModifiers=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.placeWhileOnNewLine=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.spaceBeforeArrayDeclParen=true
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.switchBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.whileBracePlacement=NEW_LINE
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapArrayInit=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapChainedMethodCalls=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapDoWhileStatement=WRAP_NEVER
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapExtendsImplementsKeyword=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapExtendsImplementsList=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapForStatement=WRAP_NEVER
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapIfStatement=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapMethodCallArgs=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapMethodParams=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapTernaryOps=WRAP_IF_LONG
auxiliary.org-netbeans-modules-editor-indent.text.x-php5.CodeStyle.project.wrapWhileStatement=WRAP_NEVER
ignore.path=
include.path=\
    ${php.global.include.path}
php.version=PHP_53
phpunit.bootstrap=
phpunit.bootstrap.create.tests=false
phpunit.configuration=
phpunit.suite=
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.
_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev

Reply via email to