Git Product home page Git Product logo

fhf's Introduction

File Header Filler (from git history)

Overview

For a code repository, this automatically adds file headers to PHP code files based on author and company information extracted from Git history. This tool streamlines the process of ensuring that each PHP code file contains the necessary header information for legal compliance and accountability purposes.

Note: Currently, File Header Filler only supports PHP files.

Installation

Currently, the only way to install fhf is to build it from source.

To install File Header Filler, you can use the following script:

cargo install --git https://github.com/bar9/fhf

Example Header

An example header added by File Header Filler looks like this:

/**
* @author Roland Brand / acme inc.
*
* @since 04/2024
*/

Example Usage

To utilize File Header Filler, you can use the following command-line syntax:

fhf --path . --extension php --suffix 'acme inc.' --ignore node_modules,vendor,.idea,bin

This command will search for PHP code files within the specified path (. denotes the current directory) and add the file header information with the suffix "acme inc." The tool will ignore specified directories such as node_modules, vendor, .idea, and bin.

Note: File Header Filler only adds headers to files that do not have a block comment at the start of the file.

Note: Always review and verify the changes made by File Header Filler to ensure compliance with your organization's policies and legal requirements.

fhf's People

Contributors

bar9 avatar

Stargazers

Richard Strnad avatar Özgür avatar

Watchers

 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.