Showing 994 of 1,238 total issues
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
Method write
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function write( MessageCollection $collection ): void {
$writePath = $this->writePath;
if ( $writePath === null ) {
throw new LogicException( 'Write path is not set. Set write path before calling write()' );
Method getIssues
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getIssues( Message $message, string $targetLanguage ): ValidationIssues {
$issues = new ValidationIssues();
$definition = $message->definition();
$translation = $message->translation();
Function update
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(reset) {
var me = this;
var meta = me.getMeta();
var line = meta.dataset;
var points = meta.data || [];
Function getAxesLabelsAndData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAxesLabelsAndData( jsonGraphData ) {
var labels = [], graphData = [],
labelIndex = 0,
maxValue = 0, minValue = 0;
Function listen
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
listen: function () {
var messageTable = this,
$filterInput = this.$container.parent().find( '.tux-message-filter-box' );
// Vector has transitions of 250ms which affect layout. Let those finish.
Function init
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function () {
var that = this;
this.render();
Function showAssistantLanguages
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showAssistantLanguages: function ( translations ) {
if ( translations.error ) {
return;
}
Function listenArrayEvents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function listenArrayEvents(array, listener) {
if (array._chartjs) {
array._chartjs.listeners.push(listener);
return;
}
Function getFuzzyTimestamp
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getFuzzyTimestamp( pageTitle ) {
var api = new mw.Api();
// This api call returns the timestamp of FuzzyBot's edit
return api.get( {
Method __construct
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct() {
parent::__construct();
$this->addDescription( 'Script to bootstrap TtmServer.' );
$this->addOption(
'threads',
Method execute
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$mwLanguages = $this->loadMediaWiki();
$gtLanguages = $this->loadGettext();
$clLanguages = $this->loadCLDR();
Function calculateTickRotation
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
calculateTickRotation: function() {
var me = this;
var options = me.options;
var tickOpts = options.ticks;
var numTicks = me.getTicks().length;
Method needsFuzzy
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function needsFuzzy( string $text ): bool {
// Docs are exempt for checks
if ( $this->isDoc() ) {
return false;
}