| {
private Class> preferredIpVersion = Inet4Address.class;
@@ -112,7 +111,7 @@ public class VmMgmt extends FreeMarkerConlet {
*
* @param event the event
*/
- @SuppressWarnings({ "unchecked", "PMD.AvoidDuplicateLiterals" })
+ @SuppressWarnings({ "unchecked" })
@Handler
public void onConfigurationUpdate(ConfigurationUpdate event) {
event.structured("/Manager/GuiHttpServer"
@@ -177,7 +176,6 @@ public class VmMgmt extends FreeMarkerConlet {
}
@Override
- @SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
protected Set doRenderConlet(RenderConletRequestBase> event,
ConsoleConnection channel, String conletId, VmsModel conletState)
throws Exception {
@@ -230,7 +228,6 @@ public class VmMgmt extends FreeMarkerConlet {
simplifiedVmDefinition(vmDef, user, roles)));
}
- @SuppressWarnings("PMD.AvoidDuplicateLiterals")
private Map simplifiedVmDefinition(VmDefinition vmDef,
String user, List roles) {
// Convert RAM sizes to unitless numbers
@@ -270,9 +267,8 @@ public class VmMgmt extends FreeMarkerConlet {
* @throws IOException
*/
@Handler(namedChannels = "manager")
- @SuppressWarnings({ "PMD.ConfusingTernary", "PMD.CognitiveComplexity",
- "PMD.AvoidInstantiatingObjectsInLoops", "PMD.AvoidDuplicateLiterals",
- "PMD.ConfusingArgumentToVarargsMethod" })
+ @SuppressWarnings({ "PMD.CognitiveComplexity",
+ "PMD.AvoidInstantiatingObjectsInLoops" })
public void onVmResourceChanged(VmResourceChanged event, VmChannel channel)
throws IOException {
var vmName = event.vmDefinition().name();
@@ -378,8 +374,6 @@ public class VmMgmt extends FreeMarkerConlet {
}
- @SuppressWarnings({ "PMD.AvoidLiteralsInIfCondition",
- "PMD.LambdaCanBeMethodReference" })
private Summary evaluateSummary(boolean force) {
if (!force && cachedSummary != null) {
return cachedSummary;
@@ -402,8 +396,7 @@ public class VmMgmt extends FreeMarkerConlet {
}
@Override
- @SuppressWarnings({ "PMD.AvoidDecimalLiteralsInBigDecimalConstructor",
- "PMD.NcssCount" })
+ @SuppressWarnings({ "PMD.NcssCount" })
protected void doUpdateConletState(NotifyConletModel event,
ConsoleConnection channel, VmsModel model) throws Exception {
event.stop();
diff --git a/webpages/_includes/umami.html b/webpages/_includes/umami.html
new file mode 100644
index 0000000..8066278
--- /dev/null
+++ b/webpages/_includes/umami.html
@@ -0,0 +1 @@
+
diff --git a/webpages/_layouts/vm-operator.html b/webpages/_layouts/vm-operator.html
index b85f650..40bdff7 100644
--- a/webpages/_layouts/vm-operator.html
+++ b/webpages/_layouts/vm-operator.html
@@ -8,6 +8,7 @@
+ {% include umami.html %}
|