A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1910 below:

[java] ATFD calculation problem · Issue #1910 · pmd/pmd · GitHub

Affects PMD Version:
6.16.0
and 53fbbb5

Rule:
GodClass

Description:
Some external properties are not calculated when code is structured in a certain way.

Example in: https://github.com/gulrich/HotDraw/blob/master/JHotDraw%20%5BJava%5D/src/org/jhotdraw/application/DrawApplication.java#L941

Code Sample demonstrating the issue:

// Counts as 2 external properties:
//  Possible God Class (WMC=130, ATFD=105, TCC=0.631%)
FileFilter tmp = openDialog.getFileFilter();
showStatus("Not a valid file format: " + tmp.getDescription());

// Counts no external properties:
// Possible God Class (WMC=130, ATFD=107, TCC=0.631%)
showStatus("Not a valid file format: " + openDialog.getFileFilter().getDescription());

For me, both code fragments should give the same ATFD

Running PMD through: *CLI *


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4