Wednesday, Apr 3, 2019
Anyone who has maintained open-source software has probably felt the burnout or challenge of maintaining software around their day job. Wouldn’t it be great if you could use CI to get some merge/pull requests against your projects when the coding standards that you are following are updated? If the answer is yes then look no further.
Drupal Coding Standard Patch Generation phpcs-drupal: image: willhallonline/drupal-phpcs:alpine allow_failure: yes script: - phpcs ./ phpcbf-drupal: image: willhallonline/drupal-phpcs:alpine allow_failure: yes script: - set +e - phpcbf . ...
Thursday, Mar 28, 2019
Fixing code especially when linting can be interesting; honestly. If you are like me and work on a lot of different languages and tools then you likely do not track changes in coding standards particularly well. However, with effective tooling and schedules, you can recieve code that is constantly updated with patches you can simply apply to your code and move forwards.
I already run a bunch of PHP, JavaScript and CSS linting tools and also use YAML linters inside Ansible projects. ...
Tuesday, Mar 12, 2019
Stylelint is a great tool for improving your CSS. Not only can you use it to lint (which I recently described as checking the grammar of your code) but you can also use it to fix your code to make it both standards-compliant and also able to run effectively.
I don’t always like doing non-valid tutorial stuff, so I am working directly with the CSS on this site to improve it. ...
Friday, Mar 8, 2019
Scaffolding or structuring your Ansible projects mean that not only do you have a sane way understanding how your projects are put together but you can also look at being able to re-use and extend your DevOps projects. I have also created a project here that you could clone (or download) and reuse as you choose https://gitlab.com/willhallonline/ansible-starter.
In the below example I share the tree structure of general Ansible projects and how I use . ...
Tuesday, Mar 5, 2019
When working with projects that have dependencies on other projects using git submodules can be really useful. It allows you to basically add links to other git projects inside your source code, without having to add all of the code of the project until you need it.
However, managing those git submodules (from .gitmodules) can prove to be a challenge. I reguarly ship software projects to new developers with multiple submodule and this handy little script will open each of the submodule exactly where you want them without having to use multiple git submodule add. ...
Connect on LinkedIn. Follow me on Twitter. Grab the RSS Feed