Update dependencies

This commit is contained in:
Andreas Dangel 2023-01-24 10:17:49 +01:00
parent e05bc041f7
commit e2d6325841
No known key found for this signature in database
GPG Key ID: 25FE002491A5E1FE
2 changed files with 39 additions and 14 deletions

View File

@ -4,14 +4,14 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PMD Report </title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.12.1/b-2.2.3/b-colvis-2.2.3/b-html5-2.2.3/b-print-2.2.3/datatables.min.css"><script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script><script type="text/javascript" src="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.12.1/b-2.2.3/b-colvis-2.2.3/b-html5-2.2.3/b-print-2.2.3/datatables.min.js"></script><script src="https://cdn.jsdelivr.net/npm/vega@5.21.0"></script><script src="https://cdn.jsdelivr.net/npm/vega-lite@5.2.0"></script><script src="https://cdn.jsdelivr.net/npm/vega-embed@6.20.2"></script></head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.13.1/b-2.3.3/b-colvis-2.3.3/b-html5-2.3.3/b-print-2.3.3/datatables.min.css"><script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script><script type="text/javascript" src="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.13.1/b-2.3.3/b-colvis-2.3.3/b-html5-2.3.3/b-print-2.3.3/datatables.min.js"></script><script src="https://cdn.jsdelivr.net/npm/vega@5.22.1/build/vega.min.js" integrity="sha256-cx8BtoEWvBhaGWMiCWyjQnN0JMSZXEimZ09X68ln6cE=" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/vega-lite@5.6.0/build/vega-lite.min.js" integrity="sha256-6NKNS22U5kO0J2/tMld/SvW/eyY6wbOW6w+9mB2Z2p4=" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/vega-embed@6.21.0/build/vega-embed.min.js" integrity="sha256-/XLqtIcBhAjhlmMOaz23UAXzBgQymz60D73+PfrK24w=" crossorigin="anonymous"></script></head>
<body>
<nav class="nav navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<div class="container-fluid"><a class="navbar-brand" href="#">PMD Report</a><button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button></div>
</nav>
<div class="container" style="margin-top:100px;">
<h5>Problems found :: <small> Version: 6.53.0 @ 2023-01-23T16:28:11.495</small><span id="summary"></span></h5>
<h5>Problems found :: <small> Version: 6.53.0 @ 2023-01-24T10:02:08.431</small><span id="summary"></span></h5>
<table id="pmdTable" class="table table-hover table-striped">
<thead>
<tr>
@ -1102,16 +1102,31 @@
'Error Prone': 0,
'Multithreading': 0,
'Performance': 0,
'Security': 0
'Security': 0,
'Other': 0
};
function mapCategory(rulesetName) {
switch (rulesetName.toLowerCase()) {
case 'best practices': return 'Best Practices';
case 'code style': return 'Code Style';
case 'design': return 'Design';
case 'documentation': return 'Documentation';
case 'error prone': return 'Error Prone';
case 'multithreading': return 'Multithreading';
case 'performance': return 'Performance';
case 'security': return 'Security';
}
return 'Other';
}
let rows = $('#pmdTable tbody tr');
let total = rows.length;
rows.each(function() {
let priority = $("td", this).slice(4, 5).text();
priorityCounter[priority]++;
let category = $("td", this).slice(5, 6).text();
categoryCounter[category]++;
let rulesetName = $("td", this).slice(5, 6).text();
categoryCounter[mapCategory(rulesetName)]++;
});
const summaryEle = document.getElementById('summary');
@ -1156,7 +1171,8 @@
{"category": "Error Prone", "count": categoryCounter['Error Prone']},
{"category": "Multithreading", "count": categoryCounter['Multithreading']},
{"category": "Performance", "count": categoryCounter['Performance']},
{"category": "Security", "count": categoryCounter['Security']}
{"category": "Security", "count": categoryCounter['Security']},
{"category": "Other", "count": categoryCounter['Other']}
]
},
"mark": {"type": "arc" , "innerRadius": 50, "tooltip": true},

View File

@ -10,17 +10,26 @@ xmlns:scan="http://pmd.sourceforge.net/report/2.0.0">
<html>
<head>
<title>PMD Report </title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.12.1/b-2.2.3/b-colvis-2.2.3/b-html5-2.2.3/b-print-2.2.3/datatables.min.css"/>
<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"/>
<!-- Dependencies:
https://getbootstrap.com/docs/5.3/getting-started/download/
https://datatables.net/download/ (DataTables + Buttons + Column Visibility + HTML5 Export + JSZip + pdfmake + Print view
https://releases.jquery.com/
https://www.jsdelivr.com/package/npm/vega
https://www.jsdelivr.com/package/npm/vega-lite
-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.13.1/b-2.3.3/b-colvis-2.3.3/b-html5-2.3.3/b-print-2.3.3/datatables.min.css"/>
<script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"/>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"/>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.12.1/b-2.2.3/b-colvis-2.2.3/b-html5-2.2.3/b-print-2.2.3/datatables.min.js"/>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/jszip-2.5.0/dt-1.13.1/b-2.3.3/b-colvis-2.3.3/b-html5-2.3.3/b-print-2.3.3/datatables.min.js"/>
<script src="https://cdn.jsdelivr.net/npm/vega@5.21.0"/>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5.2.0"/>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.20.2"/>
<script src="https://cdn.jsdelivr.net/npm/vega@5.22.1/build/vega.min.js" integrity="sha256-cx8BtoEWvBhaGWMiCWyjQnN0JMSZXEimZ09X68ln6cE=" crossorigin="anonymous"/>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5.6.0/build/vega-lite.min.js" integrity="sha256-6NKNS22U5kO0J2/tMld/SvW/eyY6wbOW6w+9mB2Z2p4=" crossorigin="anonymous"/>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.21.0/build/vega-embed.min.js" integrity="sha256-/XLqtIcBhAjhlmMOaz23UAXzBgQymz60D73+PfrK24w=" crossorigin="anonymous"/>
</head>
<body>