Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Update module to Puppet 4+ coding style #8

Open
johanfleury opened this issue Dec 4, 2018 · 1 comment
Open

Update module to Puppet 4+ coding style #8

johanfleury opened this issue Dec 4, 2018 · 1 comment

Comments

@johanfleury
Copy link

johanfleury commented Dec 4, 2018

Hello @tobru.

First, I'd like to thank you for your work. Your module is really useful.

I identified multiple areas of improvement (mainly in order to update your module to Puppet 4+ coding style), and I was planning on creating some pull requests.

Here are some ideas:

$ puppet-lint --log-format "%{path}:%{line}: %{KIND}: [%{check}] %{message}" --no-autoloader_layout-check .
./manifests/init.pp:102: WARNING: [arrow_on_right_operand_line] arrow should be on the right operand's line
./manifests/init.pp:103: WARNING: [arrow_on_right_operand_line] arrow should be on the right operand's line
./manifests/install.pp:15: WARNING: [arrow_alignment] indentation of => is not properly aligned (expected in column 18, but found it in column 14)
./manifests/install.pp:10: WARNING: [arrow_alignment] indentation of => is not properly aligned (expected in column 16, but found it in column 19)
./manifests/install.pp:11: WARNING: [arrow_alignment] indentation of => is not properly aligned (expected in column 16, but found it in column 19)
./manifests/install.pp:12: WARNING: [arrow_alignment] indentation of => is not properly aligned (expected in column 16, but found it in column 19)
./manifests/install.pp:13: WARNING: [arrow_alignment] indentation of => is not properly aligned (expected in column 16, but found it in column 19)
./manifests/install.pp:14: WARNING: [arrow_alignment] indentation of => is not properly aligned (expected in column 16, but found it in column 19)
./manifests/install.pp:18: WARNING: [arrow_alignment] indentation of => is not properly aligned (expected in column 16, but found it in column 19)
./manifests/install.pp:22: WARNING: [arrow_on_right_operand_line] arrow should be on the right operand's line
./manifests/config.pp:60: WARNING: [file_ensure] ensure set to present on file resource
./manifests/service.pp:13: WARNING: [arrow_on_right_operand_line] arrow should be on the right operand's line
./manifests/params.pp:52: WARNING: [trailing_comma] missing trailing comma after last element
./manifests/params.pp:56: WARNING: [trailing_comma] missing trailing comma after last element

Before working on this and creating those PR, I wanted to confirm that you were ok with this and that you were still maintaining this module.

@johanfleury
Copy link
Author

johanfleury commented Dec 7, 2018

I made some of the proposed changes in the develop branch of my repository (this is in development, and isome of the changes might not be tested).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant