Showing 1,238 of 1,238 total issues
Method reloadIgnorePatterns
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function reloadIgnorePatterns(): void {
$validationExclusionFile = Services::getInstance()->getConfigHelper()->getValidationExclusionFile();
if ( $validationExclusionFile === false ) {
self::$ignorePatterns = [];
Function descriptors
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
descriptors: function(chart) {
var cache = chart.$plugins || (chart.$plugins = {});
if (cache.id === this._cacheId) {
return cache.descriptors;
}
Function changeSettings
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
changeSettings: function ( changes ) {
// Clear current messages
this.clear();
this.settings = $.extend( this.settings, changes );
Function showTranslations
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showTranslations( translations ) {
var $target = $( '.translations' );
$target.empty();
Function _drawLabels
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drawLabels: function() {
var me = this;
var optionTicks = me.options.ticks;
if (!optionTicks.display) {
Method tryMatch
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function tryMatch( $code, $mws, $gtLanguages, $clLanguages ) {
if ( $mws !== '' ) {
$mwExp = true;
$lang = MediaWikiServices::getInstance()->getLanguageFactory()->getLanguage( $code );
} else {
Function computeLinearBoundary
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function computeLinearBoundary(source) {
var model = source.el._model || {};
var scale = source.el._scale || {};
var fill = source.fill;
var target = null;
Function drawRadiusLine
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawRadiusLine(scale, gridLineOpts, radius, index) {
var ctx = scale.ctx;
var circular = gridLineOpts.circular;
var valueCount = scale.chart.data.labels.length;
var lineColor = valueAtIndexOrDefault$1(gridLineOpts.color, index - 1);
Method execute
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$groups = MessageGroups::singleton()->getGroups();
$mwInstance = MediaWikiServices::getInstance();
$jobQueueGroup = $mwInstance->getJobQueueGroup();
Method parseUnit
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function parseUnit( string $content ): TranslationUnit {
$re = '~<!--T:(.*?)-->~';
$matches = [];
$count = preg_match_all( $re, $content, $matches, PREG_SET_ORDER );
Method store
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function store( array $array, array $diff ): void {
$updates = [];
foreach ( [ $diff['add'], $diff['mod'] ] as $changes ) {
foreach ( $changes as $key => $data ) {
Method createIndex
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createIndex( bool $rebuild ): void {
$indexSettings = [
'settings' => [
'index' => [
'number_of_shards' => $this->getShardCount(),
Method showPage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function showPage(): void {
$out = $this->getOutput();
$nojs = Html::errorBox(
$this->msg( 'tux-nojs' )->escaped(),
Method processQueryResults
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function processQueryResults( IResultWrapper $res, string $text, string $targetLanguage ): array {
$timeLimit = microtime( true ) + 5;
$lenA = mb_strlen( $text );
$results = [];
Method getDocuments
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDocuments(): array {
$documents = [];
$offset = $this->params['offset'];
$limit = $this->params['limit'];
Method getErrorMessageHtml
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getErrorMessageHtml(
string $groupId,
MessageUpdateParameter $message,
Language $language,
string $wrapperClass
Method makeRow
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function makeRow(
StatsTable $table,
string $languageCode,
array $stats,
MessageGroup $group,
Method hasOnly
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function hasOnly( $language, $type ) {
$deletions = $this->getDeletions( $language );
$additions = $this->getAdditions( $language );
$renames = $this->getRenames( $language );
$changes = $this->getChanges( $language );
Method execute
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(): void {
if ( !$this->groupSubscription->isEnabled() ) {
$this->dieWithError( 'apierror-translate-messagegroupsubscription-disabled' );
}
Method getPossibleRenames
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getPossibleRenames(
MessageSourceChange $sourceChanges,
int $groupNamespace,
string $msgKey,
string $languageCode