[teiid-issues] [JBoss JIRA] (TEIID-3194) Fix tab/spaces in codebase

Tom Arnold (JIRA) issues at jboss.org
Sun Dec 14 18:15:30 EST 2014


    [ https://issues.jboss.org/browse/TEIID-3194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027533#comment-13027533 ] 

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)


More information about the teiid-issues mailing list