IMHO - good case for a map of extensions and linters to avoid explicit if's and use more data-driven approach.