Skip to content

Allow the user to prevent the lookup from raising an exception #220

Allow the user to prevent the lookup from raising an exception

Allow the user to prevent the lookup from raising an exception #220

Triggered via pull request February 28, 2025 17:34
Status Failure
Total duration 42s
Artifacts

ci.yml

on: pull_request
Static validations
30s
Static validations
Matrix: acceptance
Matrix: unit
Test suite
0s
Test suite
Fit to window
Zoom out
Zoom in

Annotations

11 errors
Static validations: lib/puppet/functions/vault_lookup/lookup.rb#L6
Layout/IndentationWidth: Use 2 (not 0) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
Static validations: lib/puppet/functions/vault_lookup/lookup.rb#L74
Layout/ClosingParenthesisIndentation: Align `)` with `(`.
Static validations: lib/puppet/functions/vault_lookup/lookup.rb#L74
Layout/MultilineMethodDefinitionBraceLayout: Closing method definition brace must be on the same line as the last parameter when opening brace is on the same line as the first parameter.
Static validations: lib/puppet/functions/vault_lookup/lookup.rb#L88
Layout/RescueEnsureAlignment: `rescue` at 88, 4 is not aligned with `def lookup` at 61, 2.
Static validations: lib/puppet/functions/vault_lookup/lookup.rb#L89
Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
Static validations: lib/puppet/functions/vault_lookup/lookup.rb#L92
Layout/DefEndAlignment: `end` at 92, 4 is not aligned with `def` at 61, 2.
Static validations: lib/puppet/functions/vault_lookup/lookup.rb#L93
Layout/BlockAlignment: `end` at 93, 2 is not aligned with `Puppet::Functions.create_function(:'vault_lookup::lookup', Puppet::Functions::InternalFunction) do` at 5, 0.
Static validations: spec/functions/lookup_spec.rb#L31
Style/BlockDelimiters: Avoid using `{...}` for multi-line blocks. (https://rubystyle.guide#single-line-blocks)
Static validations: spec/functions/lookup_spec.rb#L33
RSpec/BeNil: Prefer `be_nil` over `be(nil)`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeNil)
Static validations
Process completed with exit code 1.