Skip to content

Rewrite loadjson to use the modern function API #358

Rewrite loadjson to use the modern function API

Rewrite loadjson to use the modern function API #358

Triggered via pull request April 5, 2024 12:17
Status Failure
Total duration 1m 48s
Artifacts

ci.yml

on: pull_request
Spec  /  Setup Test Matrix
30s
Spec / Setup Test Matrix
Matrix: Spec / spec
Acceptance  /  Setup Test Matrix
Acceptance / Setup Test Matrix
Matrix: Acceptance / acceptance
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 6 warnings
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): lib/puppet/functions/stdlib/loadjson.rb#L63
Security/JSONLoad: Prefer `JSON.parse` over `JSON.load`. (https://ruby-doc.org/stdlib-2.7.0/libdoc/json/rdoc/JSON.html#method-i-load)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/functions/loadjson_spec.rb#L30
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): lib/puppet/functions/stdlib/loadjson.rb#L63
Security/JSONLoad: Prefer `JSON.parse` over `JSON.load`. (https://ruby-doc.org/stdlib-2.7.0/libdoc/json/rdoc/JSON.html#method-i-load)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/functions/loadjson_spec.rb#L30
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
Spec / Setup Test Matrix
Cannot find image for AIX-7.1
Spec / Setup Test Matrix
Cannot find image for AIX-7.2
Spec / Setup Test Matrix
Cannot find image for Solaris-11
Spec / Setup Test Matrix
Cannot find image for Windows-10
Spec / Setup Test Matrix
Cannot find image for Windows-2012
Spec / Setup Test Matrix
Cannot find image for Windows-2012 R2