First test of qodana

This commit is contained in:
Laurent Destailleur 2022-12-27 18:07:09 +01:00
parent d19fd31b83
commit b73df9724d
4 changed files with 37 additions and 1 deletions

View File

@ -22,7 +22,9 @@ filter:
- documents/
- node_modules/
- test/
- htdocs/custom/
- htdocs/includes/
- htdocs/install/doctemplates/
#dependency_paths:
# - htdocs/includes/
paths:
@ -43,7 +45,9 @@ tools:
- dev/
- doc/
- documents/
- htdocs/custom/
- htdocs/includes/
- htdocs/install/doctemplates/
- htdocs/core/class/lessc.class.php
- node_modules/
- test/

View File

@ -0,0 +1,14 @@
QODANA TUTO
-----------
This README explains how to use qodana to generate static analytics reports on the code
Install docker
Install qodana
To run inspection on CLI
cd ~/git/dirtoscan
sudo qodana scan --show-report

View File

@ -999,7 +999,7 @@ if ($massactionbutton && $contextpage != 'poslist') {
$moreforfilter = '';
$parameters = array();
$reshook = $hookmanager->executeHooks('printFieldPreListTitle', $parameters, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // Note that $action and $object may have been modified by hook
$reshook = $hookmanager->executeHooks('printFieldPreListTitle', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
$moreforfilter .= $hookmanager->resPrint;
} else {

18
qodana.yaml Normal file
View File

@ -0,0 +1,18 @@
version: "1.0"
linter: jetbrains/qodana-php:2022.3-eap
failThreshold: 0
profile:
name: qodana.recommended
exclude:
- name: All
paths:
- dev
- build
- doc
- documents
- node_modules
- test
- htdocs/custom
- htdocs/includes
- htdocs/install/doctemplates