Our great sponsors
-
coding-standards-example-project
An example project that uses latest webdevstudios/php-coding-standards, @webdevstudios/js-coding-standards, and @webdevstudios/css-coding-standards as an example.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Much of this is going to depend on your tech stack and development processes. My client worked primarily in WordPress. Like any good developer, I stole a lot of these ideas from people way smarter than I. Rather than walking you through my (probably bastardized) setup, I recommend either: 1. Watching these videos: https://www.youtube.com/playlist?list=PLa\_Xqm9JWuydw6f1yBSlrkWQZHJA3P9jA 2. or reading this blog: https://webdevstudios.com/2017/04/06/lint-code-like-boss/ Both of these resources are by the same team of WordPress developers, WebDevStudios. I've been following these guys for a while and have a lot of respect for them. I would also recommend taking a look at one of their GitHub projects, (https://github.com/WebDevStudios/wd\_s) to see how they implement coding standards via npm. They also have a Coding Standards Example Project, (https://github.com/WebDevStudios/coding-standards-example-project). I haven’t looked at it yet; although I intend to soon. Depending on your tech stack, you may need to look into other tools. It’s intimidating at first. But, once you see how seamless it integrates into your programming processes and how effortless good code becomes, it becomes impossible to live without. It would be like writing a paper without spell-check.
Look into https://pre-commit.com/ it is a wonderful tool that will install pre-commit hooks locally so you can lint the hell out of your code, and it fails the commit if it doesn't lint (so the iteration locally is fast), you can also run it in CICD.
Related posts
- Implementing Quality Checks In Your Git Workflow With Hooks and pre-commit
- [Tool Anouncement] github-distributed-owners - A tool for managing GitHub CODEOWNERS using OWNERS files distributed throughout your code base. Especially helpful for monorepos / multi-team repos
- I’m a hack and a fraud - what are some dead giveaways that someone is self taught?
- Regarding securing confidential data without enabling secrets scanning
- Please help me troubleshoot this error.