Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2022-01-04 17:55:01 +0300
committersualko <klaus@jsxc.org>2022-01-04 17:55:01 +0300
commit46bc9be409c6a72ce2c0bcd22e1d3a59f71e8080 (patch)
tree7b63f921311b07ecd4530279959bb57f86824064
parent43786de42748f7b1b9e8ed39e9fcfb8290259ae6 (diff)
chore: satisfy psalm
-rw-r--r--lib/AppInfo/Application.php2
-rw-r--r--psalm.xml1
-rw-r--r--tests/psalm-baseline.xml8
3 files changed, 9 insertions, 2 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 2506967..8441d04 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -2,12 +2,10 @@
namespace OCA\OJSXC\AppInfo;
-use OC\Security\CSP\ContentSecurityPolicyManager;
use OCA\OJSXC\Controller\ManagedServerController;
use OCA\OJSXC\Middleware\ExternalApiMiddleware;
use OCA\OJSXC\Config;
use OCA\OJSXC\Listener\AddFeaturePolicyListener;
-use OCP\IContainer;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
diff --git a/psalm.xml b/psalm.xml
index e7b226e..be69961 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -6,6 +6,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
+ errorBaseline="tests/psalm-baseline.xml"
>
<projectFiles>
<directory name="lib" />
diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml
new file mode 100644
index 0000000..c5ed372
--- /dev/null
+++ b/tests/psalm-baseline.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<files psalm-version="4.17.0@6f4707aa41c9174353a6434bba3fc8840f981d9c">
+ <file src="lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
+</files>