The noun spaghetti code is uncountable.
The singular form of spaghetti code is also spaghetti code.
Win Amazon gift cards by writing simple stories at Fictish, a new story writing game backed by WordHippo.