saltstack-formulas / openssh-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
90 stars 297 forks source link

fix(test): make rubocop happy #181

Closed baby-gnu closed 4 years ago

baby-gnu commented 4 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

167

Describe the changes you're proposing

This PR:

Pillar / config required to test the proposed changes

Debug log showing how the proposed changes work

$ rubocop -d
For /home/travis/build/baby-gnu/openssh-formula: configuration from /home/travis/build/baby-gnu/openssh-formula/.rubocop.yml
Default configuration from /home/travis/.rvm/gems/ruby-2.6.5/gems/rubocop-0.88.0/config/default.yml
The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file:
 - Layout/EmptyLinesAroundAttributeAccessor (0.83)
 - Layout/SpaceAroundMethodCallOperator (0.82)
 - Lint/DeprecatedOpenSSLConstant (0.84)
 - Lint/DuplicateElsifCondition (0.88)
 - Lint/MixedRegexpCaptureTypes (0.85)
 - Lint/RaiseException (0.81)
 - Lint/StructNewOverride (0.81)
 - Style/AccessorGrouping (0.87)
 - Style/ArrayCoercion (0.88)
 - Style/BisectedAttrAccessor (0.87)
 - Style/CaseLikeIf (0.88)
 - Style/ExponentialNotation (0.82)
 - Style/HashAsLastArrayItem (0.88)
 - Style/HashEachMethods (0.80)
 - Style/HashLikeCase (0.88)
 - Style/HashTransformKeys (0.80)
 - Style/HashTransformValues (0.80)
 - Style/RedundantAssignment (0.87)
 - Style/RedundantFetchBlock (0.86)
 - Style/RedundantFileExtensionInRequire (0.88)
 - Style/RedundantRegexpCharacterClass (0.85)
 - Style/RedundantRegexpEscape (0.85)
 - Style/SlicingWithRange (0.83)
For more information: https://docs.rubocop.org/rubocop/versioning.html
Inspecting 5 files
Scanning /home/travis/build/baby-gnu/openssh-formula/Gemfile
.Scanning /home/travis/build/baby-gnu/openssh-formula/bin/kitchen
.Scanning /home/travis/build/baby-gnu/openssh-formula/test/integration/default/controls/config_spec.rb
.Scanning /home/travis/build/baby-gnu/openssh-formula/test/integration/default/controls/packages_spec.rb
.Scanning /home/travis/build/baby-gnu/openssh-formula/test/integration/default/controls/services_spec.rb
.

5 files inspected, no offenses detected
Finished in 0.2538999359999963 seconds
The command "rubocop -d" exited with 0.

Documentation checklist

Testing checklist

Additional context

pull-assistant[bot] commented 4 years ago
Score: NaN

Best reviewed: with all changes


Optimal code review plan (2 commits squashed)

feat(test): remove s... ... fix(inspec): make ru...
> Squashed 2 commits: > - feat(test): remove serverspec files > - fix(inspec): make rubocop happy

Powered by Pull Assistant. Last update 049db2b ... 2cfb5a7. Read the comment docs.

myii commented 4 years ago

@baby-gnu Thanks for the PR. Couple of bits of feedback for you:


feat(test): remove serverspec files

There were a few discussions about this when InSpec tests were added here:

I didn't want to be presumptuous at the time and simply remove the Serverspec tests. I think we're OK now so should be able to remove but not 100% sure about where we stand with #167.


fix(inspec): make rubocop happy

Since Rubocop is now working, we can merge it into the main lint job:

https://github.com/saltstack-formulas/openssh-formula/blob/d0d2864d13a1eb09bd6231711eb82c5d260a6a12/.travis.yml#L57-L58

So that's simply using the structure from the template-formula here.

baby-gnu commented 4 years ago

feat(test): remove serverspec files

I wasn't sure about this but found some discussion about doing like in vault.

So I thought that getting rid of the files would have been a first step.

fix(inspec): make rubocop happy

Yes, I plan to do that separately with the update of the matrix and all.

myii commented 4 years ago

@baby-gnu OK, let's get this merged!

myii commented 4 years ago

Closed #167, since no longer seems valid.

saltstack-formulas-travis commented 4 years ago

:tada: This PR is included in version 1.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: