Export to GitHub

findbugs - issue #6

formatting of source code containing tabs is incorrect


Posted on Oct 23, 2006 by Massive Bird

What steps will reproduce the problem?

Run FindBugs GUI on the "mail" module of Project GlassFish (http://glassfish.dev.java.net). Select an error that cauases source code to be displayed.

What is the expected output? What do you see instead?

Formatting of source code containing tabs is incorrect. Tabs should be handled properly or expanded to 8-space tab stops before display. Prepending line numbers to each line should not effect effect formatting but should push all text to the right.

What version of the product are you using? On what operating system?

FindBugs 1.1.1, JDK 1.5.0_07, Solaris 10

Please provide any additional information below.

Comment #1

Posted on Dec 16, 2006 by Massive Cat

FindBugs assumes each tab is 4 spaces. Are you seeing this, or are you seeing tabs ignored?

Changes FindBugs to allow the tab spacing to be specified is on our todo list, but not for this release.

Comment #2

Posted on Jan 7, 2007 by Massive Bird

Tabs are not, and have never been, 4 spaces. You may indent by 4 spaces but tabs have always been 8 spaces. Please fix that to be the default, although because too many people don't understand that you're going to need the option as well.

Comment #3

Posted on Nov 23, 2011 by Quick Elephant

Thanks for the report, but please report this bug at sourceforge bug tracker again. This tracker is not used / monitored.

Status: Invalid

Labels:
Type-Defect Priority-Low