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

A CLI tool for detecting code smells in Dart and 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
30
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool for detecting code smells in Dart and Flutter projects.

License

MIT (license)

Dependencies

analyzer, flutter

More

Packages that depend on smell_detek