Skip to content

Releases: surenpoghosian/code-diagnose

Code Duplication Pattern

27 Aug 17:20
Compare
Choose a tag to compare
Pre-release

🚀 Release: v1.1.6 - Code Duplication Detection Improvements

This version provides improved Code Duplication pattern. Now it ignores common patterns, such as single braces and typical boilerplate code.

What's Changed

  • [code-duplication-pattern] add functionality which will ignore common patterns like } { ) }); by @surenpoghosian in #6

Full Changelog: dead-code...code-duplication

Dead Code Detection

24 Aug 21:20
d3882c0
Compare
Choose a tag to compare
Dead Code Detection Pre-release
Pre-release

🚀 Release: v1.1.5 - Dead Code Detection

Added functionality to identify unused variables in your TypeScript code.

What's Changed

Full Changelog: antipatterns_1.1...dead-code

Enhanced Antipattern Detection

23 Aug 17:59
8e20553
Compare
Choose a tag to compare
Pre-release

🚀 Release: v1.1.1 - Enhanced Antipattern Detection

New Patterns:

  • Shotgun Surgery: Flags when a single change affects multiple parts of the code.
  • Large Class: Detects classes with excessive methods and properties.
  • Lazy Class: Identifies classes with minimal functionality.
  • Long Parameter List: Flags functions with too many parameters.
  • Middle Man: Detects classes that only delegate functionality.
  • Primitive Obsession: Identifies excessive use of primitive types instead of more descriptive types.
  • Speculative Generality: Flags code that is overly general or abstract.
  • Switch Statement Overuse: Detects excessive or complex switch statements.

Key Updates:

  • Enhanced detection of common design issues.
  • Improved thresholds and criteria for better accuracy.

Integrate these checks to enhance code quality and maintainability.

What's Changed

Full Changelog: antipatterns_1.0...antipatterns_1.1

Enhanced Antipattern Detection

23 Aug 15:21
2ba1ab9
Compare
Choose a tag to compare
Pre-release

🚀 Release: v1.1.0 - Enhanced Antipattern Detection

We’re excited to announce the release of version 1.1.0, which brings significant enhancements to our antipattern detection capabilities. This update introduces support for detecting several common software antipatterns, making your codebase cleaner and more maintainable.

What’s New:

  • God Object Detection: Identify classes that have too many methods or properties, indicating they might be doing too much.
  • Shotgun Surgery Detection: Detect instances where a small change in one part of your code requires many changes in other parts, a classic sign of shotgun surgery.
  • Magic Numbers Detection: Find and flag unexplained numeric constants in your code, encouraging the use of named constants for better readability and maintainability.
  • Deep Nesting & Long Methods Detection: Using regex-based code smell detection, identify deeply nested blocks of code and overly long methods that could benefit from refactoring.
  • AST-Based Detection: Advanced God Object detection using Abstract Syntax Tree (AST) parsing for a more robust analysis of your TypeScript code.

This update is part of our ongoing effort to provide developers with powerful tools to identify and eliminate code smells and anti patterns, ensuring a healthier, more scalable codebase.

Get Started:
npm install code-diagnose@latest

Upgrade now and enjoy a more robust code analysis experience!

This release message highlights the key new features and improvements, providing clear information on what users can expect from the update.

What's Changed

New Contributors

Full Changelog: code-diagnose...antipatterns_1.0

1.0.1 MVP

22 Aug 20:51
Compare
Choose a tag to compare