2017 © Pedro Peláez
 

library lattecs

Coding standard validator for Latte templates

image

mikulas/lattecs

Coding standard validator for Latte templates

  • Thursday, February 5, 2015
  • by Mikulas
  • Repository
  • 3 Watchers
  • 3 Stars
  • 278 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

LatteCS

Build Status, (*1)

Coding standard validator for Latte., (*2)

Usage

composer require --dev mikulas/lattecs
php vendor/bin/lattecs app/

Example config.neon for skipping certain rules:, (*3)

skip:
    - Mikulas.LatteCS.Rules.BlockAnnotation.TwoStars
php vendor/bin/lattecs --config config.neon app/



Current rule set ---------------- - each block definition must have `{** *}` doc comment with properly formatted `@param` annotations - blocks closed on the same line are not forced to have annotations (such as the title or scripts blocks) - forced block content indentation Example -------
➜ lattecs git:(master) ✗ php bin/lattecs tests/fixtures/ tests/fixtures/invalid_param.latte line 5: Invalid annotation '@param xoxo', expected '@param type $name' tests/fixtures/invalid_param_dollar.latte line 5: Invalid annotation '@param string basePath', variable name must start with '$' tests/fixtures/missing.latte line 3: Block #content is not properly annotated tests/fixtures/missing_params.latte line 5: Block #content is annotated, but no @param was specified. tests/fixtures/missing_star.latte line 5: Lattedoc does not start with two stars but it should

License

The MIT License (MIT), (*4)

Copyright (c) 2014 Mikulas Dite, (*5)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*6)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*7)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*8)

The Versions

05/02 2015

v0.3.1-RC

0.3.1.0-RC

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard

11/12 2014

dev-master

9999999-dev

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard

31/07 2014

v0.3.1

0.3.1.0

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard

07/07 2014

v0.3.0

0.3.0.0

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard

02/05 2014

v0.3.0-beta

0.3.0.0-beta

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard

02/05 2014

v0.2.0-beta

0.2.0.0-beta

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard

02/05 2014

v0.1.0-beta

0.1.0.0-beta

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard

02/05 2014

v0.1.0-alpha

0.1.0.0-alpha

Coding standard validator for Latte templates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikuláš Dítě

validator console nette latte checker tool cs coding standard