bluehost-wordpress-plugin
bluehost-wordpress-plugin copied to clipboard
Update code standards, add misc dev files, make linting more good-er
Changes
Brad Parbs is a code standards nerd and I like to automate as many things as possible.
- Adds
.editorconfigto consisten-ize things (docs: PHPStorm EditorConfig plugin VS Code extension) - Updates
package.jsonwith some new goodies- Adds
lint:phpandlint:php:fixthat call the composer scripts - Adds
lintandlint:fixthat will run all the different linting scripts (JS, php, etc) concurrently - Adds
i18nandtestcommands that will also run all the relevant<command>:<subcommand>scripts
- Adds
- Adds
jsconfig.jsonto allow IDE eslint to correctly associate aliases - Fixes imports in
package.jsonto directly pull in dependencies rather than relying on transient dependencies - Introduces PHP CS Fixer to lint and automatically fix some things that phpcs isn't great at.
Checklist
- [ ] I have read the CONTRIBUTING doc
- [ ] Linting and tests pass locally with my changes
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate) TODO @bradp add info to README.md or create a CONTRIBUTING.md file to outline the standards
Further comments
Standards fixes and linting changes for the code base are being handled in #852 to keep the diff clearer here.
Bluehost Brand Plugin
Run #10985
Run Properties:
Failed #10985 •
3620183647: Bump
| Project |
Bluehost Brand Plugin
|
| Branch Review |
feature/code-standards
|
| Run status |
|
| Run duration | 33m 47s |
| Commit |
|
| Committer | Brad Parbs |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
6
|
|
|
0
|
|
|
36
|
|
|
0
|
|
|
411
|
| View all changes introduced in this branch ↗︎ | |
Tests for review
tests/cypress/integration/home.cy.js • 5 failed tests
vendor/newfold-labs/wp-module-migration/tests/cypress/integration/Migration/landIntoMigrationFromAM.cy.js • 1 failed test
| Test | Artifacts | |
|---|---|---|
| Verify Migration- emulating AM flow > Verify Migration page is loaded |
Test Replay
Screenshots
Video
|
|
Bluehost Brand Plugin
Run #10981
Run Properties:
Failed #10981 •
183590388b ℹ️: Merge 362018364749d05281a03555d496f1e376408085 into f94f7e89f4c720149255a8f25847...
| Project |
Bluehost Brand Plugin
|
| Branch Review |
feature/code-standards
|
| Run status |
|
| Run duration | 33m 17s |
| Commit |
|
| Committer | Brad Parbs |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
1
|
|
|
0
|
|
|
36
|
|
|
0
|
|
|
416
|
| View all changes introduced in this branch ↗︎ | |
Tests for review
vendor/newfold-labs/wp-module-migration/tests/cypress/integration/Migration/landIntoMigrationFromAM.cy.js • 1 failed test
| Test | Artifacts | |
|---|---|---|
| Verify Migration- emulating AM flow > Verify Migration page is loaded |
Test Replay
Screenshots
Video
|
|
@bradp - I'd love to get this merged, do you have time to resolve the conflicts?
@circlecube I should have time later this week to do it! 🎉
For ease of review, #1009 is only the added code standards file, while this PR is that plus fixed files.
Based on the lack of updates on this and the now number of conflicts, I think we can close this and reopen or restart if we have the need in the future.