Skip to main content
Known Participant
December 11, 2009
Answered

ViewComponentReferencedInModel

  • December 11, 2009
  • 2 replies
  • 708 views

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 has been closed for replies.
Correct answer Xavier Agnetti

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

Cheers,

Xavier

2 replies

Known Participant
December 12, 2009

+1

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

Known Participant
December 13, 2009

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

Xavier AgnettiCorrect answer
Adobe Employee
December 14, 2009

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

Cheers,

Xavier

Adobe Employee
December 11, 2009

Can you post a enhancement request on JIRA, please?

Xavier