Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overview of the coding standards tooling available to WordPress developers #167

Open
bph opened this issue Sep 7, 2023 Discussed in #160 · 5 comments
Open

Overview of the coding standards tooling available to WordPress developers #167

bph opened this issue Sep 7, 2023 Discussed in #160 · 5 comments
Assignees
Labels
Automatic testing flow: approved can move forward Tooling Video Video tutorial with article

Comments

@bph
Copy link
Collaborator

bph commented Sep 7, 2023

Discussed in #160

Originally posted by ryanwelcher August 28, 2023
It would be great to go over the coding standard tools that are available to WP developers to be able to keep their code standards compliant and consistent.

The article will cover setting up locally to use:

  • WordPress Coding Standards for PHP
  • The tools provided by the @wordpress/scripts package
  • Some IDE configuration - probably focus on VSCode and PHP Storm but open other or maybe it's better to be editor agnostic?
@jonathanbossenger
Copy link

Ooo I might be keen to work on this one, perhaps after the initial developer learning pathways launch in July...

@ryanwelcher
Copy link

I'll defer to @jonathanbossenger on this one - happy to help if I can.

@jonathanbossenger
Copy link

Some IDE configuration - probably focus on VSCode and PHP Storm but open other or maybe it's better to be editor agnostic?

I think we could focus on VS Code, as it's used by the majority of WordPress developers, but also cover PhpStorm because it has the next largest user base (stats: https://jonathanbossenger.com/2023/07/the-state-of-wordpress-developer-tools-survey-results/).

@ryanwelcher
Copy link

Wanted to add this template I created as a reference. It's got all of the "plumbing" in place to add the best practices/standards stuff to a project - https://github.com/ryanwelcher/wordpress-project-template

@jonathanbossenger
Copy link

@ryanwelcher I'd love to get your opinion on including something about the underlying tools behind the @wordpress/scripts terminal scripts.

AFAIK (based on a quick review of the scripts package) these are:

One way would be to do a deep dive into setting each of those three up individually, then show how it's magically doable via @wordpress/scripts.

Another way is to only show how to configure @wordpress/scripts (either for a new project or an existing one) and explain what tools it uses underneath.

I can see the pros and cons of both approaches.

@bph bph added the Video Video tutorial with article label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automatic testing flow: approved can move forward Tooling Video Video tutorial with article
3 participants