phpstan / Phpstan Deprecation Rules
PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.
Stars: ✭ 160
Projects that are alternatives of or similar to Phpstan Deprecation Rules
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (-2.5%)
Mutual labels: static-analysis, static-code-analysis
Static Analysis
⚙️ A curated list of static analysis (SAST) tools for all programming languages, config files, build tools, and more.
Stars: ✭ 9,310 (+5718.75%)
Mutual labels: static-analysis, static-code-analysis
Sonar Java
☕️ SonarSource Static Analyzer for Java Code Quality and Security
Stars: ✭ 745 (+365.63%)
Mutual labels: static-analysis, static-code-analysis
Phpstan
PHP Static Analysis Tool - discover bugs in your code without running it!
Stars: ✭ 10,534 (+6483.75%)
Mutual labels: static-analysis, static-code-analysis
Sonarjs
SonarSource Static Analyzer for JavaScript and TypeScript
Stars: ✭ 696 (+335%)
Mutual labels: static-analysis, static-code-analysis
Flake8
The official GitHub mirror of https://gitlab.com/pycqa/flake8
Stars: ✭ 1,112 (+595%)
Mutual labels: static-analysis, static-code-analysis
Pep8speaks
A GitHub app to automatically review Python code style over Pull Requests
Stars: ✭ 546 (+241.25%)
Mutual labels: static-analysis, static-code-analysis
Unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 96 (-40%)
Mutual labels: static-analysis, static-code-analysis
Pest
🐞 Primitive Erlang Security Tool
Stars: ✭ 79 (-50.62%)
Mutual labels: static-analysis, static-code-analysis
Phan
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
Stars: ✭ 5,194 (+3146.25%)
Mutual labels: static-analysis, static-code-analysis
I18n Tasks
Manage translation and localization with static analysis, for Ruby i18n
Stars: ✭ 1,748 (+992.5%)
Mutual labels: static-analysis, static-code-analysis
Phpdoc Parser
Next-gen phpDoc parser with support for intersection types and generics
Stars: ✭ 569 (+255.63%)
Mutual labels: static-analysis, static-code-analysis
Checkstyle
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.
Stars: ✭ 6,481 (+3950.63%)
Mutual labels: static-analysis, static-code-analysis
Security Code Scan
Vulnerability Patterns Detector for C# and VB.NET
Stars: ✭ 550 (+243.75%)
Mutual labels: static-analysis, static-code-analysis
Cfmt
cfmt is a tool to wrap Go comments over a certain length to a new line.
Stars: ✭ 28 (-82.5%)
Mutual labels: static-analysis, static-code-analysis
Gosec
Golang security checker
Stars: ✭ 5,694 (+3458.75%)
Mutual labels: static-analysis, static-code-analysis
Sonar Dotnet
Code analyzer for C# and VB.NET projects https://redirect.sonarsource.com/plugins/vbnet.html
Stars: ✭ 466 (+191.25%)
Mutual labels: static-analysis, static-code-analysis
Phpinspectionsea
A Static Code Analyzer for PHP (a PhpStorm/Idea Plugin)
Stars: ✭ 1,211 (+656.88%)
Mutual labels: static-analysis, static-code-analysis
Abaplint
Standalone linter for ABAP
Stars: ✭ 111 (-30.62%)
Mutual labels: static-analysis, static-code-analysis
Rules for detecting usage of deprecated classes, methods, properties, constants and traits.
Installation
To use this extension, require it in Composer:
composer require --dev phpstan/phpstan-deprecation-rules
If you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer
, include rules.neon in your project's PHPStan config:
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
Deprecating code you don't own
This extension emits deprecation warnings on code, which uses properties/functions/methods/classes which are annotated as @deprecated
.
In case you don't own the code which you want to be considered deprecated, use PHPStan Stub Files to declare deprecations for vendor files like:
/** @deprecated */
class ThirdPartyClass {}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].