Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit d5d32b9

Browse files
committed
Issue #2109: Tons of linting fixes.
1 parent 9087cf1 commit d5d32b9

File tree

10 files changed

+109
-135
lines changed

10 files changed

+109
-135
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# These are supported funding model platforms
2-
2+
---
33
github: geerlingguy
44
patreon: geerlingguy

.github/workflows/ci.yml

+25-14
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ jobs:
2424
with:
2525
python-version: '3.x'
2626

27+
- name: Set up Ruby.
28+
uses: actions/setup-ruby@v1
29+
with:
30+
ruby-version: 2.6
31+
2732
- name: Install test dependencies.
28-
run: pip3 install yamllint ansible-lint
33+
run: |
34+
pip3 install yamllint
35+
gem install rubocop
2936
3037
- name: Lint code.
3138
run: |
3239
yamllint .
33-
ansible-lint
40+
rubocop ./Vagrantfile ./lib/drupalvm \
41+
--except Metrics/LineLength,Security/Eval,Style/MutableConstant,Metrics/BlockLength,Metrics/MethodLength,Style/ConditionalAssignment,Style/IfUnlessModifier,Style/CaseLikeIf
3442
3543
molecule:
3644
name: Molecule
@@ -44,18 +52,21 @@ jobs:
4452
playbook: converge.yml
4553
- distro: centos8
4654
playbook: converge.yml
47-
# TODO:
48-
#
49-
# PHP 7.3
50-
# local_config: tests/ubuntu-18-php73.config.yml
51-
# DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
52-
# TEST_INSTALLED_EXTRAS: false
53-
#
54-
# Postgresql
55-
# local_config: tests/ubuntu-18-postgresql.config.yml
56-
# DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
57-
# config_dir: /var/www/drupalvm/config
58-
# TEST_INSTALLED_EXTRAS: false
55+
56+
# PHP 7.3
57+
# local_config: tests/ubuntu-18-php73.config.yml
58+
# DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
59+
# TEST_INSTALLED_EXTRAS: false
60+
# - distro: ubuntu1804
61+
# playbook: php-7.3.yml
62+
63+
# Postgresql
64+
# local_config: tests/ubuntu-18-postgresql.config.yml
65+
# DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
66+
# config_dir: /var/www/drupalvm/config
67+
# TEST_INSTALLED_EXTRAS: false
68+
# - distro: ubunt1804
69+
# playbook: postgresql.yml
5970

6071
steps:
6172
- name: Check out the codebase.

.travis.yml

-59
This file was deleted.

.yamllint

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
line-length:
6+
max: 200
7+
level: warning
8+
truthy:
9+
allowed-values: ['true', 'false', 'yes', 'no']
10+
braces:
11+
min-spaces-inside: 1
12+
max-spaces-inside: 1
13+
min-spaces-inside-empty: -1
14+
max-spaces-inside-empty: -1
15+
16+
ignore: |
17+
*/stale.yml
18+
*/.travis.yml
19+
provisioning/roles/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![Drupal VM Logo](https://raw.githubusercontent.com/geerlingguy/drupal-vm/master/docs/images/drupal-vm-logo.png)
22

3-
[![Build Status](https://travis-ci.com/geerlingguy/drupal-vm.svg?branch=master)](https://travis-ci.com/geerlingguy/drupal-vm) [![Documentation Status](https://readthedocs.org/projects/drupal-vm/badge/?version=latest)](http://docs.drupalvm.com) [![Packagist](https://img.shields.io/packagist/v/geerlingguy/drupal-vm.svg)](https://packagist.org/packages/geerlingguy/drupal-vm) [![Docker Automated build](https://img.shields.io/docker/automated/geerlingguy/drupal-vm.svg?maxAge=2592000)](https://hub.docker.com/r/geerlingguy/drupal-vm/) [![](https://images.microbadger.com/badges/image/geerlingguy/drupal-vm.svg)](https://microbadger.com/images/geerlingguy/drupal-vm "Get your own image badge on microbadger.com") [![irc://irc.freenode.net/drupal-vm](https://img.shields.io/badge/irc.freenode.net-%23drupal--vm-brightgreen.svg)](https://riot.im/app/#/room/#drupal-vm:matrix.org)
3+
[![CI](https://github.com/geerlingguy/drupal-vm/workflows/CI/badge.svg?event=push)](https://github.com/geerlingguy/drupal-vm/actions?query=workflow%3ACI) [![Documentation Status](https://readthedocs.org/projects/drupal-vm/badge/?version=latest)](http://docs.drupalvm.com) [![Packagist](https://img.shields.io/packagist/v/geerlingguy/drupal-vm.svg)](https://packagist.org/packages/geerlingguy/drupal-vm) [![Docker Automated build](https://img.shields.io/docker/automated/geerlingguy/drupal-vm.svg?maxAge=2592000)](https://hub.docker.com/r/geerlingguy/drupal-vm/) [![](https://images.microbadger.com/badges/image/geerlingguy/drupal-vm.svg)](https://microbadger.com/images/geerlingguy/drupal-vm "Get your own image badge on microbadger.com") [![irc://irc.freenode.net/drupal-vm](https://img.shields.io/badge/irc.freenode.net-%23drupal--vm-brightgreen.svg)](https://riot.im/app/#/room/#drupal-vm:matrix.org)
44

55
[Drupal VM](https://www.drupalvm.com/) is a VM for Drupal, built with Ansible.
66

default.config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ drupal_major_version: 9
9595
drupal_domain: "{{ vagrant_hostname }}"
9696
drupal_site_name: "Drupal"
9797
drupal_install_profile: standard
98-
drupal_enable_modules: [ 'devel' ]
98+
drupal_enable_modules: ['devel']
9999
drupal_account_name: admin
100100
drupal_account_pass: admin
101101

@@ -285,7 +285,7 @@ composer_global_packages: []
285285
# reference the directory where your `config.yml` is.
286286
pre_provision_scripts: []
287287
post_provision_scripts: []
288-
# - "{{ playbook_dir }}/../examples/scripts/configure-solr.sh"
288+
# - "{{ playbook_dir }}/../examples/scripts/configure-solr.sh"
289289

290290
# MySQL Configuration.
291291
mysql_root_password: root

example.docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: "3"
23

34
services:

mkdocs.yml

+58-57
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
site_name: Drupal VM Documentation
23

34
repo_url: https://github.com/geerlingguy/drupal-vm
@@ -9,69 +10,69 @@ extra_javascript:
910

1011
markdown_extensions:
1112
- toc:
12-
permalink: True
13+
permalink: true
1314

1415
pages:
1516
- Home: 'index.md'
1617
- Getting Started:
17-
- Installation:
18-
- 'macOS': 'getting-started/installation-macos.md'
19-
- 'Windows': 'getting-started/installation-windows.md'
20-
- 'Linux': 'getting-started/installation-linux.md'
21-
- 'Configuring Drupal VM': 'getting-started/configure-drupalvm.md'
22-
- 'Syncing Folders': 'getting-started/syncing-folders.md'
18+
- Installation:
19+
- 'macOS': 'getting-started/installation-macos.md'
20+
- 'Windows': 'getting-started/installation-windows.md'
21+
- 'Linux': 'getting-started/installation-linux.md'
22+
- 'Configuring Drupal VM': 'getting-started/configure-drupalvm.md'
23+
- 'Syncing Folders': 'getting-started/syncing-folders.md'
2324
- Building your codebase:
24-
- 'Using a local Drupal codebase': 'deployment/local-codebase.md'
25-
- 'Using a composer package': 'deployment/composer-package.md'
26-
- 'Using composer.json': 'deployment/composer.md'
27-
- 'Using a Drush Make file': 'deployment/drush-make.md'
28-
- 'Drupal VM as a Composer Dependency': 'deployment/composer-dependency.md'
29-
- 'Deploying Drupal via Git': 'deployment/git.md'
25+
- 'Using a local Drupal codebase': 'deployment/local-codebase.md'
26+
- 'Using a composer package': 'deployment/composer-package.md'
27+
- 'Using composer.json': 'deployment/composer.md'
28+
- 'Using a Drush Make file': 'deployment/drush-make.md'
29+
- 'Drupal VM as a Composer Dependency': 'deployment/composer-dependency.md'
30+
- 'Deploying Drupal via Git': 'deployment/git.md'
3031
- Basic configurations:
31-
- 'Using different base OSes': 'configurations/base-os.md'
32-
- 'Using a different PHP version': 'configurations/php.md'
33-
- Webservers:
34-
- 'Apache': 'configurations/webservers-apache.md'
35-
- 'Nginx': 'configurations/webservers-nginx.md'
36-
- Databases:
37-
- 'Connect to the MySQL Database': 'configurations/databases-mysql.md'
38-
- 'Use MariaDB instead of MySQL': 'configurations/databases-mariadb.md'
39-
- 'Use PostgreSQL instead of MySQL': 'configurations/databases-postgresql.md'
32+
- 'Using different base OSes': 'configurations/base-os.md'
33+
- 'Using a different PHP version': 'configurations/php.md'
34+
- Webservers:
35+
- 'Apache': 'configurations/webservers-apache.md'
36+
- 'Nginx': 'configurations/webservers-nginx.md'
37+
- Databases:
38+
- 'Connect to the MySQL Database': 'configurations/databases-mysql.md'
39+
- 'Use MariaDB instead of MySQL': 'configurations/databases-mariadb.md'
40+
- 'Use PostgreSQL instead of MySQL': 'configurations/databases-postgresql.md'
4041
- Installed extras:
41-
- 'adminer (Database UI)': 'extras/adminer.md'
42-
- 'blackfire (Profiling tool)': 'extras/blackfire.md'
43-
- 'drupalconsole (Drupal CLI)': 'extras/drupal-console.md'
44-
- 'drush (Drupal CLI)': 'extras/drush.md'
45-
- 'elasticsearch (Search engine)': 'extras/elasticsearch.md'
46-
- 'java': 'extras/java.md'
47-
- 'mailhog (Mail catcher)': 'extras/mailhog.md'
48-
- 'memcached (In-memory cache)': 'extras/memcached.md'
49-
- 'newrelic (Performance monitoring)': 'extras/newrelic.md'
50-
- 'nodejs': 'extras/nodejs.md'
51-
- 'pimpmylog (Log viewer)': 'extras/pimpmylog.md'
52-
- 'redis (In-memory database)': 'extras/redis.md'
53-
- 'ruby': 'extras/ruby.md'
54-
- 'selenium (BDD with Behat)': 'extras/selenium.md'
55-
- 'solr (Search engine)': 'extras/solr.md'
56-
- 'tideways (Profiling tool)': 'extras/tideways.md'
57-
- 'upload-progress': 'extras/upload-progress.md'
58-
- 'varnish (Caching reverse proxy)': 'extras/varnish.md'
59-
- 'xdebug (Debugging tool)': 'extras/xdebug.md'
60-
- 'xhprof (Profiling tool)': 'extras/xhprof.md'
42+
- 'adminer (Database UI)': 'extras/adminer.md'
43+
- 'blackfire (Profiling tool)': 'extras/blackfire.md'
44+
- 'drupalconsole (Drupal CLI)': 'extras/drupal-console.md'
45+
- 'drush (Drupal CLI)': 'extras/drush.md'
46+
- 'elasticsearch (Search engine)': 'extras/elasticsearch.md'
47+
- 'java': 'extras/java.md'
48+
- 'mailhog (Mail catcher)': 'extras/mailhog.md'
49+
- 'memcached (In-memory cache)': 'extras/memcached.md'
50+
- 'newrelic (Performance monitoring)': 'extras/newrelic.md'
51+
- 'nodejs': 'extras/nodejs.md'
52+
- 'pimpmylog (Log viewer)': 'extras/pimpmylog.md'
53+
- 'redis (In-memory database)': 'extras/redis.md'
54+
- 'ruby': 'extras/ruby.md'
55+
- 'selenium (BDD with Behat)': 'extras/selenium.md'
56+
- 'solr (Search engine)': 'extras/solr.md'
57+
- 'tideways (Profiling tool)': 'extras/tideways.md'
58+
- 'upload-progress': 'extras/upload-progress.md'
59+
- 'varnish (Caching reverse proxy)': 'extras/varnish.md'
60+
- 'xdebug (Debugging tool)': 'extras/xdebug.md'
61+
- 'xhprof (Profiling tool)': 'extras/xhprof.md'
6162
- Extending Drupal VM:
62-
- 'Adding Vagrant plugins Vagrantfile.local': 'extending/vagrantfile.md'
63-
- 'Passing on CLI arguments to ansible': 'extending/ansible-args.md'
64-
- 'Pre- and Post-Provision Scripts': 'extending/scripts.md'
63+
- 'Adding Vagrant plugins Vagrantfile.local': 'extending/vagrantfile.md'
64+
- 'Passing on CLI arguments to ansible': 'extending/ansible-args.md'
65+
- 'Pre- and Post-Provision Scripts': 'extending/scripts.md'
6566
- Other Information:
66-
- 'Networking Notes': 'other/networking.md'
67-
- 'Vagrant LXC provider': 'other/vagrant-lxc.md'
68-
- 'Improving Performance': 'other/performance.md'
69-
- 'Docker': 'other/docker.md'
70-
- 'Custom Vagrant Base Box': 'other/custom-base-box.md'
71-
- 'BigPipe with Drupal VM': 'other/bigpipe.md'
72-
- 'Drupal multisite': 'deployment/multisite.md'
73-
- 'Drupal 6 Notes': 'other/drupal-6.md'
74-
- 'Drupal VM Management Tools': 'other/management-tools.md'
75-
- 'Emulating Acquia Cloud environment': 'other/acquia.md'
76-
- 'Deploying to a production environment': 'other/production.md'
77-
- 'Wordpress or other applications': 'other/wordpress-other-applications.md'
67+
- 'Networking Notes': 'other/networking.md'
68+
- 'Vagrant LXC provider': 'other/vagrant-lxc.md'
69+
- 'Improving Performance': 'other/performance.md'
70+
- 'Docker': 'other/docker.md'
71+
- 'Custom Vagrant Base Box': 'other/custom-base-box.md'
72+
- 'BigPipe with Drupal VM': 'other/bigpipe.md'
73+
- 'Drupal multisite': 'deployment/multisite.md'
74+
- 'Drupal 6 Notes': 'other/drupal-6.md'
75+
- 'Drupal VM Management Tools': 'other/management-tools.md'
76+
- 'Emulating Acquia Cloud environment': 'other/acquia.md'
77+
- 'Deploying to a production environment': 'other/production.md'
78+
- 'Wordpress or other applications': 'other/wordpress-other-applications.md'

provisioning/playbook.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
- { role: geerlingguy.firewall, when: firewall_enabled }
3939
- { role: geerlingguy.git }
4040
- { role: geerlingguy.postfix }
41-
- { role: geerlingguy.apache, when: drupalvm_webserver == 'apache', tags: ['webserver']}
41+
- { role: geerlingguy.apache, when: drupalvm_webserver == 'apache', tags: ['webserver'] }
4242
- { role: geerlingguy.apache-php-fpm, when: drupalvm_webserver == 'apache', tags: ['webserver'] }
4343
- { role: geerlingguy.nginx, when: drupalvm_webserver == 'nginx', tags: ['webserver'] }
4444
- { role: geerlingguy.php-versions, when: php_version != '', tags: ['php', 'xdebug', 'database'] }

provisioning/templates/drush.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
drush:
23
paths:
34
alias-path:

0 commit comments

Comments
 (0)