In 2nd ed there were mentions of some degree of subjectivity, but since 3rd ed, alignments have been pretty objective-

in the sense that, it doesn't matter what the moral code of the caster of Detect Evil (or other alignment) says- an Evil person will detect as Evil when anybody casts that spell on them (in the absence of other factors like protective spells).