What is a line length “soft limit” and how do I interpret this in the PSR-2 convention?

前端 未结 5 566
死守一世寂寞
死守一世寂寞 2021-02-03 18:29

I don\'t understand this part of php\'s PSR-2 convention:

The soft limit on line length MUST be 120 characters; automated style checkers MUST

5条回答
  •  长发绾君心
    2021-02-03 19:18

    There is no hard limit in PSR-2.

    The MUST (NOT) refers to automated style checkers, not to you as a programmer.

    Also note the section that says that no error should be issued when exceeding the soft limit.

提交回复
热议问题