Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 3610

Summary: DCR: java naming conventions checker (lint-like) (1GCSD20) [refactoring]
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P4 CC: gunnar, nikolaymetchev
Version: 2.0Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: Windows NT   
Whiteboard:

Description Erich Gamma CLA 2001-10-10 22:57:57 EDT
AK (4/26/01 12:37:15 PM)
	we have a checkbox in the refactoring preference page saying sth like: "i follow the java naming conventions"
	this could be quite easily checked automatically - now that the ast visitor is in place.
	could be done on cu scope and then trivially extended to package/project and multiple selection scopes


NOTES:

DB (27.04.2001 11:20:04)
	What do you means with this ? How can we check this for the whole workspace ?

AK (4/27/01 11:21:25 AM)
	it would check the following (for instance):
		.all type names start with uppercase
		.all field and variable names start with lowercase
		.package names do not have uppercase letters
	and other stuff that is on the java naming convention list.
	
	to check this you have to use the ast visitor. you visit one cu at a time reporting all unconventional names
	(as markers in the tasklist or in the similar fashion as the refactoring errors)
	checking a package means checking all files in it
	a project - all packages in it
	the workspace - all projects in it
	
	i imagine such a tool to be further customizeable by users (preference page).	
	could check other naming conventions and other elements of style etc. 
	(would have to search for list of common java bugs (and lint tools) on the web)

	however, a simple sun-naming-convention-checker could be very useful too.
	otherwise users (we, for example) have no chance to make sure they use only conventional names.

AK (4/27/01 11:31:39 AM)
	it would be available from the package viewer. you select a file, a package, a project or any combination of them, rightclick 
	and select sth like "check naming conventions" or "lint"

EG (4/28/2001 6:54:18 PM)
	checking styling conventions is a good future work item.
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:15:52 EDT
moved to 'active'
Comment 2 Erich Gamma CLA 2001-11-10 18:13:35 EST
defer
Comment 3 Dirk Baeumer CLA 2003-04-28 06:03:24 EDT
Chaning state from assigned later to resolved later. Assigned later got 
introduced by the last bug conversion and is not a supported Eclipse bug state.
Comment 4 Eclipse Webmaster CLA 2009-08-30 02:42:55 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.