[
https://issues.jboss.org/browse/TEIID-3194?page=com.atlassian.jira.plugin...
]
Tom Arnold commented on TEIID-3194:
-----------------------------------
Added PR to configure the Maven checkstyle plugin to report on instances of tab characters
in source files. After the codebase is updated, this can be configured to fail the build
on new violations.
Something like this can be used to replace every tab with four spaces:
{code}
find . -name '*.java' -exec sed -i 's/\t/ /g' {} \;
{code}
Pre-commit you can do this to verify the effect of the sed command.
{code}
## -w ignores whitespace changes
git diff -w
{code}
Fix tab/spaces in codebase
--------------------------
Key: TEIID-3194
URL:
https://issues.jboss.org/browse/TEIID-3194
Project: Teiid
Issue Type: Task
Components: Build/Kits
Reporter: Tom Arnold
Assignee: Steven Hawkins
Priority: Minor
Tabs/spaces are mixed, causing readability issues in the code and some of the build
scripts. This is visible on GitHub. For example:
https://github.com/teiid/teiid/blob/master/pom.xml
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)