Codacy design pattern