sad
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sad [2014/01/22 12:17] – yann | sad [2025/01/15 21:40] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| ===== Anti-patterns Generation ===== | ===== Anti-patterns Generation ===== | ||
| + | |||
| + | The generation of code and design smell identification algorithms is straightforward. Class '' | ||
| ===== Anti-patterns Identification ===== | ===== Anti-patterns Identification ===== | ||
| + | Identifying code and design smells using PADL is made easy by the helper class '' | ||
| + | |||
| + | SAD requires [[POM]] to compute various metrics involved in the definitions of the code and design smells. These metrics are referenced by name in the rule cards, for example: | ||
| + | |||
| + | < | ||
| + | RULE_CARD : ComplexClass { | ||
| + | RULE : ComplexClass { UNION LargeClassOnly ComplexClassOnly } ; | ||
| + | RULE : LargeClassOnly { (METRIC: NMD + NAD, VERY_HIGH, 0) } ; | ||
| + | RULE : ComplexClassOnly { (METRIC: McCabe, VERY_HIGH, 20) } ; | ||
| + | }; | ||
| + | </ | ||
sad.1390393024.txt.gz · Last modified: (external edit)
