I don't know the codes in MD but the santee on the end of the pipe coming through the foundation would be a code violation in California. It should be a "combination wye' or 'combo' as plumber would call it. It can be a single fitting or a wye with a street 45 on it.
The black ABS tee above it is also against code. Most municipalities base their code on the UPC so they're probably against code where you are too.