All Projects → malukenho → docheader

malukenho / docheader

Licence: MIT license
A small tool to check license headers

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to docheader

CheckStyle
在协同开发中让代码风格保持一致
Stars: ✭ 25 (-61.54%)
Mutual labels:  checker
akamai-toolkit
A set of tools to work on Akamai v1 anti-bot solution. Current supported version: 1.70
Stars: ✭ 215 (+230.77%)
Mutual labels:  checker
checkdotenv
Verify environment variables presence for Node JS.
Stars: ✭ 12 (-81.54%)
Mutual labels:  checker
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (-78.46%)
Mutual labels:  checker
nagios check
Ruby Nagios Check Integration
Stars: ✭ 13 (-80%)
Mutual labels:  checker
lorem.space
✨✨✨🪐✨✨✨  LOREM.SPACE ✨✨✨🪐✨✨✨
Stars: ✭ 310 (+376.92%)
Mutual labels:  placeholder
garn-validator
Create validations with ease
Stars: ✭ 42 (-35.38%)
Mutual labels:  checker
ProxyChecker
proxy checker to check the status of the ip-port proxy list
Stars: ✭ 24 (-63.08%)
Mutual labels:  checker
react-loading-placeholder
Loading placeholer, inspired by Facebook
Stars: ✭ 17 (-73.85%)
Mutual labels:  placeholder
DummyJSON
DummyJSON provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
Stars: ✭ 213 (+227.69%)
Mutual labels:  placeholder
link-check
checks whether a hyperlink is alive (`200 OK`) or dead.
Stars: ✭ 35 (-46.15%)
Mutual labels:  checker
codeigniter3-filename-checker
CodeIgniter3 Filename Checker
Stars: ✭ 21 (-67.69%)
Mutual labels:  checker
RCPickerButton
Simple button for marking some items as selected.
Stars: ✭ 17 (-73.85%)
Mutual labels:  checker
link-verifier
A tool for verifying links in text-based files
Stars: ✭ 26 (-60%)
Mutual labels:  checker
codeowners-validator
The GitHub CODEOWNERS file validator
Stars: ✭ 142 (+118.46%)
Mutual labels:  checker
Discord-Token-Checker
🔥Fastest Parallel Request Double-Check Discord Token Checker🔥 Parse discord tokens from any file and directory.
Stars: ✭ 36 (-44.62%)
Mutual labels:  checker
PwnChecker
Multi tool checker account validator 2020
Stars: ✭ 30 (-53.85%)
Mutual labels:  checker
cscanner
An open source, multi-cloud DevSecOps compliance checker
Stars: ✭ 19 (-70.77%)
Mutual labels:  checker
NSJTextField
A custom textfield with the placeholder displayed on top when text entered.
Stars: ✭ 30 (-53.85%)
Mutual labels:  placeholder
daily-check-in
一个打卡小程序 - 基于 leancloud 数据存储
Stars: ✭ 38 (-41.54%)
Mutual labels:  checker

DocHeader

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

How much time we have wasted to change copyright years in our project? How much times we forget to update it and then we're in the middle of a new year using last year copyright dated? That's sucks!!one!!

Put doc header check in your build and get it out of your way!

Installing

 composer require --dev --sort-packages malukenho/docheader

Setting up

Put your header in one .docheader file in the directory that you're running the checker/fixer. It file must contain only the dockblock as you want, like following example:

/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

and then run the checker:

./vendor/bin/docheader check src/

So, you get errors or a message saying that everything is ok!

Docheader file

By default, the docheader search for a .docheader file on the current directory that the command is executed. But you can specify a folder or a file to be used as placeholder using the option --docheader [file-or-path]

Current year placeholder

You can also put %year% on your .docheader file to refer to the current Year, like that:

/**
 * @copyright Copyright (c) 2005-%year% Zend Technologies USA Inc. (http://www.zend.com)
 */

Regexp assertion

If you're using >=0.1.5 version, you can use the %regexp:% placeholder to match some content.

Example:

/**
 * @copyright Copyright (c) 20%regexp:\d{2}%-2016 Zend Technologies USA Inc. (http://www.zend.com)
 */

In this case %regexp:\d{2}% assert that it should be a number of two digits between 20 and -.

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