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

Resolve puppet-lint #192

Merged
merged 1 commit into from
Oct 24, 2020
Merged

Resolve puppet-lint #192

merged 1 commit into from
Oct 24, 2020

Conversation

jcpunk
Copy link

@jcpunk jcpunk commented Sep 14, 2020

Pull Request (PR) description

Resolve puppet-lint reported issues.

I like to run puppet-lint against my whole code tree every so often and it flagged these items.

Copy link

@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

types/rpmarch.pp Outdated Show resolved Hide resolved
@@ -40,4 +44,6 @@
# @example An invalid string (wildcard spans the VERSION and RELEASE fields): `0:bash-4.*-el6.x86_64
# @example An invlaid string (wildcard spans the VERSION, RELEASE, and ARCH fields): `0:bash-*`
#
# lint:ignore:140chars
type Yum::VersionlockString = Pattern[/^([0-9\*]+):([0-9a-zA-Z\._\+%\{\}\*-]+)-([^-]+)-([^-]+)\.(([0-9a-zZ-Z_\*]+)(?:\.(noarch|x86_64|i386|arm|ppc64|ppc64le|sparc64|ia64|alpha|ip|m68k|mips|mipsel|mk68k|mint|ppc|rs6000|s390|s390x|sh|sparc|xtensa|\*))?)$/]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be nice if puppet's Pattern new about /x (and also about %{}… but that's another dream)

@bastelfreak bastelfreak merged commit 308ac13 into voxpupuli:master Oct 24, 2020
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.

3 participants