Open GoogleCodeExporter opened 8 years ago
[deleted comment]
If you got to this this issue through dzone, and you need more information
about this
project, check out the homepage...
http://architecturerules.googlecode.com/svn/docs/index.html
Original comment by mikenere...@gmail.com
on 10 Feb 2008 at 6:44
Some time ago I've started some development. My goals are:
- run the architecturerules without a "custom" unit test implementation in a
multiproject environment, see http://maven.apache.org/getting-started.html,
Multiple
Modules.
- use a single "parent" architecture-rules.xml for all modules to reduce
maintenance
efforts
And I'm not bothered with reports right now ;-)
Original comment by mykola.nickishov
on 11 Feb 2008 at 2:31
Original comment by mykola.nickishov
on 25 Feb 2008 at 12:43
Here is a first working version of the maven2 plugin. See sample project's
pom.xml
for how to configure it. I plan to implement automatic binding to the test
phase later.
Now plugin requires only a configuration file for architecture-rules. There is
no
need for a custom unit test.
Unfortunately plugin unable to find source code for affected classes and reports
'cycle.DoCycle: referenced classes not found'. It is a single obstacle on the
way.
If there are no objections I'll commit them both.
Original comment by mykola.nickishov
on 27 Feb 2008 at 7:45
Attachments:
http://code.google.com/p/architecturerules/source/detail?r=333
http://code.google.com/p/architecturerules/source/detail?r=332
Original comment by mykola.nickishov
on 27 Feb 2008 at 8:31
This is what I have as a prototype for the report so far...
== Summary ==
some sort of summary
== Rules ==
each rule listed out, rule id is the header
each package is listed with each violations listed below it,
and that violations status
== Cycles ==
dunno yet
-- Breakdown --
Rules Sample configuration:
<rule id="dao">
<comment>The dao interface package should rely on nothing.</comment>
<packages>
<package>com.seventytwomiles.pagerank.core.dao</package>
<package>com.seventytwomiles.pagerank.core.dao.hibernate</package>
</packages>
<violations>
<violation>com.seventytwomiles.pagerank.core.services</violation>
<violation>com.seventytwomiles.pagerank.core.builder</violation>
<violation>com.seventytwomiles.pagerank.util</violation>
</violations>
</rule>
Contains id=dao a comment, two packages, and three violations.
The resulting report would include a
header: 'dao'
paragraph: comment: The dao interface package should rely on nothing.
sub header: com.seventytwomiles.pagerank.core.dao
<table>
[OK] com.seventytwomiles.pagerank.core.services
[OK] com.seventytwomiles.pagerank.core.builder
[OK] com.seventytwomiles.pagerank.util
</table>
sub header: com.seventytwomiles.pagerank.core.dao.hibernate
<table>
[OK] com.seventytwomiles.pagerank.core.services
[ERR] com.seventytwomiles.pagerank.core.builder
xxx depends on yyy
[OK] com.seventytwomiles.pagerank.util
</table>
The result is the entire violations list is listed for each
package, with the status as a graphic.
Original comment by mikenere...@gmail.com
on 4 Mar 2008 at 12:22
Attachments:
Original comment by mikenere...@gmail.com
on 6 Sep 2008 at 3:23
Original comment by mikenere...@gmail.com
on 6 Sep 2008 at 3:35
Original comment by mikenere...@gmail.com
on 26 Jun 2009 at 3:45
Original comment by mykola.nickishov
on 31 Aug 2009 at 7:26
Original comment by mykola.nickishov
on 31 Aug 2009 at 7:28
Original comment by mykola.nickishov
on 3 Jan 2010 at 4:59
Original issue reported on code.google.com by
mikenere...@gmail.com
on 10 Feb 2008 at 2:56