I
I
ildar r. khasanshin2017-02-20 18:55:24
NetBeans
ildar r. khasanshin, 2017-02-20 18:55:24

Is it possible to set up additional notes on the code?

opened the same file
noticed that netbeans displays more notifications in the code
for example
1 do not refer directly to the $_SERVER superglobal array (* hello to the bitrix file header / footer *), instead you can use the filter_input() filtering function
2 class length is 920 lines (allowed 200)
3 method length is 31 lines (allowed 20)
is it possible to configure this in phpstorm (I didn't find it in settings - editor - inspections)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Novikov, 2017-02-20
@ildarkhasanshin

To do this, you can use Php Inspections (EA Extended) (plugin), PHP_CodeSniffer and PHP Mess Detector (phar archives, PhpStorm is supported out of the box).

N
nirvimel, 2017-02-20
@nirvimel

This list should become the standard throughout the PHP world.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question