Rewrite loadjson to use the modern function API #358
Annotations
10 errors
Run Static & Syntax Tests:
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)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L28
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L29
Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://rubystyle.guide#spaces-braces)
|
Run Static & Syntax Tests:
spec/functions/loadjson_spec.rb#L30
Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://rubystyle.guide#spaces-braces)
|
Loading