Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure PHP coding rules in netbeans 7.4

Tags:

php

netbeans

I recognized that there are new hints in Netbeans 7.4 for PHP coding.

For example there is a "Too Many Lines" hint which says:

Method Length is 115 Lines (10 allowed)

Another hint is:

Too Many Nested Blocks in Function Declaration.

I found out that I can disable each Hint under: Tools > Options > Editor > Hints > PHP.

But I don't want to disable the Too Many Lines Hint completely. What I want to do is to configure the IDE to allow 100 lines instead of 10. Is there a way to set the coding rules?

like image 804
steven Avatar asked Nov 04 '13 13:11

steven


1 Answers

It's quite simple, and I bet you'll laugh about the solution. The default NetBeans Preferences window just hides the option based on window size. Just stretch out the window widely and you'll see that there's actually a input to change the default value from 10 to whatever you want :)

Enlarged

like image 196
mathielo Avatar answered Nov 17 '22 20:11

mathielo