Giter Site home page Giter Site logo

d7_analyzer's Introduction

How To Use

  1. Clone the D7 repo
git clone <url_to_d7_codebase.git>
  1. Add this to your D7 project composer.json file in the repositories section:
"dan612/d7_analyzer": {
    "type": "vcs",
    "url": "https://github.com/dan612/d7_analyzer.git"
}
  1. Require the package so it's included in vendor dir
composer require dan612/d7_analyzer
  1. Run the setup command
    4a. copies default default.lando.yml to ./
    4b. copies default.config.yml to ./
    4c. asks for variables for config.yml
    4d. runs lando start
./vendor/dan612/d7_analyzer/d7scan setup

d7_analyzer's People

Contributors

dan612 avatar

Watchers

 avatar

d7_analyzer's Issues

CKEditor5

Is Ckeditor 5 installed?
Does an internal dependency on Internet Explorer Dependency block this upgrade?

Use

drush rq and search for Deprecated modules enabled 

Create setup command

Create a command which sets things up:

  1. create config.yml
  2. create hidden folder (d7_analyzer) to store phpcs reports and custom_modules.yml
  3. Rewrite in-code references to these paths
  4. Adjust readme file

Increased complexity

Are there contrib modules that increase complexity such as rules or panels?
Check No stable Drupal 10 releases for other modules to check for

Need to provide a list of modules which add complexity - perhaps map this to a complexity multiplier which can be used to generate the general complexity recommendation/output

Create a way to detect if tokens are present

Tokens will need to be recreated (maybe we can help facilitate this)

Check for certain files and scan for functions which could introduce tokens, then at least report this data out.

Detect PHP errors & output

Detect the Number of PHP Errors using the following command (or similar):

phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 8.0 -d memory_limit=-1 --extensions=php --report=csv

Check for deprecated functions

composer require mglaman/drupal-check --dev

composer require --dev symfony/phpunit-bridge

php vendor/bin/drupal-check docroot/modules/custom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.