Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize and fix style #127

Merged
merged 5 commits into from
Aug 6, 2018
Merged

Modernize and fix style #127

merged 5 commits into from
Aug 6, 2018

Conversation

smortex
Copy link
Member

@smortex smortex commented Aug 3, 2018

  • A leading :: was required in old puppet versions (up to 3.x), but Puppet 4 and newer does not require this anymore;
  • Ensure all parameter are always followed by a ,.

- A leading `::` was required in old puppet versions (up to 3.x), but
  Puppet 4 and newer does not require this anymore;
- Ensure all parameter are always followed by a `,`.
@smortex
Copy link
Member Author

smortex commented Aug 3, 2018

Meh… I just fixed the CI by removing the deprecated / not-recommended check, but I guess the Gemfile is managed by modulesync and this change may be counter-productive 😒

I'll fill-in a PR in the modulesync_config repository. If you want, I can remove this last commit (Remove puppet-lint-absolute_classname-check).

Edit: ☑️ done: zachfi/modulesync_config#1

Instead of a String and a lefacy validate_re statement, rely on the Enum
data-type.
This type was previously introduced.  We can use it instead of plain
String with legacy validate_re.
An Array data-type does not enforce any restrictions on the items in the
array, which is prone to error.  Improve validation by always passing
the type of the items of the array.
Quoting the check README:

> Including a class by a relative name might lead to unexpected results
> in Puppet 3. This plugin is not recommended for use with Puppet code
> that has dropped support for Puppet 3 (EOL 20161231).

https://github.com/voxpupuli/puppet-lint-absolute_classname-check
@zachfi
Copy link
Contributor

zachfi commented Aug 6, 2018

I'm a little behind on the module_sync and I think the practices are shifting a bit now with PDK out. Its hard to know which approaches are best.

You are great. Thanks for the other PR too. I'll get that applied.

@zachfi zachfi merged commit ee5080b into voxpupuli:master Aug 6, 2018
@smortex smortex deleted the modernize branch August 6, 2018 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants