GithubHelp home page GithubHelp logo

luigimassa / header-stamp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prestashopcorp/header-stamp

0.0 0.0 0.0 127 KB

Rewrite your file headers to add a license or to make them up-to-date

JavaScript 0.82% PHP 90.75% CSS 0.80% Smarty 4.18% Twig 3.45%

header-stamp's Introduction

Header Stamp

PHP tests

Update the headers of the current folder. This tools extracts the command originally available in the PrestaShop Core.

Installation

This projet is downloadable via Composer, the PHP Package Manager. We recommend having it in the require-dev section of your dependancies as it is not needed on production environments.

composer require --dev prestashop/header-stamp

Usage

If installed via Composer, the application is available in its binaries folder

php vendor/bin/header-stamp

The default behavior is to apply the OSL license in every compatible file found in the current folder.

โš ๏ธ Header Stamp will scan and process all your compatible files, including node_modules or vendor if you do not specify the target. Use --exclude to avoid modifying dependency files.

php vendor/bin/header-stamp --exclude=vendor,node_modules

Available options:

--license=LICENSE        License file to apply [default: "assets/osl3.txt"]
--exclude=EXCLUDE        Comma-separated list of folders and files to exclude from the update [default: ""]
--extensions=EXTENSIONS  Comma-separated list of file extensions to update [default: "php,js,css,scss,tpl,html.twig,json,vue"]
--target=PATH            Folder to work in [default: Current directory]
--dry-run                Dry-run mode does not modify files
--display-report         Whether or not to display a report

Development

Install dependencies with composer. Two CI tools are configured for this project: php-cs-fixer and phpstan

composer install
php vendor/bin/php-cs-fixer fix --no-interaction --dry-run --diff
php phpstan analyse tests/phpstan/phpstan.neon

Before submitting changes to the projects, tests can be run with:

php tests/integration/runner/run.php

header-stamp's People

Contributors

matks avatar pierrerambaud avatar progi1984 avatar quetzacoalt91 avatar sebsept avatar zalexki avatar

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.