diff --git a/core/command/app/checkcode.php b/core/command/app/checkcode.php
index a04f4bb5e0306c822d7ef44c5a5a7b8c9cb1c7a9..e186d458c01b82aaf68d74f70e55213817c48b50 100644
--- a/core/command/app/checkcode.php
+++ b/core/command/app/checkcode.php
@@ -131,6 +131,10 @@ class CheckCode extends Command {
 				}
 			});
 
+			$infoChecker->listen('InfoChecker', 'duplicateRequirement', function($minMax) use ($output) {
+				$output->writeln("<error>Duplicate $minMax ownCloud version requirement found</error>");
+			});
+
 			$infoChecker->listen('InfoChecker', 'differentVersions', function($versionFile, $infoXML) use ($output) {
 				$output->writeln("<error>Different versions provided (appinfo/version: $versionFile - appinfo/info.xml: $infoXML)</error>");
 			});
diff --git a/lib/private/app/codechecker/infochecker.php b/lib/private/app/codechecker/infochecker.php
index 91580bde07d886246d1c0cf3385223d47c1abedd..24835d8148f93ca137558347763ea5aee7046533 100644
--- a/lib/private/app/codechecker/infochecker.php
+++ b/lib/private/app/codechecker/infochecker.php
@@ -77,6 +77,21 @@ class InfoChecker extends BasicEmitter {
 
 		$info = $this->infoParser->parse($appPath . '/appinfo/info.xml');
 
+		if (isset($info['dependencies']['owncloud']['@attributes']['min-version']) && ($info['requiremin'] || $info['require'])) {
+			$this->emit('InfoChecker', 'duplicateRequirement', ['min']);
+			$errors[] = [
+				'type' => 'duplicateRequirement',
+				'field' => 'min',
+			];
+		}
+		if (isset($info['dependencies']['owncloud']['@attributes']['max-version']) && $info['requiremax']) {
+			$this->emit('InfoChecker', 'duplicateRequirement', ['max']);
+			$errors[] = [
+				'type' => 'duplicateRequirement',
+				'field' => 'max',
+			];
+		}
+
 		foreach ($info as $key => $value) {
 			if(is_array($value)) {
 				$value = json_encode($value);