“Code enforcement is basically a violation-writing machine,” said Jerilyn Perine, a former housing commissioner who is now executive director of the Citizens Housing and Planning Council, a policy group. “What gets done with those violations — and what they really mean — is a whole different thing.”