Refactored the Coding checks
This commit is contained in:
parent
e464c231ec
commit
9920857810
|
|
@ -98,7 +98,7 @@
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -128,7 +128,7 @@ String b = (a==null || a.length<1) ? null : a.substring(1);
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -178,7 +178,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -198,7 +198,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -228,7 +228,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -294,7 +294,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -351,7 +351,7 @@ public class MySingleton
|
|||
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -424,7 +424,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -478,7 +478,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -506,7 +506,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -558,7 +558,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -583,7 +583,7 @@ public class MySingleton
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
@ -619,7 +619,7 @@ return !valid();
|
|||
</pre>
|
||||
<h4>Package</h4>
|
||||
<p class="body">
|
||||
com.puppycrawl.tools.checkstyle.checks
|
||||
com.puppycrawl.tools.checkstyle.checks.coding
|
||||
</p>
|
||||
<h4>Parent Module</h4>
|
||||
<p class="body">
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
||||
|
|
@ -35,7 +35,7 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
|||
* so their company's coding standards forbids them.
|
||||
*
|
||||
* @author lkuehne
|
||||
* @version $Revision: 1.4 $
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class AvoidInlineConditionalsCheck extends Check
|
||||
{
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import antlr.collections.AST;
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
|
@ -28,6 +28,7 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
|||
import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
||||
import com.puppycrawl.tools.checkstyle.api.FullIdent;
|
||||
import com.puppycrawl.tools.checkstyle.api.Utils;
|
||||
import com.puppycrawl.tools.checkstyle.checks.AbstractImportCheck;
|
||||
import antlr.collections.AST;
|
||||
|
||||
// TODO: Clean up potential duplicate code here and in UnusedImportsCheck
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
||||
|
|
@ -16,12 +16,14 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
||||
import com.puppycrawl.tools.checkstyle.api.FullIdent;
|
||||
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
||||
import com.puppycrawl.tools.checkstyle.api.Utils;
|
||||
import com.puppycrawl.tools.checkstyle.checks.AbstractImportCheck;
|
||||
import com.puppycrawl.tools.checkstyle.checks.ClassResolver;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import antlr.collections.AST;
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
array.trailing.comma=Array should contain trailing comma.
|
||||
|
||||
assignment.inner.avoid=Inner assignments should be avoided.
|
||||
|
||||
doublechecked.locking.avoid=The double-checked locking idiom is broken and should be avoided.
|
||||
|
||||
empty.statement=Empty statement.
|
||||
|
||||
equals.noHashCode=Definition of ''equals()'' without corresponding definition of ''hashCode()''.
|
||||
|
||||
hidden.field=''{0}'' hides a field.
|
||||
|
||||
instantiation.avoid=Instantiation of {0} should be avoided.
|
||||
|
||||
magic.number=''{0}'' is a magic number.
|
||||
|
||||
missing.switch.default=switch without \"default\" clause.
|
||||
|
||||
redundant.throws.classInfo=Unable to get class information for {0}.
|
||||
redundant.throws.duplicate=Redundant throws: ''{0}'' listed more then one time.
|
||||
redundant.throws.subclass=Redundant throws: ''{0}'' is subclass of ''{1}''.
|
||||
redundant.throws.unchecked=Redundant throws: ''{0}'' is unchecked exception.
|
||||
|
||||
simplify.boolreturn=Conditional logic can be removed.
|
||||
simplify.expression=Expression can be simplified.
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
assignment.inner.avoid=Innere Zuweisungen sollten vermieden werden.
|
||||
doublechecked.locking.avoid=Das ''double-checked locking'' Idiom sollte vermieden werden.
|
||||
empty.statement=Leere Anweisung.
|
||||
equals.noHashCode=Definition von ''equals()'' ohne korrespondierende Definition von ''hashCode()''.
|
||||
hidden.field=''{0}'' verbirgt ein Feld.
|
||||
instantiation.avoid=Instantiierung von {0} sollte vermieden werden.
|
||||
magic.number=''{0}'' sollte durch eine Konstante definiert sein.
|
||||
missing.switch.default=switch ohne \"default\".
|
||||
redundant.throws.classInfo=Klassen-Information für {0} nicht verfügbar.
|
||||
redundant.throws.duplicate=Überflüssige throws Deklaration: ''{0}'' ist mehrfach aufgeführt.
|
||||
redundant.throws.subclass=Überflüssige throws Deklaration: ''{0}'' ist Unterklasse von ''{1}''.
|
||||
redundant.throws.unchecked=Überflüssige throws Deklaration: ''{0}'' ist eine unchecked Exception (abgeleitet von RuntimeException).
|
||||
simplify.boolreturn=Die Verzweigung sollte entfernt werden.
|
||||
simplify.expression=Der Ausdruck kann vereinfacht werden.
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
assignment.inner.avoid=Älä käytä sisäkkäisiä sijoituksia.
|
||||
equals.noHashCode=''equals()'' määritelty ilman vastaavaa ''hashCode()''-määrittelyä.
|
||||
hidden.field=''{0}'' piilottaa muuttujan.
|
||||
instantiation.avoid=Älä instantioi {0}:a.
|
||||
simplify.boolreturn=Konditionaalilogiikan voisi poistaa.
|
||||
simplify.expression=Ilmaisua voisi yksinkertaistaa.
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
assignment.inner.avoid=Eviter les assignements internes.
|
||||
equals.noHashCode=Définition de la méthode ''equals()'' sans définition de méthode ''hashCode()"" correspondante.
|
||||
hidden.field=''{0}'' cache un champ.
|
||||
instantiation.avoid=Evitez l''instanciation de la classe {0}.
|
||||
simplify.boolreturn=Supprimez la logique conditionnelle.
|
||||
simplify.expression=L'expression peut-être simplifiée.
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
assignment.inner.avoid=式内部での代入は避けるべきです。
|
||||
doublechecked.locking.avoid=double-checked locking イディオムは不十分なものであり、避けるべきです。
|
||||
empty.statement=空の文です。
|
||||
equals.noHashCode=''equals()'' を定義していますが、これに対応する ''hashCode()'' の定義がありません。
|
||||
hidden.field=''{0}'' がフィールドを隠しています。
|
||||
instantiation.avoid={0} のインスタンス化は避けるべきです。
|
||||
magic.number=''{0}'' はマジックナンバーです。
|
||||
missing.switch.default=\"default\" 節の無い switch 文です。
|
||||
redundant.throws.classInfo={0} のクラス情報が取得できません。
|
||||
redundant.throws.duplicate=冗長な throws: ''{0}'' が重複しています。
|
||||
redundant.throws.subclass=冗長な throws: ''{0}'' は ''{1}'' のサブクラスです。
|
||||
redundant.throws.unchecked=冗長な throws: ''{0}'' はチェックされない例外です。
|
||||
simplify.boolreturn=条件ロジックはなくせます。
|
||||
simplify.expression=表現は簡潔にできます。
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
assignment.inner.avoid=As atribuições internas devem ser evitadas.
|
||||
doublechecked.locking.avoid=O método de sincronização com verificação dupla não funciona e deve ser evitado.
|
||||
empty.statement=Declaração vazia.
|
||||
equals.noHashCode=Definição de ''equals()'' sem a definição de ''hashCode()''.
|
||||
hidden.field=''{0}'' esconde um campo.
|
||||
instantiation.avoid=A instanciação de {0} deve ser evitada.
|
||||
magic.number=''{0}'' é um número mágico.
|
||||
missing.switch.default=switch sem o ramo \"default\".
|
||||
redundant.throws.classInfo=Não foi possível obter os dados da classe {0}.
|
||||
redundant.throws.duplicate=throws redundante: ''{0}'' listado mais do que uma vez.
|
||||
redundant.throws.subclass=throws redundante: ''{0}'' é uma sub-classe de ''{1}''.
|
||||
redundant.throws.unchecked=throws redundante: ''{0}'' é um excepção não-verificada.
|
||||
simplify.boolreturn=A lógica condicional deve ser removida.
|
||||
simplify.expression=Expressão pode ser simplicada.
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
||||
<html>
|
||||
<head></head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>Contains the Coding checks that are bundled with the main distribution.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -2,50 +2,21 @@ noNewlineAtEOF=File does not end with a newline.
|
|||
|
||||
redundantModifier=Redundant ''{0}'' modifier.
|
||||
|
||||
name.invalidPattern=Name ''{0}'' must match pattern ''{1}''.
|
||||
|
||||
variable.missingJavadoc=Variable ''{0}'' is missing Javadoc.
|
||||
|
||||
todo.match=Comment matches to-do format ''{0}''.
|
||||
|
||||
instantiation.avoid=Instantiation of {0} should be avoided.
|
||||
|
||||
upperEll=Should use uppercase ''L''.
|
||||
|
||||
header.missing=Missing a header - not enough lines in file.
|
||||
header.mismatch=Line does not match expected header line of ''{0}''.
|
||||
|
||||
regexp.parseError=Unable to parse regular expression ''{0}''.
|
||||
|
||||
mod.order=''{0}'' modifier out of order with the JLS suggestions.
|
||||
|
||||
|
||||
field.unused=''{0}'' is an unused field.
|
||||
|
||||
assignment.inner.avoid=Inner assignments should be avoided.
|
||||
illegal.regexp=Line matches the illegal pattern ''{0}''.
|
||||
equals.noHashCode=Definition of ''equals()'' without corresponding definition of ''hashCode()''.
|
||||
|
||||
hidden.field=''{0}'' hides a field.
|
||||
|
||||
translation.missingKey=Key ''{0}'' missing.
|
||||
|
||||
simplify.expression=Expression can be simplified.
|
||||
simplify.boolreturn=Conditional logic can be removed.
|
||||
|
||||
doublechecked.locking.avoid=The double-checked locking idiom is broken and should be avoided.
|
||||
|
||||
missing.switch.default=switch without \"default\" clause.
|
||||
|
||||
empty.statement=Empty statement.
|
||||
|
||||
magic.number=''{0}'' is a magic number.
|
||||
|
||||
redundant.throws.classInfo=Unable to get class information for {0}.
|
||||
redundant.throws.subclass=Redundant throws: ''{0}'' is subclass of ''{1}''.
|
||||
redundant.throws.duplicate=Redundant throws: ''{0}'' listed more then one time.
|
||||
redundant.throws.unchecked=Redundant throws: ''{0}'' is unchecked exception.
|
||||
|
||||
array.trailing.comma=Array should contain trailing comma.
|
||||
|
||||
uncommented.main=Uncommented main method found.
|
||||
|
|
|
|||
|
|
@ -3,46 +3,20 @@ noNewlineAtEOF=Datei endet nicht mit einem Zeilenumbruch.
|
|||
|
||||
redundantModifier=Überflüssiger ''{0}'' modifier.
|
||||
|
||||
name.invalidPattern=''{0}'' entspricht nicht dem Pattern ''{1}''.
|
||||
|
||||
variable.missingJavadoc=Variable ''{0}'' ist nicht dokumentiert.
|
||||
|
||||
todo.match=Kommentar entspricht to-do Format ''{0}''.
|
||||
|
||||
instantiation.avoid=Instantiierung von {0} sollte vermieden werden.
|
||||
|
||||
upperEll=Zur besseren Lesbarkeit sollte ein großes ''L'' verwendet werden.
|
||||
|
||||
header.missing=Header fehlt - Datei hat nicht genug Zeilen.
|
||||
header.mismatch=Zeile entspricht nicht der erwarteten Header-Zeile ''{0}''.
|
||||
|
||||
regexp.parseError=''{0}'' ist kein regulärer Ausdruck.
|
||||
|
||||
mod.order=''{0}'' Modifier weicht von der empfohlenen Modifier-Reihenfolge aus der Java Sprachdefinition ab.
|
||||
|
||||
|
||||
field.unused=Das Feld ''{0}'' wird nicht benutzt.
|
||||
|
||||
assignment.inner.avoid=Innere Zuweisungen sollten vermieden werden.
|
||||
illegal.regexp=Die Zeile entspricht dem verbotenen Muster ''{0}''.
|
||||
equals.noHashCode=Definition von ''equals()'' ohne korrespondierende Definition von ''hashCode()''.
|
||||
|
||||
hidden.field=''{0}'' verbirgt ein Feld.
|
||||
|
||||
translation.missingKey=Übersetzung für Schlüssel ''{0}'' fehlt.
|
||||
|
||||
simplify.expression=Der Ausdruck kann vereinfacht werden.
|
||||
simplify.boolreturn=Die Verzweigung sollte entfernt werden.
|
||||
|
||||
doublechecked.locking.avoid=Das ''double-checked locking'' Idiom sollte vermieden werden.
|
||||
|
||||
missing.switch.default=switch ohne \"default\".
|
||||
|
||||
empty.statement=Leere Anweisung.
|
||||
|
||||
magic.number=''{0}'' sollte durch eine Konstante definiert sein.
|
||||
|
||||
redundant.throws.classInfo=Klassen-Information für {0} nicht verfügbar.
|
||||
redundant.throws.subclass=Überflüssige throws Deklaration: ''{0}'' ist Unterklasse von ''{1}''.
|
||||
redundant.throws.duplicate=Überflüssige throws Deklaration: ''{0}'' ist mehrfach aufgeführt.
|
||||
redundant.throws.unchecked=Überflüssige throws Deklaration: ''{0}'' ist eine unchecked Exception (abgeleitet von RuntimeException).
|
||||
|
|
|
|||
|
|
@ -2,33 +2,18 @@ noNewlineAtEOF=File does not end with a newline.
|
|||
|
||||
redundantModifier=Tarpeeton määrite: ''{0}''
|
||||
|
||||
name.invalidPattern=Nimen ''{0}'' pitää olla mallin ''{1}'' mukainen.
|
||||
|
||||
variable.missingJavadoc=Muuttujan ''{0}'' Javadoc puuttuu.
|
||||
|
||||
todo.match=Kommentti on to-do formaatin ''{0}'' mukainen.
|
||||
|
||||
instantiation.avoid=Älä instantioi {0}:a.
|
||||
|
||||
upperEll=Pitää olla iso ''L''.
|
||||
|
||||
header.missing=Headeri puuttuu - ei riittävästi rivejä tiedostossa.
|
||||
header.mismatch=Rivi ei ole odotetun ''{0}'' headerin mukainen.
|
||||
|
||||
regexp.parseError=Unable to parse regular expression ''{0}''.
|
||||
|
||||
mod.order=''{0}'' määrite rikkoo JLS:n suositusten mukaisesen järjestyksen.
|
||||
|
||||
|
||||
field.unused=''{0}'' on käyttämätön muuttuja.
|
||||
|
||||
assignment.inner.avoid=Älä käytä sisäkkäisiä sijoituksia.
|
||||
illegal.regexp=Rivi on sääntöjenvaistaisen mallin mukainen: ''{0}''.
|
||||
equals.noHashCode=''equals()'' määritelty ilman vastaavaa ''hashCode()''-määrittelyä.
|
||||
|
||||
hidden.field=''{0}'' piilottaa muuttujan.
|
||||
|
||||
translation.missingKey=Käännösavain ''{0}'' puuttuu.
|
||||
|
||||
simplify.expression=Ilmaisua voisi yksinkertaistaa.
|
||||
simplify.boolreturn=Konditionaalilogiikan voisi poistaa.
|
||||
|
|
|
|||
|
|
@ -2,34 +2,19 @@ noNewlineAtEOF=File does not end with a newline.
|
|||
|
||||
redundantModifier=Modifieur ''{0}'' redondant.
|
||||
|
||||
name.invalidPattern=Le nom ''{0}'' ne respecte pas la règle ''{1}''.
|
||||
|
||||
variable.missingJavadoc=Il manque un commentaire javadoc pour la variable ''{0}''
|
||||
|
||||
todo.match=Le commentaire correspond au format des TODO ''{0}''.
|
||||
|
||||
instantiation.avoid=Evitez l''instanciation de la classe {0}.
|
||||
|
||||
upperEll=Utilisez un L majuscule pour les constantes de type long.
|
||||
|
||||
header.missing=En-tête manquant - Pas assez de lignes dans le fichier.
|
||||
header.mismatch=La ligne ne correspond pas à la ligne d''en-tête attendu ''{0}''.
|
||||
|
||||
regexp.parseError=Impossible d''analyser cette expression régulière ''{0}''.
|
||||
|
||||
mod.order=Le modifieur ''{0}'' n''est pas dans l''ordre suggéré par les JLS.
|
||||
|
||||
|
||||
|
||||
field.unused=''{0}'' est inutilisé.
|
||||
|
||||
assignment.inner.avoid=Eviter les assignements internes.
|
||||
illegal.regexp=La ligne correspond au motif illégal : ""{0}"".
|
||||
equals.noHashCode=Définition de la méthode ''equals()'' sans définition de méthode ''hashCode()"" correspondante.
|
||||
|
||||
hidden.field=''{0}'' cache un champ.
|
||||
|
||||
translation.missingKey=Clef ''{0}'' manquante.
|
||||
|
||||
simplify.expression=L'expression peut-être simplifiée.
|
||||
simplify.boolreturn=Supprimez la logique conditionnelle.
|
||||
|
|
|
|||
|
|
@ -2,47 +2,20 @@ noNewlineAtEOF=
|
|||
|
||||
redundantModifier=冗長な ''{0}'' 修飾子です。
|
||||
|
||||
name.invalidPattern=名前 ''{0}'' はパターン ''{1}'' に合致しなければなりません。
|
||||
|
||||
|
||||
variable.missingJavadoc=変数 ''{0}'' に Javadoc がありません。
|
||||
|
||||
todo.match=コメントが to-do の形式 ''{0}'' に合致しています。
|
||||
|
||||
instantiation.avoid={0} のインスタンス化は避けるべきです。
|
||||
|
||||
upperEll=大文字の ''L'' を使用すべきです。
|
||||
|
||||
header.missing=ヘッダがありません - ファイルの行数が不足しています。
|
||||
header.mismatch=行が期待されるヘッダ行 ''{0}'' と合致しません。
|
||||
|
||||
regexp.parseError=正規表現 ''{0}'' を解析できません。
|
||||
|
||||
mod.order=''{0}'' 修飾子が JLS 提案の順序に沿いません。
|
||||
|
||||
|
||||
field.unused=''{0}'' は使用されないフィールドです。
|
||||
|
||||
assignment.inner.avoid=式内部での代入は避けるべきです。
|
||||
illegal.regexp=行が不正なパターン ''{0}'' に合致します。
|
||||
equals.noHashCode=''equals()'' を定義していますが、これに対応する ''hashCode()'' の定義がありません。
|
||||
|
||||
hidden.field=''{0}'' がフィールドを隠しています。
|
||||
|
||||
translation.missingKey=キー ''{0}'' がありません。
|
||||
|
||||
simplify.expression=表現は簡潔にできます。
|
||||
simplify.boolreturn=条件ロジックはなくせます。
|
||||
|
||||
doublechecked.locking.avoid=double-checked locking イディオムは不十分なものであり、避けるべきです。
|
||||
|
||||
missing.switch.default=\"default\" 節の無い switch 文です。
|
||||
|
||||
empty.statement=空の文です。
|
||||
|
||||
magic.number=''{0}'' はマジックナンバーです。
|
||||
|
||||
redundant.throws.classInfo={0} のクラス情報が取得できません。
|
||||
redundant.throws.subclass=冗長な throws: ''{0}'' は ''{1}'' のサブクラスです。
|
||||
redundant.throws.duplicate=冗長な throws: ''{0}'' が重複しています。
|
||||
redundant.throws.unchecked=冗長な throws: ''{0}'' はチェックされない例外です。
|
||||
|
|
|
|||
|
|
@ -2,47 +2,20 @@ noNewlineAtEOF=File does not end with a newline.
|
|||
|
||||
redundantModifier=Modificador ''{0}'' é redundante.
|
||||
|
||||
name.invalidPattern=Nome ''{0}'' deve condizer com o padrão ''{1}''.
|
||||
|
||||
|
||||
variable.missingJavadoc=Falta o Javadoc da variável ''{0}''.
|
||||
|
||||
todo.match=O comentário condiz com o padrão de tarefa pendente ''{0}''.
|
||||
|
||||
instantiation.avoid=A instanciação de {0} deve ser evitada.
|
||||
|
||||
upperEll=Deve ser utilizado um ''L'' maiúsculo.
|
||||
|
||||
header.missing=Falta o cabeçalho - o ficheiro não tem linhas suficientes.
|
||||
header.mismatch=A linha não condiz com a linha de cabeçalho esperada ''{0}''.
|
||||
|
||||
regexp.parseError=Não foi possível processar a expressão regular ''{0}''.
|
||||
|
||||
mod.order=Modificador ''{0}'' fora da orderm sugerida pela JLS.
|
||||
|
||||
|
||||
field.unused=''{0}'' é um campo não utilizado.
|
||||
|
||||
assignment.inner.avoid=As atribuições internas devem ser evitadas.
|
||||
illegal.regexp=A linha condiz com o padrão inválido ''{0}''.
|
||||
equals.noHashCode=Definição de ''equals()'' sem a definição de ''hashCode()''.
|
||||
|
||||
hidden.field=''{0}'' esconde um campo.
|
||||
|
||||
translation.missingKey=Falta a chave ''{0}''.
|
||||
|
||||
simplify.expression=Expressão pode ser simplicada.
|
||||
simplify.boolreturn=A lógica condicional deve ser removida.
|
||||
|
||||
doublechecked.locking.avoid=O método de sincronização com verificação dupla não funciona e deve ser evitado.
|
||||
|
||||
missing.switch.default=switch sem o ramo \"default\".
|
||||
|
||||
empty.statement=Declaração vazia.
|
||||
|
||||
magic.number=''{0}'' é um número mágico.
|
||||
|
||||
redundant.throws.classInfo=Não foi possível obter os dados da classe {0}.
|
||||
redundant.throws.subclass=throws redundante: ''{0}'' é uma sub-classe de ''{1}''.
|
||||
redundant.throws.duplicate=throws redundante: ''{0}'' listado mais do que uma vez.
|
||||
redundant.throws.unchecked=throws redundante: ''{0}'' é um excepção não-verificada.
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
<package name="com.puppycrawl.tools.checkstyle">
|
||||
<package name="checks">
|
||||
<package name="blocks"/>
|
||||
<package name="coding"/>
|
||||
<package name="design"/>
|
||||
<package name="imports"/>
|
||||
<package name="indentation"/>
|
||||
|
|
|
|||
|
|
@ -2,27 +2,14 @@ package com.puppycrawl.tools.checkstyle;
|
|||
|
||||
import com.puppycrawl.tools.checkstyle.api.AbstractViolationReporterTest;
|
||||
import com.puppycrawl.tools.checkstyle.api.DetailASTTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.ArrayTrailingCommaCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.ArrayTypeStyleCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.AvoidInlineConditionalsCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.DoubleCheckedLockingCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.EmptyStatementCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.EqualsHashCodeCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.FileSetCheckLifecycleTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.FinalParametersCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.GenericIllegalRegexpCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.HeaderCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.HiddenFieldCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.IllegalInstantiationCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.InnerAssignmentCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.MagicNumberCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.MissingSwitchDefaultCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.ModifierOrderCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.RedundantModifierTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.RedundantThrowsCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.SimplifyBooleanExpressionCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.SimplifyBooleanReturnCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.TodoCommentCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.TranslationCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.UncommentedMainCheckTest;
|
||||
|
|
@ -32,6 +19,19 @@ import com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheckTest;
|
|||
import com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.ArrayTrailingCommaCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.AvoidInlineConditionalsCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.EmptyStatementCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.IllegalInstantiationCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.MissingSwitchDefaultCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheckTest;
|
||||
import com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheckTest;
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ public class PackageNamesLoaderTest extends TestCase
|
|||
"com.puppycrawl.tools.checkstyle.",
|
||||
"com.puppycrawl.tools.checkstyle.checks.",
|
||||
"com.puppycrawl.tools.checkstyle.checks.blocks.",
|
||||
"com.puppycrawl.tools.checkstyle.checks.coding.",
|
||||
"com.puppycrawl.tools.checkstyle.checks.design.",
|
||||
"com.puppycrawl.tools.checkstyle.checks.imports.",
|
||||
"com.puppycrawl.tools.checkstyle.checks.indentation.",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks;
|
||||
package com.puppycrawl.tools.checkstyle.checks.coding;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
|
||||
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
|
||||
Loading…
Reference in New Issue