Created a detection for invalid file encodings while parsing the inspec json, raising an error.
Created a detection for if "idents" was a string, and made it convert the string into an array.
Note: Ruby has trouble detecting if a file encoding is UTF-16LE or not, so the incorrect encoding is determined by if the "gsub" function in line 19 of inspec.rb throws its own error, which indicates a non-UTF-8 encoding.
Created a detection for invalid file encodings while parsing the inspec json, raising an error.
Created a detection for if "idents" was a string, and made it convert the string into an array.
Note: Ruby has trouble detecting if a file encoding is UTF-16LE or not, so the incorrect encoding is determined by if the "gsub" function in line 19 of inspec.rb throws its own error, which indicates a non-UTF-8 encoding.