smell_detek 0.0.2 copy "smell_detek: ^0.0.2" to clipboard
smell_detek: ^0.0.2 copied to clipboard

A static analysis tool for detecting Object Oriented code smells in Dart/Flutter projects.

My Static Analysis Tool #

Pub Version

A tool for detecting code smells and calculating code metrics in Dart and Flutter projects. This package helps you analyze your codebase to improve its quality by identifying potential issues like high cyclomatic complexity, low class cohesion, and more.

Features #

  • Weighted Method Count (WMC): Calculates the total cyclomatic complexity for all methods in a class.
  • Cyclomatic Complexity: Measures the complexity of individual methods.
  • Tight Class Cohesion (TCC): Analyzes the cohesion within a class based on method interactions with fields.
  • Access to Foreign Data (ATFD): Detects when a class accesses data from other classes excessively.
  • God Class Detection: Identifies classes that are doing too much, often a sign of poor design.

Installation #

Add this package as a dependency in your pubspec.yaml:

dependencies:
  my_static_analysis_tool: ^0.1.0
1
likes
0
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

A static analysis tool for detecting Object Oriented code smells in Dart/Flutter projects.

License

unknown (license)

Dependencies

analyzer, flutter

More

Packages that depend on smell_detek