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

Disable Style/TrailingCommaInArguments #36

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

traylenator
Copy link
Contributor

Currently the trailing , in

it {
  is_expected.to contain_concat__fragment('nftables-inet-filter-chain-default_out-rule-dnsudp').with(
    target:  'nftables-inet-filter-chain-default_out',
    content: %r{^  udp dport 53 accept$},
    order:   '50-nftables-inet-filter-chain-default_out-rule-dnsudp-b',
  )
}

throws a warning. This is inconsistent with what is permitted in
puppet.

Currently the trailing , in

```ruby
it {
  is_expected.to contain_concat__fragment('nftables-inet-filter-chain-default_out-rule-dnsudp').with(
    target:  'nftables-inet-filter-chain-default_out',
    content: %r{^  udp dport 53 accept$},
    order:   '50-nftables-inet-filter-chain-default_out-rule-dnsudp-b',
  )
}
```

throws a warning. This is inconsistent with what is permitted in
puppet.
@bastelfreak
Copy link
Member

I'm in general 👍 for this, but this would cause a lot of trouble to existing modules because we would need to fix it in ~180 modules.

@traylenator
Copy link
Contributor Author

I assumed this was allow something rather than force someone to change to something?

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Indeed. Disabling the rule is safe. I wouldn't mind going a step further in the future, but this is a good first step.

@bastelfreak bastelfreak merged commit 662fd54 into voxpupuli:master Dec 8, 2020
traylenator added a commit to traylenator/puppet-nftables that referenced this pull request Dec 8, 2020
@ekohl ekohl added the enhancement New feature or request label Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants