afilina,
@afilina@phpc.social avatar

Ugh, the PHP CS Fixer setup instructions for PHPStorm are so long and confusing that I might as well just use the CLI instead. I've been told that I'm a very impatient person :)

wyri,
@wyri@haxim.us avatar

@afilina thanks for the reminder, still need to set that up through Makefile => Docker 🤐

cxj,
@cxj@phpc.social avatar

@afilina You’re not wrong.

tvbeek,
@tvbeek@phpc.social avatar

@afilina That is why I mostly define them as composer scripts.
(and start normalize the names to the standard from: https://github.com/php-pds/composer-script-names )

If you do that please also fill the scripts-descriptions key in composer.json for your scripts.

An example: https://gitlab.com/tjvb/githash/-/blob/master/composer.json?ref_type=heads#L67-102

afilina,
@afilina@phpc.social avatar

@tvbeek Thanks for sharing the standard and the example. This is great stuff.

afilina,
@afilina@phpc.social avatar

Don't get me wrong, I love all these open source tools. It's just that they all have a very different installation process with many manual and complicated steps that one really needs to dig into, only to check whether it's the right tool for the job. I'm sure that the adoption would be much higher if they were painless to install.

afilina,
@afilina@phpc.social avatar

I remember being told, when I was struggling with some static analysis tools, that I needed to create thousands of lines of config (with a steep learning curve) by manually analyzing a legacy codebase I knew nothing about, before I could start using them. After investing several days into this endeavor, I realized that it was actually impossible for me to satisfy those requirements because of some particulars of the codebase.

psycodepath,
@psycodepath@mastodon.social avatar

@afilina hmm, don't know about how legacy (pre autoload area is probably insane to get a setup to run) but if psr-0 / psr-4 is present in the codebase i could imagine that rector could like fix maybe some of the things hindering you to adopt static analyse tools.

I was amazed with how little effort you could fix even large codebases with it.

But probably you already have tried it or it is just not feasible

afilina,
@afilina@phpc.social avatar

@psycodepath Not even PSR-0.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • PowerRangers
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • GTA5RPClips
  • khanakhh
  • kavyap
  • Durango
  • provamag3
  • modclub
  • ethstaker
  • cubers
  • vwfavf
  • everett
  • cisconetworking
  • tacticalgear
  • tester
  • normalnudes
  • osvaldo12
  • anitta
  • Leos
  • megavids
  • All magazines