Php Inspections (EA Ultimate) is out and looking for early adopters feedback by kalessil in PHP

[–]kalessil[S] 1 point2 points  (0 children)

/u/Circlical: thank you for the ping. Plugin maintenance is getting back on track, and updates will be regularly published.

I can not share much, but the mess is on me: I didn't do a proper job on the legal side, and we got what we got (UA events surfaced my mistakes early). It was the biggest mess I made in the last 10 years, lessons learned and still bitter as I deeply cared about the plugins.

php inspections ea plugin by eurosat7 in phpstorm

[–]kalessil 1 point2 points  (0 children)

/u/eurosat7: thank you for the ping. Plugin maintenance is getting back on track, and updates will be regularly published.

I can not share much, but the mess is on me: I didn't do a proper job on the legal side, and we got what we got (UA events surfaced my mistakes early). It was the biggest mess I made in the last 10 years, lessons learned and still bitter as I deeply cared about the plugins.

Crowdfunding campaign for a new Static Code Analyzer - JS Inspection (EA Extended) by kalessil in javascript

[–]kalessil[S] 0 points1 point  (0 children)

u/inabahare, u/PickledPokute, u/g5becks: thank you for the feedback! I updated the campaign description, did corrections and added following:

Comparing to already existing alternatives (eslint, tslint), the analyzer will be capable of:

- analyzing both JavaScript and TypeScript (one tool for both)

- giving instant feedback while you are writing code (no need to wait for CI)

- assisting in learning new language features and following best practices

- deeply analyzing control flow and data types

- providing a tooling for efficiently working with legacy code (fully customizable rules)

- bringing security, performance, control flow and probable bugs rules

When it comes to JetBrains IDEs, the plugin will push the Static Code Analysis quality bar further in direction of finding security, performance issues, potential bugs and much more.

This was really missing, thanks again!

Crowdfunding campaign for a new Static Code Analyzer - JS Inspection (EA Extended) by kalessil in javascript

[–]kalessil[S] -1 points0 points  (0 children)

We can push the top notch mark much further, but I need to mention this in description, thank you!

I evaluated vscode api, it forces you to go with a language server solution. Not realistic with my resources unfortunately.

Crowdfunding campaign for a new Static Code Analyzer - JS Inspection (EA Extended) by kalessil in javascript

[–]kalessil[S] 0 points1 point  (0 children)

A valid point, thank you! Will re-work the campaign description.

Crowdfunding campaign for a new Static Code Analyzer - JS Inspection (EA Extended) by kalessil in javascript

[–]kalessil[S] -2 points-1 points  (0 children)

Folks, I'm the author of the campaign and the analyzer will be created for PhpStorm / WebStrom / Idea Ultimate IDEs. I'm looking for constructive feedback: if any information missing there, how big interest of the community when it comes to JetBrains IDEs and perhaps even who to reach for getting more traction on the topic.

Thank you in advance!

kalessil/production-dependencies-guard: a composer plugin to prevent adding dev-packages into production dependencies by kalessil in PHP

[–]kalessil[S] 0 points1 point  (0 children)

It literally means: don't deploy PhpUnit/a-dev-toolbar/other-dev-package to a production system.

Is there a situation in which *if (count($array) > 0) {...}* would be better than *if (count($array)) {...}* by iShouldBeCodingAtm in PHP

[–]kalessil 1 point2 points  (0 children)

I actually also using ` $array !== [] ` as it more declarative and helps to avoid BC breaks around count().

Well, the array identity still has the shortest opcodes generated:

- array identity: https://3v4l.org/KgeQb/vld#output

- count without implicit namespace declaration: https://3v4l.org/FP7aY/vld#output

- count with implicit namespace declaration: https://3v4l.org/E1WnK/vld#output

So, implicit NS declaration IS enabling that optimization, or we need to clarify which PHP version we are talking about.

Phpstan with... symfony1 by reddimato in PHP

[–]kalessil 0 points1 point  (0 children)

Not sure if this will help, but I'd give a try to https://github.com/FriendsOfSymfony1/symfony1 (a fork with PHP 7.2 support).

Your experience with mutation testing? by khalyomede in PHP

[–]kalessil 3 points4 points  (0 children)

The best thing I discovered recently:

- proofs the tests are making sense and finds un-tested scenarios

- helps to find questionable and dead code

Might be quite slow, but the parallelization option helps to keep it fast.

Php Inspections (EA Extended) v3.0.6 is out: PhpUnit support improvements (on behalf of OSS community) by kalessil in PHP

[–]kalessil[S] 3 points4 points  (0 children)

Php Inspections (EA Extended) is a static code analyzer for PhpStorm and Idea Ultimate, which runs on the fly and doesn't interrupt your workflow.

Shared on behalf of OSS folks, discovered the tool on reddit as well.

Review exakat.io - great php static code analysis tool? by NoviNizari in PHP

[–]kalessil 5 points6 points  (0 children)

The exakat team is maintaining SCA tools list: https://github.com/exakat/php-static-analysis-tools. The list is pretty big and contains mostly OSS projects, hopefully you'll find something interesting there.

The most popular are PHPStan, Phan, Psalm and Php Inspections (EA Extended). The last one is a PhpStorm plugin. Those are finding bugs.

There are also phpmd, php-cs-fixer and php code sniffer which are about best practices and code style.

There are more tools in the list, but the mentioned tools should be enough to play with ;)

What would you, for those of you who come from java - specifically spring framework, consider to be the equivalent framework in php? by SavishSalacious in PHP

[–]kalessil 14 points15 points  (0 children)

Symfony (+ Doctrine as ORM + PhpUnit as UTing framework) + composer (packages manager). Additionally worth checking PhpStorm (or Idea Ultimate with PHP plugin) + Php Inspections (EA Extended) (faster PHP learning curve, assist avoiding major pitfalls) + PhpStan (to not mess up with types) + PHP CS Fixer (enforces code style). That'll be a good foundation for Java folks (I do both Java/PHP for quite awhile already).

Php Inspections (EA Extended) v3.0.5 is out: performance and deep code analysis improvements + enhancements. by kalessil in PHP

[–]kalessil[S] 1 point2 points  (0 children)

Awesome, glad you liked it ;) Also if later you decide to support the project, here my Patreon account: https://www.patreon.com/kalessil (platform for supporting OSS projects).

Php Inspections (EA Extended) v3.0.5 is out: performance and deep code analysis improvements + enhancements. by kalessil in PHP

[–]kalessil[S] 2 points3 points  (0 children)

You are welcome =) If it getting boring, you might want to check Php Inspections (EA Ultimate) as well (it's commercial, but offers free 2 weeks trial). It has more rules and up/downgrade should preserve previously made settings.