From ebb5c70dca1d0ed25b7b73d3c1fa4108f9db30d7 Mon Sep 17 00:00:00 2001 From: Oliver Burn Date: Wed, 29 Sep 2010 10:10:30 +0000 Subject: [PATCH] Added the new line at end of file check to the mix --- build.xml | 2 +- checkstyle_checks.xml | 2 ++ .../com/puppycrawl/tools/checkstyle/api/AutomaticBean.java | 2 +- .../com/puppycrawl/tools/checkstyle/api/LineColumn.java | 2 +- .../tools/checkstyle/checks/DeclarationCollector.java | 2 +- .../tools/checkstyle/checks/design/messages_fr.properties | 2 +- .../tools/checkstyle/checks/duplicates/messages.properties | 2 +- .../tools/checkstyle/checks/duplicates/messages_de.properties | 2 +- .../tools/checkstyle/checks/imports/messages.properties | 2 +- .../puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java | 2 +- .../puppycrawl/tools/checkstyle/checks/messages.properties | 2 +- .../puppycrawl/tools/checkstyle/checks/messages_fr.properties | 2 +- .../tools/checkstyle/checks/modifier/messages_de.properties | 2 +- .../tools/checkstyle/checks/modifier/messages_fi.properties | 2 +- .../tools/checkstyle/checks/modifier/messages_fr.properties | 2 +- .../tools/checkstyle/checks/modifier/messages_pt.properties | 2 +- .../tools/checkstyle/checks/naming/messages.properties | 2 +- .../tools/checkstyle/checks/regexp/messages.properties | 4 ++-- .../tools/checkstyle/checks/whitespace/messages.properties | 2 +- .../puppycrawl/tools/checkstyle/grammars/package-info.java | 2 +- .../com/puppycrawl/tools/checkstyle/messages_pt.properties | 2 +- 21 files changed, 23 insertions(+), 21 deletions(-) diff --git a/build.xml b/build.xml index 3a190fc6b..7e38f7f0e 100644 --- a/build.xml +++ b/build.xml @@ -2,7 +2,7 @@ - + diff --git a/checkstyle_checks.xml b/checkstyle_checks.xml index 9af0c889b..7795b5435 100755 --- a/checkstyle_checks.xml +++ b/checkstyle_checks.xml @@ -36,6 +36,8 @@ + + diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java index a928a7efc..544f99fbd 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java @@ -377,4 +377,4 @@ public class AutomaticBean return retVal; } } -} \ No newline at end of file +} diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/LineColumn.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/LineColumn.java index 9f9c03c43..4263ec162 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/LineColumn.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/LineColumn.java @@ -66,4 +66,4 @@ public class LineColumn implements Comparable } } -} \ No newline at end of file +} diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java index 671e43752..355f01170 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java @@ -239,4 +239,4 @@ public abstract class DeclarationCollector extends Check return null; } } -} \ No newline at end of file +} diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/design/messages_fr.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/design/messages_fr.properties index f65b845e4..9bc471a63 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/design/messages_fr.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/design/messages_fr.properties @@ -6,4 +6,4 @@ mutable.exception=L''attribut ''{0}'' devrait throws.count=Le nombre de clause \"throws\" {0,number,integer}, alors que le maximum autorisé est de {1,number,integer}. throws.count=Le nombre de clause \"throws\" est de {0,number,integer}, alors que le maximum autorisé est de {1,number,integer}. -hide.utility.class=Les classes utilitaires ne doivent pas avoir de constructeur par défaut ou public. \ No newline at end of file +hide.utility.class=Les classes utilitaires ne doivent pas avoir de constructeur par défaut ou public. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages.properties index 1fbb4e210..8de48fb8d 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages.properties @@ -1 +1 @@ -duplicates.lines=Found duplicate of {0} lines in {1}, starting from line {2} \ No newline at end of file +duplicates.lines=Found duplicate of {0} lines in {1}, starting from line {2} diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages_de.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages_de.properties index c2b173589..fdbed123d 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages_de.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/messages_de.properties @@ -1 +1 @@ -duplicates.lines={0} gleiche Zeilen in {1}, beginnend bei Zeile {2} \ No newline at end of file +duplicates.lines={0} gleiche Zeilen in {1}, beginnend bei Zeile {2} diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties index 56fad1ac8..5d126e595 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties @@ -9,4 +9,4 @@ import.ordering=Wrong order for ''{0}'' import. import.separation=''{0}'' should be separated from previous imports. import.control.missing.file=Missing an import control file. import.control.disallowed=Disallowed import - {0}. -import.control.unknown.pkg=Import control file does not handle this package. \ No newline at end of file +import.control.unknown.pkg=Import control file does not handle this package. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java index b730f35c2..e84c56f4f 100755 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java @@ -312,4 +312,4 @@ class TagParser return mColumn; } } -} \ No newline at end of file +} diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties index aaad1c63a..aa73b8912 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties @@ -26,4 +26,4 @@ trailing.comments=Don''t use trailing comments. array.type.style=Array brackets at illegal position. -type.file.mismatch=The name of the outer type and the file do not match. \ No newline at end of file +type.file.mismatch=The name of the outer type and the file do not match. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties index 49fc810e6..d269eb3e3 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties @@ -19,4 +19,4 @@ descendant.token.max=Le nombre de lex final.parameter=Le paramètre {0} devrait être final. trailing.comments=Ne mélangez pas instructions Java et commentaires sur la même ligne. -array.type.style=Les crochets du tableau ne sont pas placés au bon endroit. \ No newline at end of file +array.type.style=Les crochets du tableau ne sont pas placés au bon endroit. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_de.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_de.properties index 722edeed1..b5f6bfa6d 100755 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_de.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_de.properties @@ -1,3 +1,3 @@ redundantModifier=Überflüssiger Modifier ''{0}''. annotation.order=''{0}'' Annotation-Modifier sollte vor den anderen Modifiern stehen. -mod.order=Modifier ''{0}'' weicht von der empfohlenen Modifier-Reihenfolge aus der Java-Sprachdefinition ab. \ No newline at end of file +mod.order=Modifier ''{0}'' weicht von der empfohlenen Modifier-Reihenfolge aus der Java-Sprachdefinition ab. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fi.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fi.properties index 724144824..ee96ba71a 100755 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fi.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fi.properties @@ -1,2 +1,2 @@ redundantModifier=Tarpeeton määrite: ''{0}'' -mod.order=''{0}'' määrite rikkoo JLS:n suositusten mukaisesen järjestyksen. \ No newline at end of file +mod.order=''{0}'' määrite rikkoo JLS:n suositusten mukaisesen järjestyksen. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fr.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fr.properties index 6cf4d23c2..cde32471f 100755 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fr.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_fr.properties @@ -2,4 +2,4 @@ redundantModifier=Mot-clef ''{0}'' redondant. annotation.order=Le modificateur d''annotation ''{0}'' ne précède pas les autres modificateurs. -mod.order=Le mot-clef ''{0}'' n''apparaît pas dans l''ordre préconisé par les JLS. \ No newline at end of file +mod.order=Le mot-clef ''{0}'' n''apparaît pas dans l''ordre préconisé par les JLS. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_pt.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_pt.properties index 774c02494..e71d529e6 100755 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_pt.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/modifier/messages_pt.properties @@ -1,4 +1,4 @@ redundantModifier=Modificador ''{0}'' é redundante. -mod.order=Modificador ''{0}'' fora da orderm sugerida pela JLS. \ No newline at end of file +mod.order=Modificador ''{0}'' fora da orderm sugerida pela JLS. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/naming/messages.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/naming/messages.properties index 3c4c30ac9..6aa061dc8 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/naming/messages.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/naming/messages.properties @@ -1,3 +1,3 @@ name.invalidPattern=Name ''{0}'' must match pattern ''{1}''. illegal.abstract.class.name=Name ''{0}'' must match pattern ''{1}''. -method.name.equals.class.name=Method Name ''{0}'' must not equal the enclosing class name. \ No newline at end of file +method.name.equals.class.name=Method Name ''{0}'' must not equal the enclosing class name. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/regexp/messages.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/regexp/messages.properties index 6ff0f9890..2003aa339 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/regexp/messages.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/regexp/messages.properties @@ -1,2 +1,2 @@ -regexp.exceeded=Line matches the illegal pattern ''{0}''. -regexp.minimum=File does not contain at least {0} matches for pattern ''{1}''. \ No newline at end of file +regexp.exceeded=Line matches the illegal pattern ''{0}''. +regexp.minimum=File does not contain at least {0} matches for pattern ''{1}''. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/whitespace/messages.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/whitespace/messages.properties index b83067b34..0b3e65839 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/whitespace/messages.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/whitespace/messages.properties @@ -10,4 +10,4 @@ ws.followed=''{0}'' is followed by whitespace. ws.notFollowed=''{0}'' is not followed by whitespace. ws.notPreceded=''{0}'' is not preceded with whitespace. ws.preceded=''{0}'' is preceded with whitespace. -ws.illegalFollow=''{0}'' is followed by an illegal character. \ No newline at end of file +ws.illegalFollow=''{0}'' is followed by an illegal character. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/grammars/package-info.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/grammars/package-info.java index 6e29f8dc8..ae090518d 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/grammars/package-info.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/grammars/package-info.java @@ -21,4 +21,4 @@ * Contains the grammar used by the Checkstyle framework. *

You should not be referring to this package. */ -package com.puppycrawl.tools.checkstyle.grammars; \ No newline at end of file +package com.puppycrawl.tools.checkstyle.grammars; diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/messages_pt.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/messages_pt.properties index a6fad2319..1913b42dc 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/messages_pt.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/messages_pt.properties @@ -6,4 +6,4 @@ general.exception=Foi recebida uma excepção - {0} # DefaultLogger.addException=Erro ao auditar {0} DefaultLogger.auditStarted=A iniciar a auditoria... -DefaultLogger.auditFinished=Auditoria completa. \ No newline at end of file +DefaultLogger.auditFinished=Auditoria completa.