benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
812 stars 126 forks source link

Misleading Naming #40

Closed ericandrewlewis closed 12 years ago

ericandrewlewis commented 12 years ago

This package has misleading and confusing naming. It's called 'Phpcs,' however that's only one of the four PHP tools it offers, and not really any more important than the others. The most confusing space this affects is the settings file for the package. There's a package-level setting whether to run any of the components in the package called 'phpcs_execute_on_save' - and then the setting whether to run the PHP Code Sniffer script called 'phpcs_command_on_save'. Not exactly self-describing here.

At the level of the package name itself, I wonder if something could be done. PHP "Tools" actually seems relevant. Or, we could break all these up into separate packages, which actually seems like a good idea to me, so people searching for a PHP code linter would find and install only what they want. Thoughts?

benmatselby commented 12 years ago

This is an interesting discussion Eric.

You are very right, this plugin started out just using PHP_CodeSniffer, hence the name. It then became apparent that I could add in other tools very quickly that would enhance my working pattern. I then started to change the title in the README etc, but by then it was already documented that the name was Phpcs, and was in the package control repo.

I also wrote the sublime-docblox plugin which got renamed sublime-phpdocumentor when those two open source projects merged, and this becomes confusing for the people who had linked to my website and wrote articles about the plugin named sublime-docblox

So a couple of things from me:

Let me know what you think, and I can start to raise some issues covering off what changes are desirable. Also, thank you for raising this issue and sparking a discussion, always a pleasure to get feedback and areas for improvement

ericandrewlewis commented 12 years ago

Hey Ben, thanks for the feedback. I agree, PHP Checker is an apt name. If we went forward with that, renaming the settings key prefixes would follow suit, and nullify the issue there.

Also agree with you about the ease of upkeep for one package instead of four, and since they are all related in function it's a fine idea to keep them bundled.

benmatselby commented 12 years ago

After some thought, I am going to leave the name of the package as it is. For me, it seems like it would do more harm than good at this stage. Happy to reconsider in the future if more people raise this.

Apologies if this is disappointing or causes you issues.