Improved linting and generated code

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>