Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users

Dashboard
Notifications
Mark all as read
Q&A

Is the concept of a PHP lint feasible?

+3
−1

When I review JavaScript files in various text editors (Visual Studio Code, Greasemonkey/Tampermonkey) I sometimes get notified about syntax errors.

I never encountered this behavior with PHP files even if I installed, say, a PHP debugging extension in Visual Studio Code.

Is the concept of a PHP lint feasible?

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment

PHP is so poorly defined that it would be rather difficult to attach much meaning to the concept of 'syntax error', let alone the extended checking that a lint program would be expected to perform. EJP‭ 8 days ago

2 answers

+4
−0

If I understand correctly what you are asking for is a static code analysis tool for PHP. A quick search reveals that Psalm would be such a tool.

Why does this post require moderator attention?
You might want to add some details to your flag.

0 comments

+0
−1

Just use PDT version of Eclipse.

Why does this post require moderator attention?
You might want to add some details to your flag.

0 comments

Sign up to answer this question »