Most locales in the U.S. require a minimum of 1.5 feet at all times between any moving part of a machine and the nearest wall. This is to prevent the possibility of a person getting trapped between the machine and the wall.
This legally required space is often not included by manufacturers when citing space requirements.*
* Yes, it is true that you might not be caught by an inspector. Consider, however, the problems and expense if you are.