One of our projects uses handlebars.js and as far as I know sonarqube javascript (SonarJS) plugin does not support .hbs files. Is there any plugin for sonarqube that analyzes handlebars template files (*.hbs) ?
-thank you very much
Looks like there is no plugin supporting particularly .hbs files. While probably you could use SonarWeb plugin but it will not bring any issues specific to Handlebar templates.
Related
https://github.com/townsfolk/gradle-templates
After much reading in forums, gradle's jira, and githubs, it seems the above plugin is the popular choice for getting maven archetype-like functionality in Gradle.
It comes with multiple templates to choose from, but how do I make my own?
Is there a guide or something that can kick start me into making my own template?
I have a setup I made to generate a new application with all the boiler plate pieces my company requires. I was able to generate this from an existing project using maven archetypes. I want to accomplish the same in Gradle so I can also take advantage of the ability to run groovy scripts when the generation occurs.
So far it looks like the only way to do this is to fork that project and make my own plugin with added template files and such.
Know this is a old question, but there is a wiki page on how to create your own templates:
https://github.com/townsfolk/gradle-templates/wiki/Template-Customization
I want javascript code present in .aspx file to get analysed with Sonar.
I have installed javascript plugin and checked its not getting analysed.
Please let me know how can javascript code can be analysed if not present in the .js file
You can add .aspx to the list of extensions that the Javascript plugin should analyze, by setting the property sonar.javascript.file.suffixes (either trough the SonarQube UI, or as a parameter to the MSBuild SonarQube Runner using the /d:sonar.javascript.file.suffixes=... syntax).
Note that in SonarQube, a file can be analyzed only by a single language plugin for now. This means that, if you decide to analyze .aspx files with the Javascript plugin, you will not be able to analyze them using the Web or CSS plugins for example.
is it possible to generate only one html file for all modules (one for Findbugs and another for PMD), so I could upload somewhere those two html file for review?
I don't think Gradle itself supports combining these reports; however, you should be able to do it manually with some XSLT -- http://www.sw-engineering-candies.com/blog-1/howtotransformtheresultsfromfindbugscheckstyleandpmdintoasinglehtmlreportwithxslt20andjava
We are trying to run a SASS parser over our CSS files as part of our Maven build, but do not want them to be bundled together at the same time during this phase of the Maven life cycle.
However, I cannot see a simple way of using wro4J to do this without specifying each individual file as its own bundlem which just doesn't feel right. Have I missed some configurationm or is bundling so much at the core of the design of wro4J that it must be used like this?
This feature is not supported by wro4j yet, but it is planned to be added in future. In the meantime, you can use SassCssProcessor with a custom maven plugin which just applies the processor on each resource from a configured folder. The link to the issue describing the feature you need: https://github.com/wro4j/wro4j/issues/583
I'd like to test using freemarker to automatically build my html files at compile time (not use the servlet) and want to use the auto_import feature so I don't have to re define the template for each file. I can either use ANT or Maven. How do you use the auto_import feature to automatically load templates within FreeMarker using either ANT or Maven?
auto_imports is just one of the many FreeMarker settings, and it has nothing to do with servlets, Maven or Ant. So if you can process the files with Ant or Maven (one way is using the Maven FMPP plugin or the Ant FMPP task), then you should be able to use use auto_imports as well.
Update: There's an issue with FMPP (until 0.9.15 is released): it doesn't know this setting, so you can't set it through FMPP. But instead it has "Header and footer choosing", which is even more flexible. See: http://fmpp.sourceforge.net/settings.html
Have you tried FMPP?
FMPP is a general-purpose text file preprocessor tool that uses FreeMarker templates.
It can be used via command-line or Ant and might provide all the features you need.