Wire splice that should be inside a junction box

During a recent home inspection I performed in Lake County I found this spliced wire that should have been inside of a junction box.

Wire splice that should be inside a junction box