2 repository-uri
Identifies variables explicitly assigned to their default type values to remove unnecessary code.
Distinct from Initialization Pattern Detections: Focuses on redundant default value assignments rather than problematic memory-leak patterns like double-brace initialization.
Explore 2 awesome GitHub repositories matching programming languages & runtimes · Redundant Initialization Detection. Refine with filters or upvote what's useful.
Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best practices. It functions as a code quality auditor and Javadoc validation tool, checking source code against configurable rulesets to ensure structural and stylistic consistency. The project allows for the creation of custom linting rules by extending a core API to inspect the abstract syntax tree. It further enables specialized validation through the use of XPath expressions to query the syntax tree for specific code patterns and violations. Capability areas include the enforcement
Detects and flags members that are explicitly assigned to their default type values.
Larastan is a static analysis extension and type inference engine for PHP designed to detect bugs and type errors in Laravel applications. It extends PHPStan to resolve framework-specific patterns and magic methods, providing a rule-based scanning engine to audit code quality without executing the application. The tool specializes in Eloquent analysis, verifying that model properties, casts, and relationships align with database schemas and migrations. It tracks types across Eloquent collections, custom builders, and model factories to ensure type safety during database operations and iterati
Flags the use of static creation methods where a simple new instance is more efficient.