It itches badly for expert in moral code (8)
I believe the answer is:
ethicist
'expert in moral code' is the definition.
'ethicist' can be an answer for 'expert' (I have seen 'Moral expert' mean 'ethicist' so perhaps 'expert' could also mean 'ethicist'). I'm unsure of the 'in moral code' bit.
'it itches badly' is the wordplay.
'badly' indicates an anagram.
'it'+'itches'='ititches'
'ititches' is an anagram of 'ETHICIST'.
'for' acts as a link.
Can you help me to learn more?
(Other definitions for ethicist that I've seen before include "Moral expert" , "Moralist" .)