diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 3f146ddc4b2..bbf0a4d6517 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -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/ diff --git a/dev/setup/qodana/README.md b/dev/setup/qodana/README.md new file mode 100644 index 00000000000..37b465cabc9 --- /dev/null +++ b/dev/setup/qodana/README.md @@ -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 + diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php index 2b2df70d647..9590c3551cf 100644 --- a/htdocs/accountancy/bookkeeping/list.php +++ b/htdocs/accountancy/bookkeeping/list.php @@ -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 { diff --git a/qodana.yaml b/qodana.yaml new file mode 100644 index 00000000000..65070733359 --- /dev/null +++ b/qodana.yaml @@ -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 +