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

Rubocop fixes #2476

Merged
merged 4 commits into from Mar 8, 2022
Merged

Rubocop fixes #2476

merged 4 commits into from Mar 8, 2022

Conversation

mjbnz
Copy link
Contributor

@mjbnz mjbnz commented Feb 10, 2022

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct) (@mjbnz: sort of ?)
    - [ ] Tests added or adapted (try rake test) N/A
    - [ ] Changes are reflected in the documentation N/A.
    - [ ] User-visible changes appended to CHANGELOG.md N/A

Description

Clean up a few rubocop offences reported by the Travis Pull Request checks.

Fixed ssh_make_opts by breaking out the proxy command generation to a separate function.

@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2022

Codecov Report

Merging #2476 (ad56176) into master (a36aece) will decrease coverage by 0.05%.
The diff coverage is 77.77%.

❗ Current head ad56176 differs from pull request most recent head c97c04d. Consider uploading reports for the commit c97c04d to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2476      +/-   ##
==========================================
- Coverage   63.28%   63.23%   -0.06%     
==========================================
  Files          30       30              
  Lines        1498     1504       +6     
==========================================
+ Hits          948      951       +3     
- Misses        550      553       +3     
Impacted Files Coverage Δ
lib/oxidized/model/model.rb 80.90% <20.00%> (-2.91%) ⬇️
lib/oxidized/input/ssh.rb 58.00% <100.00%> (+1.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a4d0c4...c97c04d. Read the comment docs.

@mjbnz mjbnz force-pushed the rubocop-fixes branch 2 times, most recently from 8b5892f to ad56176 Compare February 10, 2022 01:02
mjbnz referenced this pull request Feb 10, 2022
…information as comment. (#2377)

* OPNsense/PFsense models: Do not cut off first line

This model was mistakenly removing the first line of the config file containing the <?xml line.

* PFsense/OPNsense: Add feature to gather version information as a comment at the end of the file

* Move xmlcomment into model.rb

* Changelog for OPNsense/PFsense changes/fixes
@mortzu mortzu merged commit f6e0f9b into ytti:master Mar 8, 2022
@mjbnz mjbnz deleted the rubocop-fixes branch March 8, 2022 22:14
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.

None yet

3 participants