diff options
author | Jonah Graham | 2018-11-22 18:46:49 -0500 |
---|---|---|
committer | Jonah Graham | 2018-11-23 02:52:26 -0500 |
commit | ff75ae80fa44dfc925064f7ca0169ac80997bc77 (patch) | |
tree | 7db3666d26eeae703d9bc650d5d4540bc71406fb /codan/org.eclipse.cdt.codan.core | |
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 'codan/org.eclipse.cdt.codan.core')
-rw-r--r-- | codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/Messages.properties | 4 |
1 files changed, 2 insertions, 2 deletions
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} |