Skip to main content
Known Participant
Dec 11, 2009 9:11 AM UTC
Answered

ViewComponentReferencedInModel

Hi,

  I have the misfortune that my flex application base package is like "com.foo.frontendview". I didn't choose that package name and I cannot change it. Thus, every import I have in the model, for instance: "com.foo.frontendview.vo.PersonVO" shows a ViewComponentReferencedInModel violation.

  Can this rule be changed to a more accurate implementation? Instead of searching for the substring "view" in the whole import sentence (the full qualified class name), you could seach for the "view" substring only in the simple class name (removing the package).

Regards,

  Alex

This topic is closed to new replies. Start a new post to keep the conversation going.
Xavier AgnettiCorrect answer
Inspiring
Dec 14, 2009 6:43 AM UTC

It is fixed against trunk. You will find attached the latest ruleset.jar

Cheers,

Xavier

5 replies

Known Participant
Dec 12, 2009 9:42 PM UTC

+1

did you post a request, if so can you post link so i can vote

Translate
Known Participant
Dec 13, 2009 12:33 PM UTC

Here it is: https://bugs.adobe.com/jira/browse/FLEXPMD-122

Translate
Xavier AgnettiCorrect answer
Inspiring
Dec 14, 2009 6:43 AM UTC

It is fixed against trunk. You will find attached the latest ruleset.jar

Cheers,

Xavier

Translate
Inspiring
Dec 11, 2009 3:35 PM UTC

Can you post a enhancement request on JIRA, please?

Xavier

Translate