diff options
author | Jonah Graham | 2018-11-22 23:46:49 +0000 |
---|---|---|
committer | Jonah Graham | 2018-11-23 07:52:26 +0000 |
commit | ff75ae80fa44dfc925064f7ca0169ac80997bc77 (patch) | |
tree | 7db3666d26eeae703d9bc650d5d4540bc71406fb /core/org.eclipse.cdt.core/model/org/eclipse | |
parent | be35c7327d2a6168718afea45181a058a7d414fa (diff) | |
download | org.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 'core/org.eclipse.cdt.core/model/org/eclipse')
3 files changed, 13 insertions, 13 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/UtilMessages.properties b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/UtilMessages.properties index 662518b4717..3300a26b163 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/UtilMessages.properties +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/UtilMessages.properties @@ -14,7 +14,7 @@ KindBasedStore.0=illegal kind KindBasedStore.1=illegal kind PathEntryTranslator.0=illegal kind -PathEntryTranslator.1=illegal type +PathEntryTranslator.1=illegal type\u0020 PathEntryTranslator.2=PathEntryTranslator: failed to apply output entries: Build Data is null, ignoring.. CDataSerializer.20=no id attribute for configuration CDataSerializer.21=failed to create configuration diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CoreModelMessages.properties b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CoreModelMessages.properties index 5db93ccb2ff..5a955159b95 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CoreModelMessages.properties +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CoreModelMessages.properties @@ -73,9 +73,9 @@ PathEntryManager.1=Workspace include path inaccessible ({0}) PathEntryManager.7=Workspace library path inaccessible ({0}) CElementLabels.anonymous=(anonymous) -CElementLabels.concat_string=\ -\ -CElementLabels.comma_string=,\ -CElementLabels.declseparator_string=\ :\ +CElementLabels.concat_string=\ -\u0020 +CElementLabels.comma_string=,\u0020 +CElementLabels.declseparator_string=\ :\u0020 CModelManager.LanguageSettingsChangeEventNotifications=Language settings change notifications diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/SettingsModelMessages.properties b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/SettingsModelMessages.properties index 94af2276a74..ab95bd6e206 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/SettingsModelMessages.properties +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/SettingsModelMessages.properties @@ -15,9 +15,9 @@ CConfigurationDataProviderDescriptor.1=illegal provider implementation CConfigurationDataProviderDescriptor.2=no provider defined CConfigurationDescription.0=data was not created -CConfigurationDescription.1=expected proxy of type ICFileDescription, but was +CConfigurationDescription.1=expected proxy of type ICFileDescription, but was\u0020 CConfigurationDescription.2=data was not created -CConfigurationDescription.3=expected proxy of type ICFolderDescription, but was +CConfigurationDescription.3=expected proxy of type ICFolderDescription, but was\u0020 CConfigurationDescriptionCache.0=description is read only CConfigurationStatus.1=configurations settings invalid CProjectConverterDesciptor.0=illegal provider implementation @@ -34,20 +34,20 @@ CProjectDescriptionManager.9=invalid project file format CProjectDescriptionManager.0=Initiating resource change handling.. CProjectDescriptionManager.10=invalid project file format CProjectDescriptionManager.11=storage file not found -CProjectDescriptionManager.12=Serializing CDT Project settings.. +CProjectDescriptionManager.12=Serializing CDT Project settings..\u0020 CProjectDescriptionManager.13=Refreshing the project settings CProjectDescriptionManager.14=workspace info element does not exist CProjectDescriptionManager.15=Preference Configuration CProjectDescriptionManager.16=attempt to set description for a project which does not exist or not open -CProjectDescriptionManager.17=unable to apply the invalid project description for project +CProjectDescriptionManager.17=unable to apply the invalid project description for project\u0020 CProjectDescriptionManager.cfgIDAlreadyExists=Configuration with ID: {0} already exists in passed in settings storage -CProjectDescriptionManager.FailedToGetStorage=Failed to get storage for project: -CProjectDescriptionManager.illegalDeltaKind=Illegal delta kind -CProjectDescriptionManager.wrongTypeOfResourceDescription=Wrong type of resource description: +CProjectDescriptionManager.FailedToGetStorage=Failed to get storage for project:\u0020 +CProjectDescriptionManager.illegalDeltaKind=Illegal delta kind\u0020 +CProjectDescriptionManager.wrongTypeOfResourceDescription=Wrong type of resource description:\u0020 CFolderDescription.0=data was not created -CFolderDescription.1=expected proxy of type ICLanguageSetting, but was +CFolderDescription.1=expected proxy of type ICLanguageSetting, but was\u0020 CFolderDescription.2=data was not created -CFolderDescription.3=expected proxy of type ICLanguageSetting, but was +CFolderDescription.3=expected proxy of type ICLanguageSetting, but was\u0020 CExternalSettingsManager.3=writable ref info is requested for the read only config CfgExportSettingContainerFactory.2=invalid id: project name not specified ExtensionContainerFactory.4=invalid setting provider class specified |