Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorJonah Graham2018-11-22 23:46:49 +0000
committerJonah Graham2018-11-23 07:52:26 +0000
commitff75ae80fa44dfc925064f7ca0169ac80997bc77 (patch)
tree7db3666d26eeae703d9bc650d5d4540bc71406fb /codan
parentbe35c7327d2a6168718afea45181a058a7d414fa (diff)
downloadorg.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.tar.gz
org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.tar.xz
org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.zip
Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used: # Remove space at eol in comments find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} + # Remove space at eol in blank lines find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} + # Replace escaped spaces at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} + # Replace unescaped spaces at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} + # Replace escaped tabs at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} + # Replace unescaped tabs at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} + # Stage all changes git add -A . # trim any remaining whitespace and then identify and fixup # manually # Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties # needed this due to missing newline at end of the file find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} + Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties10
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/CheckersMessages.properties2
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/Messages.properties4
-rw-r--r--codan/org.eclipse.cdt.codan.ui/OSGI-INF/l10n/bundle.properties2
-rw-r--r--codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties2
5 files changed, 10 insertions, 10 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties b/codan/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties
index b3d0d0baf4..7d239bbf2b 100644
--- a/codan/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties
+++ b/codan/org.eclipse.cdt.codan.checkers/OSGI-INF/l10n/bundle.properties
@@ -49,7 +49,7 @@ problem.description.NoReturn = No return statement in a function which is declar
problem.messagePattern.NoReturn = No return, in function returning non-void
problem.name.NoReturn = No return
checker.name.FormatString = Format String
-problem.description.FormatString = Finds statements lead to format string vulnerability (e.g. 'char[5] str; scanf("%10s", str);'
+problem.description.FormatString = Finds statements lead to format string vulnerability (e.g. 'char[5] str; scanf("%10s", str);'\u0020
problem.messagePattern.FormatString = Format string vulnerability in ''{0}''
problem.name.FormatString = Format String Vulnerability
checker.name.AssignmentToItself = Assignment to itself
@@ -59,7 +59,7 @@ problem.description.AssignmentToItself = Finds expression where left and right s
checker.name.ReturnStyle = Return with parenthesis
problem.name.ReturnStyle = Return with parenthesis
problem.messagePattern.ReturnStyle = Return statement has invalid style. Return value should be surrounded by parenthesis
-problem.description.ReturnStyle = Checks for return statements that do no return the value in parenthesis. For example 'return 0;'
+problem.description.ReturnStyle = Checks for return statements that do no return the value in parenthesis. For example 'return 0;' \u0020
checker.name.SuspiciousSemicolon = Suspicious semicolon
problem.name.SuspiciousSemicolon = Suspicious semicolon
problem.messagePattern.SuspiciousSemicolon = Suspicious semicolon
@@ -112,12 +112,12 @@ problem.messagePattern.12 = Field ''{0}'' could not be resolved
problem.name.12 = Field cannot be resolved
checker.name.AbstractClassCreation = Abstract class cannot be instantiated
problem.name.AbstractClassCreation = Abstract class cannot be instantiated
-problem.messagePattern.AbstractClassCreation = The type ''{0}'' must implement the inherited pure virtual method ''{1}''
+problem.messagePattern.AbstractClassCreation = The type ''{0}'' must implement the inherited pure virtual method ''{1}''\u0020
problem.description.AbstractClassCreation = All inherited pure virtual methods must be implemented to allow instantiation of the class
checker.name.ClassMembersInitialization = Class members should be properly initialized
problem.name.ClassMembersInitialization = Class members should be properly initialized
-problem.messagePattern.ClassMembersInitialization = Member ''{0}'' was not initialized in this constructor
-problem.description.ClassMembersInitialization = Class members should be properly initialized to avoid random behavior
+problem.messagePattern.ClassMembersInitialization = Member ''{0}'' was not initialized in this constructor\u0020
+problem.description.ClassMembersInitialization = Class members should be properly initialized to avoid random behavior \u0020
checker.name.UnusedSymbolInFileScopeChecker = Unused symbols and declarations in file scope
problem.description.UnusedVariableDeclarationProblem = Finds unused global variable declarations in file scope
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/CheckersMessages.properties b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/CheckersMessages.properties
index 5915048bc3..56ecf256a6 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/CheckersMessages.properties
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/CheckersMessages.properties
@@ -11,7 +11,7 @@
# Contributors:
# Alena Laskavaia - initial API and implementation
###############################################################################
-CaseBreakChecker_DefaultNoBreakCommentDescription=Comment text to suppress the problem (or regular expression):
+CaseBreakChecker_DefaultNoBreakCommentDescription=Comment text to suppress the problem (or regular expression):\u0020
CaseBreakChecker_EmptyCaseDescription=Check also empty 'case' statement (except if last)
CaseBreakChecker_LastCaseDescription=Check also the last 'case' statement
CaseBreakChecker_EnableFallthroughQuickfixDescription=Enable quick fix to add fallthrough attribute (C++17)
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/Messages.properties b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/Messages.properties
index b0bca4d5da..00a178af08 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/Messages.properties
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/Messages.properties
@@ -14,10 +14,10 @@
# Sergey Prigogin (Google)
###############################################################################
CodanApplication_Error_ProjectDoesNotExists=Error: project {0} does not exist
-CodanApplication_LogRunProject=Running code analysis on project
+CodanApplication_LogRunProject=Running code analysis on project\u0020
CodanApplication_LogRunWorkspace=Running code analysis on workspace
CodanApplication_Usage=Usage: [options] <project1> <project2> ...
CodanApplication_Options=Options:
CodanApplication_all_option= -all - run on all projects in workspace
-CodanApplication_verbose_option= -verbose - print verbose build information
+CodanApplication_verbose_option= -verbose - print verbose build information\u0020
CodanRunner_Code_analysis_on=Code analysis on {0}
diff --git a/codan/org.eclipse.cdt.codan.ui/OSGI-INF/l10n/bundle.properties b/codan/org.eclipse.cdt.codan.ui/OSGI-INF/l10n/bundle.properties
index 8682765274..7bfda53290 100644
--- a/codan/org.eclipse.cdt.codan.ui/OSGI-INF/l10n/bundle.properties
+++ b/codan/org.eclipse.cdt.codan.ui/OSGI-INF/l10n/bundle.properties
@@ -16,7 +16,7 @@ Bundle-Vendor = Eclipse CDT
Bundle-Name = Code Analysis UI
CodeAnalysisAction.label = Run Code Analysis
CodeAnalysisProperties.name = Code Analysis
-CodeAnalysisPreferences.name = Code Analysis
+CodeAnalysisPreferences.name = Code Analysis\u0020
CodeAnalysisPreferencesBuild.name = Launching
category.name = Code Analysis
command.name = Run Code Analysis
diff --git a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties
index 6729669801..d8277787a9 100644
--- a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties
+++ b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanUIMessages.properties
@@ -45,7 +45,7 @@ ProblemsTreeEditor_ToolTip=Sample Message:
OverlayPage_Use_Workspace_Settings=Use &workspace settings
OverlayPage_Use_Project_Settings=Use pr&oject settings
OverlayPage_Configure_Workspace_Settings=&Configure Workspace Settings...
-PropertyStore_Cannot_write_resource_property=Cannot write resource property
+PropertyStore_Cannot_write_resource_property=Cannot write resource property\u0020
# ------- ExclusionInclusionDialog -------

Back to the top