Hi @Mike_F,
You are correct in that we don’t support Pug, but Pug can be transpiled or converted to HTML, so you could modify your build pipeline to convert Pug to HTML and then use this separate build artifact to be scanned as HTML. Here are a few suggested tools below. Definitely not a great workaround, but this will easily allow you to scan your project still:
- babel-plugin-transform-pug-html
- https://github.com/plaidev/pug-to-html
- https://github.com/mspg/transpile-pug
- etc.
Vuex is not a language, it’s a state management pattern and library for Vue.js, correct? So you would be using vue
extension then. SonarQube does support vue
files, (see image below from version 8.5.1) but not entirely all possible combinations of HTML, CSS, and JS/TS.
Administration > Configuration > Configuration > Languages > JavaScript/TypeScript:
(also described in the docs here)
For example, in this post, you will see that MMF-1441 is a request to allow lang=TS
for vue
files.
In the worst case, if SonarQube is absolutely necessary, you can separate your CSS and JS from the vue
file, for example, as stated here: Single File Components: Separate of Concerns.
Joe