All Projects → mglaman → Drupal Check

mglaman / Drupal Check

Licence: gpl-2.0
Check Drupal code for deprecations and discover bugs via static analysis

Projects that are alternatives of or similar to Drupal Check

Phpstan Drupal
Extension for PHPStan to allow analysis of Drupal code.
Stars: ✭ 97 (-61.51%)
Mutual labels:  hacktoberfest, drupal
Composer Drupal Optimizations
Saves memory and CPU cycles when you run `composer update`
Stars: ✭ 144 (-42.86%)
Mutual labels:  hacktoberfest, drupal
Nginxconfig.io
⚙️ NGINX config generator on steroids 💉
Stars: ✭ 14,983 (+5845.63%)
Mutual labels:  hacktoberfest, drupal
Discoverdotnet
A web site that helps you discover awesome .NET open source and community resources
Stars: ✭ 252 (+0%)
Mutual labels:  hacktoberfest
Mapstore2
Modern webmapping with OpenLayers, Leaflet and React
Stars: ✭ 251 (-0.4%)
Mutual labels:  hacktoberfest
Windows
Development repository for Chef Cookbook windows
Stars: ✭ 251 (-0.4%)
Mutual labels:  hacktoberfest
Grid royale
A life simulation for exploring social dynamics
Stars: ✭ 252 (+0%)
Mutual labels:  hacktoberfest
Nancy
A tool to check for vulnerabilities in your Golang dependencies, powered by Sonatype OSS Index
Stars: ✭ 250 (-0.79%)
Mutual labels:  hacktoberfest
Deck
Management UI for Spinnaker
Stars: ✭ 251 (-0.4%)
Mutual labels:  hacktoberfest
Modelicastandardlibrary
Free (standard conforming) library from the Modelica Association to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
Stars: ✭ 250 (-0.79%)
Mutual labels:  hacktoberfest
Asciidoctor Intellij Plugin
AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
Stars: ✭ 250 (-0.79%)
Mutual labels:  hacktoberfest
Next Seo
Next SEO is a plug in that makes managing your SEO easier in Next.js projects.
Stars: ✭ 4,149 (+1546.43%)
Mutual labels:  hacktoberfest
Nytimes App
🗽 A Simple Demonstration of the New York Times App 📱 using Jsoup web crawler with MVVM Architecture 🔥
Stars: ✭ 246 (-2.38%)
Mutual labels:  hacktoberfest
Silsilah
A genealogy/family tree application, built with Laravel.
Stars: ✭ 246 (-2.38%)
Mutual labels:  hacktoberfest
Domainmod
DomainMOD is an open source application written in PHP & MySQL used to manage your domains and other internet assets in a central location. DomainMOD also includes a Data Warehouse framework that allows you to import your web server data so that you can view, export, and report on your live data.
Stars: ✭ 252 (+0%)
Mutual labels:  hacktoberfest
Gitmoji Changelog
A changelog generator for gitmoji 😜
Stars: ✭ 250 (-0.79%)
Mutual labels:  hacktoberfest
Blackbox Log Viewer
Interactive log viewer for flight logs recorded with blackbox
Stars: ✭ 252 (+0%)
Mutual labels:  hacktoberfest
Kube Prometheus
Use Prometheus to monitor Kubernetes and applications running on Kubernetes
Stars: ✭ 3,607 (+1331.35%)
Mutual labels:  hacktoberfest
Bootstrap
The missing components for your favorite front-end framework.
Stars: ✭ 2,700 (+971.43%)
Mutual labels:  hacktoberfest
Zencart
Zen Cart® is a full-function e-commerce application for your website.
Stars: ✭ 250 (-0.79%)
Mutual labels:  hacktoberfest

drupal-check Build CircleCI Latest release

Built on PHPStan, this static analysis tool will check for correctness (e.g. using a class that doesn't exist), deprecation errors, and more.

Why? While there are many static analysis tools out there, none of them run with the Drupal context in mind. This allows checking contrib modules for deprecation errors thrown by core.

Are you ready for Drupal 9? Check out our Drupal 9 Readiness instructions for details on how this tool can help.

Sponsors

undpaul Intracto

Would you like to sponsor?

Requirements

  • PHP >=7.2

Installation

You can install this in your project using Composer as a development dependency like so:

composer require mglaman/drupal-check --dev

You can also install this globally using Composer like so:

composer global require mglaman/drupal-check

Refer to Composer's documentation on how to ensure global binaries are in your PATH: https://getcomposer.org/doc/00-intro.md#manual-installation.

Usage

This tool works on all Drupal code, but must be executed within the root directory of a Drupal project..

1. cd into a Drupal Directory

You can run this tool within any Drupal project. But, for best results, create a fresh Drupal directory on the latest Drupal:

composer create-project drupal-composer/drupal-project:8.x-dev drupal --no-interaction --stability=dev
cd drupal

2. Run drupal-check

Usage:

drupal-check [OPTIONS] [DIRS]

Arguments:

  • OPTIONS - See "Options" for allowed values. Specify multiples in sequence, e.g. -ad.
  • DIRS - One or more directories within the root of a Drupal project.

Options:

  • -a Check analysis
  • -d Check deprecations (default)
  • -e Exclude directories. Wildcards work. Separate multiple excluded directories with commas, no spaces. e.g.: */tests/codeception/acceptance/*.php
  • --drupal-root Path to Drupal root. Fallback option if drupal-check could not identify Drupal root from the provided path(s).

Examples:

  • Check the address contrib module:

    drupal-check web/modules/contrib/address
    
  • Check the address contrib module for deprecations:

    drupal-check -d web/modules/contrib/address
    
  • Check the address contrib module for analysis:

    drupal-check -a web/modules/contrib/address
    
  • Check the address contrib module for both deprecations and analysis:

    drupal-check -ad web/modules/contrib/address
    

Drupal Check - VS Code Extension

You can run Drupal Check from VSCode using this extension: https://marketplace.visualstudio.com/items?itemName=bbeversdorf.drupal-check

The code can be found at: https://github.com/bbeversdorf/vscode-drupal-check

License

GPL v2

Roadmap

See what feature requests are most popular in the Issue queue: https://github.com/mglaman/drupal-check/issues.

Issues

Submit issues and feature requests here: https://github.com/mglaman/drupal-check/issues.

Known Issues

There are conflicts with dependencies shared with other libraries that might be installed on a Drupal project:

Contributing

See the CONTRIBUTING.md.

References

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].