This page [0] seems to suggest that "less is also used with numbers when they are on their own and with expressions of
measurement or time".
Lines of code is surely a measurement, which makes the use of 'less' here acceptable.
0: http://www.oxforddictionaries.com/words/less-or-fewer