All Projects → nette → Code Checker

nette / Code Checker

Licence: other
✅ A simple tool to check source code against a set of Nette coding standards.

Projects that are alternatives of or similar to Code Checker

Forbidden Apis
Policeman's Forbidden API Checker
Stars: ✭ 216 (+184.21%)
Mutual labels:  code-analysis, checker
node-lintspaces
A validator for checking different kinds of whitespaces in your files.
Stars: ✭ 31 (-59.21%)
Mutual labels:  checker, code-analysis
Types Checker
Check missing type definition modules for your Typescript project
Stars: ✭ 18 (-76.32%)
Mutual labels:  tool, checker
Minecraft Armorstand
This tool generates a summon command, to summon an armorstand in a desired pose.
Stars: ✭ 65 (-14.47%)
Mutual labels:  tool
Revokemsgpatcher
A hex editor for WeChat/QQ/TIM - PC版微信/QQ/TIM防撤回补丁(我已经看到了,撤回也没用了)
Stars: ✭ 12,482 (+16323.68%)
Mutual labels:  tool
Enhanced Syntax Highlighting
[Marketplace] Lightweight "editor classifier extension" for Visual Studio based on the async Roslyn APIs to enhanced highlighting custom tags in C# code.
Stars: ✭ 69 (-9.21%)
Mutual labels:  code-analysis
Appimage Builder
Recipe based AppImage creation tool
Stars: ✭ 76 (+0%)
Mutual labels:  tool
Datawrapper
An open source data visualization platform helping everyone to create simple, correct and embeddable charts in minutes.
Stars: ✭ 1,133 (+1390.79%)
Mutual labels:  tool
Radon
Various code metrics for Python code
Stars: ✭ 1,193 (+1469.74%)
Mutual labels:  code-analysis
Gopay
💰 Integrace Gopay pro Nette Framework
Stars: ✭ 68 (-10.53%)
Mutual labels:  nette
Andes
Python toolbox / library for power system transient dynamics simulation with symbolic modeling and numerical analysis 🔥
Stars: ✭ 68 (-10.53%)
Mutual labels:  tool
Docnado
Rapid documentation tool that will blow you away...
Stars: ✭ 67 (-11.84%)
Mutual labels:  tool
Imgursniper
📷 A quick and easy Image, Screenshot and Screen recording sharing tool
Stars: ✭ 69 (-9.21%)
Mutual labels:  tool
Atlasc
Builds atlas texture from a bunch of input images.
Stars: ✭ 66 (-13.16%)
Mutual labels:  tool
Deployer
A deployment tool written in PHP with support for popular frameworks out of the box
Stars: ✭ 8,928 (+11647.37%)
Mutual labels:  tool
Neutron
Neutron is a CLI developed to help developers create new react projects with Redux + Redux Saga and offers well-structured code standardization.
Stars: ✭ 65 (-14.47%)
Mutual labels:  tool
Flutter device preview
Approximate how your app looks and performs on another device.
Stars: ✭ 1,191 (+1467.11%)
Mutual labels:  tool
Cloud Security Audit
A command line security audit tool for Amazon Web Services
Stars: ✭ 68 (-10.53%)
Mutual labels:  tool
Animockup
Create animated mockups in the browser 🔥
Stars: ✭ 1,152 (+1415.79%)
Mutual labels:  tool
Utils
🛠 Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
Stars: ✭ 1,158 (+1423.68%)
Mutual labels:  nette

Code Checker

Downloads this Month Build Status Latest Stable Version License

Introduction

The tool called that checks and possibly repairs some of the formal errors in your source code.

Documentation can be found on the website. If you like it, please make a donation now. Thank you!

Usage

Usage: php code-checker [options]

Options:
    -d <path>             Folder or file to scan (default: current directory)
    -i | --ignore <mask>  Files to ignore
    -f | --fix            Fixes files
    -l | --eol            Convert newline characters
    --no-progress         Do not show progress dots
    --strict-types        Checks whether PHP 7.0 directive strict_types is enabled

Without parameters, it checks the current working directory in a read-only mode, with -f parameter it fixes files.

Before you get to know the tool, be sure to backup your files first.

You can create a batch file, e.g. code.bat, for easier execution of Code-Checker under Windows:

php path_to\Nette_tools\Code-Checker\code-checker %*

What Code-Checker Does?

  • removes BOM
  • checks validity of Latte templates
  • checks validity of .neon, .php and .json files
  • checks for control characters
  • checks whether the file is encoded in UTF-8
  • controls misspelled /* @annotations */ (second asterisk missing)
  • removes PHP ending tags ?> in PHP files
  • removes trailing whitespace and unnecessary blank lines from the end of a file
  • normalizes line endings to system-default (with the -l parameter)

Installation

Install it via Composer. This project is not meant to be run as a dependency, so install it as standalone:

composer create-project nette/code-checker

Or install it globally via:

composer global require nette/code-checker

and make sure your global vendor binaries directory is in your $PATH environment variable.

It requires PHP version 7.2 and supports PHP up to 7.4. (Version 2.x works with PHP 5.6.)

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