Rule to discourage the use of package globs

Project:Prolint Issue Tracker
Component:Rules
Category:feature request
Priority:minor
Assigned:jurjen
Status:closed
Description

I'd like to suggest a low priority rule to discourage the use of package globs. In other words:

USING package.ClassName

is recommended instead of:

USING package.*

The use of fully qualified class names, rather than package globs, seems to be a commonly preferred practice in other languages with similar language features.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jurjen's picture

omg, a USING statement ...

USING?? wtf, the person who wrote Prolint believed that no statement can appear before CLASS so it does not support USING at all. That must be fixed first, pronto.

Jurjen.


jurjen's picture

done

Prolint supports the USING statement now


jurjen's picture

#1

Assigned to:Anonymous» jurjen
Status:active» fixed

The rule is added. Its name is "usingpkg".

Important notice: if you download Prolint from the trunk in subversion, you must have Proparse 3.1a and must delete prolint/turbolint/turbolint.dll after download. Because turbolint.dll is not ready yet for the Object Oriented syntax, it needs a horrible lot of fixes.


#2

Status:fixed» closed