Showing 3,236 of 4,502 total issues
Function rename
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
rename: function(oldName) {
var self = this;
var tr, td, input, form;
tr = this.findFileEl(oldName);
var oldFileInfo = this.files[tr.index()];
Function registerCoreProviders
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
protected function registerCoreProviders() {
if ($this->registeredCoreProviders) {
return;
}
$this->registeredCoreProviders = true;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File ar.js
has 404 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "كلمة المرور الحالية خاطئة",
"The new password cannot be the same as the previous one" : "لا يمكن أن تكون كلمة المرور الجديدة نفس كلمة المرور القديمة",
File bg_BG.js
has 403 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Грешна текуща парола",
"The new password cannot be the same as the previous one" : "Новата парола не може да бъде същата като предишната.",
File ko.js
has 403 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "현재 비밀번호가 잘못되었습니다",
"The new password cannot be the same as the previous one" : "새 비밀번호는 이전 비밀번호와 같을 수 없습니다",
File es.js
has 403 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Contraseña actual equivocada",
"The new password cannot be the same as the previous one" : "La contraseña nueva no puede ser igual a la anterior",
FederatedShareProvider
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
class FederatedShareProvider implements IShareProvider {
public const SHARE_TYPE_REMOTE = 6;
/** @var IDBConnection */
private $dbConnection;
File Scan.php
has 401 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* @author Bart Visscher <bartv@thisnet.nl>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author martin.mattel@diemattels.at <martin.mattel@diemattels.at>
Method setupFS
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function setupFS($user = '', $fullInit = true) {
//setting up the filesystem twice can only lead to trouble
if (self::$fsSetup) {
return false;
}
Function createFileChunked
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
private function createFileChunked($data) {
list($path, $name) = \Sabre\Uri\split($this->path);
$info = \OC_FileChunking::decodeName($name);
if (empty($info)) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getFileInfo
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
protected function getFileInfo($path) {
$this->log('enter: '.__FUNCTION__."($path)");
$path = $this->buildPath($path);
if (!isset($this->statCache[$path])) {
try {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function execute
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
protected function execute(InputInterface $input, OutputInterface $output): int {
$appNameSubString = $input->getArgument('search-pattern');
$minimalView = $input->getOption('minimal');
if ($input->getOption('shipped') === 'true' || $input->getOption('shipped') === 'false') {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File it.js
has 399 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Password corrente errata",
"The new password cannot be the same as the previous one" : "La nuova password non può essere identica alla precedente",
Function _createRow
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
_createRow: function(fileData, options) {
var td, simpleSize, basename, extension, sizeColor,
icon = fileData.icon || this._getIconUrl(fileData),
name = fileData.name,
// TODO: get rid of type, only use mime type
File zh_CN.js
has 398 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "密码错误",
"The new password cannot be the same as the previous one" : "新密码不能和之前的密码相同",
File ru.js
has 398 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Старый пароль неверен",
"The new password cannot be the same as the previous one" : "Новый пароль не совпадать с предыдущим",
File th_TH.js
has 398 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "รหัสผ่านปัจจุบันไม่ถูกต้อง",
"The new password cannot be the same as the previous one" : "รหัสผ่านใหม่ต้องไม่ซ้ำกับรหัสเดิมที่เคยใช้มาก่อน",
File el.js
has 397 lines of code (exceeds 250 allowed). Consider refactoring. Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Εσφαλμένο τρέχον συνθηματικό",
"The new password cannot be the same as the previous one" : "Το νέο συνθηματικό δεν πρέπει να είναι το ίδιο με το προηγούμενο",
File helper.php
has 397 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Bart Visscher <bartv@thisnet.nl>
* @author Björn Schießle <bjoern@schiessle.org>
Method put
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function put($data) {
try {
$exists = $this->fileView->file_exists($this->path);
if ($this->info && $exists && !$this->info->isUpdateable()) {
throw new Forbidden();