2017 © Pedro PelĆ”ez
 

library hexlet-psr-linter

image

sadovnik/hexlet-psr-linter

  • Thursday, March 23, 2017
  • by sadovnik
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PSR linter

Build Status Code Climate Test Coverage Issue Count, (*1)

hexlet-psr-linter screenshot, (*2)

This is a linter for PHP with aim to implement all possible PSR rules., (*3)

This project was originally started as part of Hexlet's traineeship, but actually developed a long time after. However the hexlet- prefix remains unchanged., (*4)

Thanks to Roman Lakhtadyr for review. šŸ™šŸ», (*5)

Installation

You can install the package globally:, (*6)

composer global require sadovnik/hexlet-psr-linter

or locally:, (*7)

composer require sadovnik/hexlet-psr-linter

If you're having trouble to run psr-linter after global install, make sure Composer's global binary dir is in the $PATH., (*8)

Usage

psr-linter [--fix] [--debug] <path>
psr-linter (-h | --help)
psr-linter --version

Example

psr-linter src/Symfony/Component/HttpKernel/Bundle/Bundle.php --fix

Roadmap

  • [x] Initiate boilerplate
  • [x] Function name rule
  • [x] Directory support
  • [ ] Variable name rule
  • [x] Ā«Either side-effects or definitionsĀ» rule
  • [x] Autofix using --fix flag
  • [ ] JSON/YML output
  • [ ] Make an interface for user rules
  • [ ] Make a useful explanation of rules here in readme
  • [ ] Make a friendly demo with cli usage
  • [ ] Website with online linter

The Versions