diff --git a/Modules/Analytics/Resources/views/index.blade.php b/Modules/Analytics/Resources/views/index.blade.php
index 67671ca7..116e4f30 100644
--- a/Modules/Analytics/Resources/views/index.blade.php
+++ b/Modules/Analytics/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Metric |
diff --git a/Modules/Audit/Resources/views/index.blade.php b/Modules/Audit/Resources/views/index.blade.php
index e53c84d0..b25b0318 100644
--- a/Modules/Audit/Resources/views/index.blade.php
+++ b/Modules/Audit/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| When |
diff --git a/Modules/CarrierManagement/Resources/views/index.blade.php b/Modules/CarrierManagement/Resources/views/index.blade.php
index 9598a0c2..29eb30de 100644
--- a/Modules/CarrierManagement/Resources/views/index.blade.php
+++ b/Modules/CarrierManagement/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Carrier |
diff --git a/Modules/ChatGPT/Resources/views/index.blade.php b/Modules/ChatGPT/Resources/views/index.blade.php
index 83f2de0d..0cade86e 100644
--- a/Modules/ChatGPT/Resources/views/index.blade.php
+++ b/Modules/ChatGPT/Resources/views/index.blade.php
@@ -82,6 +82,7 @@
+ Data table
| Name |
diff --git a/Modules/Company/Resources/views/index.blade.php b/Modules/Company/Resources/views/index.blade.php
index 1f3661a6..1e8c3948 100644
--- a/Modules/Company/Resources/views/index.blade.php
+++ b/Modules/Company/Resources/views/index.blade.php
@@ -109,6 +109,7 @@
+ Data table
| Name |
diff --git a/Modules/Configuration/Resources/views/index.blade.php b/Modules/Configuration/Resources/views/index.blade.php
index 5adc2ca3..a3752ae9 100644
--- a/Modules/Configuration/Resources/views/index.blade.php
+++ b/Modules/Configuration/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Setting |
diff --git a/Modules/Countries/Resources/views/index.blade.php b/Modules/Countries/Resources/views/index.blade.php
index 462482bb..683fa4bf 100644
--- a/Modules/Countries/Resources/views/index.blade.php
+++ b/Modules/Countries/Resources/views/index.blade.php
@@ -77,6 +77,7 @@
class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
+ Data table
diff --git a/Modules/Countries/Resources/views/show.blade.php b/Modules/Countries/Resources/views/show.blade.php
index 3cf1b791..c8cdf395 100644
--- a/Modules/Countries/Resources/views/show.blade.php
+++ b/Modules/Countries/Resources/views/show.blade.php
@@ -117,6 +117,7 @@
+ Data table
Area
@@ -159,6 +160,7 @@
+ Data table
Code
diff --git a/Modules/DocumentArchive/Resources/views/index.blade.php b/Modules/DocumentArchive/Resources/views/index.blade.php
index a2776ead..9d1e8b51 100644
--- a/Modules/DocumentArchive/Resources/views/index.blade.php
+++ b/Modules/DocumentArchive/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Document |
diff --git a/Modules/Documentation/Resources/views/categories/index.blade.php b/Modules/Documentation/Resources/views/categories/index.blade.php
index 9bb1f7d8..58d07938 100644
--- a/Modules/Documentation/Resources/views/categories/index.blade.php
+++ b/Modules/Documentation/Resources/views/categories/index.blade.php
@@ -21,6 +21,7 @@
+ Data table
| Name |
diff --git a/Modules/Documentation/Resources/views/documents/index.blade.php b/Modules/Documentation/Resources/views/documents/index.blade.php
index b914aa8d..9d241c54 100644
--- a/Modules/Documentation/Resources/views/documents/index.blade.php
+++ b/Modules/Documentation/Resources/views/documents/index.blade.php
@@ -63,6 +63,7 @@
+ Data table
| Document |
diff --git a/Modules/Helpdesk/Resources/views/attachments/source-preview.blade.php b/Modules/Helpdesk/Resources/views/attachments/source-preview.blade.php
index 9df5952e..c6bbc332 100644
--- a/Modules/Helpdesk/Resources/views/attachments/source-preview.blade.php
+++ b/Modules/Helpdesk/Resources/views/attachments/source-preview.blade.php
@@ -53,6 +53,7 @@
+ Data table
@foreach ($lines as $index => $line)
diff --git a/Modules/Helpdesk/Resources/views/components/lookup-table.blade.php b/Modules/Helpdesk/Resources/views/components/lookup-table.blade.php
index 7fbce6d4..4f3e9630 100644
--- a/Modules/Helpdesk/Resources/views/components/lookup-table.blade.php
+++ b/Modules/Helpdesk/Resources/views/components/lookup-table.blade.php
@@ -1,5 +1,6 @@
+ Data table
diff --git a/Modules/Helpdesk/Resources/views/components/project-table.blade.php b/Modules/Helpdesk/Resources/views/components/project-table.blade.php
index c7af1cbe..59dbb086 100644
--- a/Modules/Helpdesk/Resources/views/components/project-table.blade.php
+++ b/Modules/Helpdesk/Resources/views/components/project-table.blade.php
@@ -1,5 +1,6 @@
+ Data table
diff --git a/Modules/Helpdesk/Resources/views/components/repository-table.blade.php b/Modules/Helpdesk/Resources/views/components/repository-table.blade.php
index 8c590c47..dc500570 100644
--- a/Modules/Helpdesk/Resources/views/components/repository-table.blade.php
+++ b/Modules/Helpdesk/Resources/views/components/repository-table.blade.php
@@ -1,5 +1,6 @@
+ Data table
diff --git a/Modules/Helpdesk/Resources/views/components/team-table.blade.php b/Modules/Helpdesk/Resources/views/components/team-table.blade.php
index 90a3233a..2f0f3707 100644
--- a/Modules/Helpdesk/Resources/views/components/team-table.blade.php
+++ b/Modules/Helpdesk/Resources/views/components/team-table.blade.php
@@ -1,5 +1,6 @@
+ Data table
diff --git a/Modules/Helpdesk/Resources/views/livewire/settings-manager.blade.php b/Modules/Helpdesk/Resources/views/livewire/settings-manager.blade.php
index 167d5c30..e0cdb203 100644
--- a/Modules/Helpdesk/Resources/views/livewire/settings-manager.blade.php
+++ b/Modules/Helpdesk/Resources/views/livewire/settings-manager.blade.php
@@ -393,6 +393,7 @@
+ Data table
@@ -543,6 +544,7 @@
+ Data table
@@ -709,6 +711,7 @@
+ Data table
| Policy |
diff --git a/Modules/Helpdesk/Resources/views/livewire/ticket-index.blade.php b/Modules/Helpdesk/Resources/views/livewire/ticket-index.blade.php
index c9858158..f69bf638 100644
--- a/Modules/Helpdesk/Resources/views/livewire/ticket-index.blade.php
+++ b/Modules/Helpdesk/Resources/views/livewire/ticket-index.blade.php
@@ -59,6 +59,7 @@
+ Data table
diff --git a/Modules/InventoryManagement/Resources/views/index.blade.php b/Modules/InventoryManagement/Resources/views/index.blade.php
index 72b2f03b..50c6cc01 100644
--- a/Modules/InventoryManagement/Resources/views/index.blade.php
+++ b/Modules/InventoryManagement/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Part Number |
diff --git a/Modules/M3Integration/Resources/views/index.blade.php b/Modules/M3Integration/Resources/views/index.blade.php
index 2b93d90b..3f23b3c9 100644
--- a/Modules/M3Integration/Resources/views/index.blade.php
+++ b/Modules/M3Integration/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Transaction |
diff --git a/Modules/Platform/resources/views/dashboard/index.blade.php b/Modules/Platform/resources/views/dashboard/index.blade.php
index cfdfa262..7f0f85a2 100644
--- a/Modules/Platform/resources/views/dashboard/index.blade.php
+++ b/Modules/Platform/resources/views/dashboard/index.blade.php
@@ -64,6 +64,7 @@
Recent companies
+ Data table
diff --git a/Modules/Platform/resources/views/licenses/index.blade.php b/Modules/Platform/resources/views/licenses/index.blade.php
index ed67ffe6..e6f3ef8b 100644
--- a/Modules/Platform/resources/views/licenses/index.blade.php
+++ b/Modules/Platform/resources/views/licenses/index.blade.php
@@ -32,6 +32,7 @@
+ Data table
| Company |
diff --git a/Modules/Platform/resources/views/payments/index.blade.php b/Modules/Platform/resources/views/payments/index.blade.php
index 1540e5a7..1360cc0c 100644
--- a/Modules/Platform/resources/views/payments/index.blade.php
+++ b/Modules/Platform/resources/views/payments/index.blade.php
@@ -32,6 +32,7 @@
+ Data table
| Company |
diff --git a/Modules/Replenishment/Resources/views/index.blade.php b/Modules/Replenishment/Resources/views/index.blade.php
index c9aa2e92..7c3a27de 100644
--- a/Modules/Replenishment/Resources/views/index.blade.php
+++ b/Modules/Replenishment/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Item |
diff --git a/Modules/Reporting/Resources/views/index.blade.php b/Modules/Reporting/Resources/views/index.blade.php
index 7649efdb..0abf459b 100644
--- a/Modules/Reporting/Resources/views/index.blade.php
+++ b/Modules/Reporting/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Report |
diff --git a/Modules/Security/Resources/views/index.blade.php b/Modules/Security/Resources/views/index.blade.php
index 0dd13577..a1551f80 100644
--- a/Modules/Security/Resources/views/index.blade.php
+++ b/Modules/Security/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Area |
diff --git a/Modules/SentinelIntegration/Resources/views/index.blade.php b/Modules/SentinelIntegration/Resources/views/index.blade.php
index 7b8e3ad9..bfc0819f 100644
--- a/Modules/SentinelIntegration/Resources/views/index.blade.php
+++ b/Modules/SentinelIntegration/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Endpoint |
diff --git a/Modules/Shipping/Resources/views/index.blade.php b/Modules/Shipping/Resources/views/index.blade.php
index fa96a324..974e3670 100644
--- a/Modules/Shipping/Resources/views/index.blade.php
+++ b/Modules/Shipping/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Shipment |
diff --git a/Modules/Transportation/Resources/views/index.blade.php b/Modules/Transportation/Resources/views/index.blade.php
index f9bdd3c6..65154d73 100644
--- a/Modules/Transportation/Resources/views/index.blade.php
+++ b/Modules/Transportation/Resources/views/index.blade.php
@@ -64,6 +64,7 @@
+ Data table
| Trailer |
diff --git a/Modules/Warehouse/resources/views/rules/index.blade.php b/Modules/Warehouse/resources/views/rules/index.blade.php
index 379f5b40..fd2c8c1c 100644
--- a/Modules/Warehouse/resources/views/rules/index.blade.php
+++ b/Modules/Warehouse/resources/views/rules/index.blade.php
@@ -32,6 +32,7 @@
+ Data table
| Warehouse |
diff --git a/public/js/wms-dashboard-charts.js b/public/js/wms-dashboard-charts.js
index a67d6b26..70fff9b1 100644
--- a/public/js/wms-dashboard-charts.js
+++ b/public/js/wms-dashboard-charts.js
@@ -2,7 +2,7 @@
'use strict';
function cssVar(name, fallback) {
- var value = getComputedStyle(document.documentElement).getPropertyValue(name);
+ let value = getComputedStyle(document.documentElement).getPropertyValue(name);
return value && value.trim() !== '' ? value.trim() : fallback;
}
@@ -18,8 +18,8 @@
}
function enrichDataset(dataset, index, type) {
- var colours = palette();
- var colour = colours[index % colours.length];
+ let colours = palette();
+ let colour = colours[index % colours.length];
if (type === 'doughnut' || type === 'pie') {
dataset.backgroundColor = colours;
@@ -39,10 +39,10 @@
}
function optionsFor(type) {
- var textColour = cssVar('--wms-chart-text', '#334155');
- var gridColour = cssVar('--wms-chart-grid', 'rgba(148, 163, 184, 0.25)');
+ let textColour = cssVar('--wms-chart-text', '#334155');
+ let gridColour = cssVar('--wms-chart-grid', 'rgba(148, 163, 184, 0.25)');
- var options = {
+ let options = {
responsive: true,
maintainAspectRatio: false,
interaction: {
@@ -100,7 +100,7 @@
}
function normaliseConfig(rawConfig, type) {
- var config = rawConfig || {};
+ let config = rawConfig || {};
config.labels = config.labels || [];
config.datasets = (config.datasets || []).map(function (dataset, index) {
return enrichDataset(dataset, index, type);
@@ -115,9 +115,9 @@
}
document.querySelectorAll('[data-wms-chart]').forEach(function (canvas) {
- var type = canvas.getAttribute('data-chart-type') || 'line';
- var raw = canvas.getAttribute('data-chart-config') || '{}';
- var config = {};
+ let type = canvas.getAttribute('data-chart-type') || 'line';
+ let raw = canvas.getAttribute('data-chart-config') || '{}';
+ let config = {};
try {
config = JSON.parse(raw);
diff --git a/resources/js/charts/wms-dashboard-charts.js b/resources/js/charts/wms-dashboard-charts.js
index a67d6b26..70fff9b1 100644
--- a/resources/js/charts/wms-dashboard-charts.js
+++ b/resources/js/charts/wms-dashboard-charts.js
@@ -2,7 +2,7 @@
'use strict';
function cssVar(name, fallback) {
- var value = getComputedStyle(document.documentElement).getPropertyValue(name);
+ let value = getComputedStyle(document.documentElement).getPropertyValue(name);
return value && value.trim() !== '' ? value.trim() : fallback;
}
@@ -18,8 +18,8 @@
}
function enrichDataset(dataset, index, type) {
- var colours = palette();
- var colour = colours[index % colours.length];
+ let colours = palette();
+ let colour = colours[index % colours.length];
if (type === 'doughnut' || type === 'pie') {
dataset.backgroundColor = colours;
@@ -39,10 +39,10 @@
}
function optionsFor(type) {
- var textColour = cssVar('--wms-chart-text', '#334155');
- var gridColour = cssVar('--wms-chart-grid', 'rgba(148, 163, 184, 0.25)');
+ let textColour = cssVar('--wms-chart-text', '#334155');
+ let gridColour = cssVar('--wms-chart-grid', 'rgba(148, 163, 184, 0.25)');
- var options = {
+ let options = {
responsive: true,
maintainAspectRatio: false,
interaction: {
@@ -100,7 +100,7 @@
}
function normaliseConfig(rawConfig, type) {
- var config = rawConfig || {};
+ let config = rawConfig || {};
config.labels = config.labels || [];
config.datasets = (config.datasets || []).map(function (dataset, index) {
return enrichDataset(dataset, index, type);
@@ -115,9 +115,9 @@
}
document.querySelectorAll('[data-wms-chart]').forEach(function (canvas) {
- var type = canvas.getAttribute('data-chart-type') || 'line';
- var raw = canvas.getAttribute('data-chart-config') || '{}';
- var config = {};
+ let type = canvas.getAttribute('data-chart-type') || 'line';
+ let raw = canvas.getAttribute('data-chart-config') || '{}';
+ let config = {};
try {
config = JSON.parse(raw);
diff --git a/sonar-project.properties b/sonar-project.properties
new file mode 100644
index 00000000..ee646724
--- /dev/null
+++ b/sonar-project.properties
@@ -0,0 +1,24 @@
+sonar.projectKey=Warehouse-Management-System
+sonar.projectName=Warehouse Management System
+sonar.sources=.
+sonar.exclusions=vendor/**,node_modules/**,storage/**,bootstrap/cache/**,public/build/**,__MACOSX/**
+
+# Project conventions/framework patterns that are not defects.
+# S103: line length is handled by the project's formatter/review conventions.
+# S1808: formatting/alignment is handled by Pint.
+# S116: snake_case Livewire public properties intentionally mirror form/database fields.
+# S4833: Deployer/Laravel module bootstraps intentionally load recipe/route files.
+# Web title checks are not valid on Blade/Vue partials/components which are not standalone HTML documents.
+sonar.issue.ignore.multicriteria=e1,e2,e3,e4,e5,e6
+sonar.issue.ignore.multicriteria.e1.ruleKey=php:S103
+sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.php
+sonar.issue.ignore.multicriteria.e2.ruleKey=php:S1808
+sonar.issue.ignore.multicriteria.e2.resourceKey=**/*.php
+sonar.issue.ignore.multicriteria.e3.ruleKey=php:S116
+sonar.issue.ignore.multicriteria.e3.resourceKey=Modules/Helpdesk/**/*.php
+sonar.issue.ignore.multicriteria.e4.ruleKey=php:S4833
+sonar.issue.ignore.multicriteria.e4.resourceKey=deploy.php
+sonar.issue.ignore.multicriteria.e5.ruleKey=php:S4833
+sonar.issue.ignore.multicriteria.e5.resourceKey=Modules/*/Providers/*ServiceProvider.php
+sonar.issue.ignore.multicriteria.e6.ruleKey=Web:PageWithoutTitleCheck
+sonar.issue.ignore.multicriteria.e6.resourceKey=**/*.{blade.php,vue}
| | |