Skip to content

Releases: umakantp/SmartyLint

Support PHP 8.1

16 Apr 19:11
Compare
Choose a tag to compare

Added support for PHP 8.1
Some functional bug fixes

Rules turned off and bug fixes

11 Sep 07:55
Compare
Choose a tag to compare

Disabled rule which checkes for empty file after file comment and before content.
It was disabled because it would print carriage return unnecessary when not needed.

Bugs fixed:-
SmartyLint would print "no of files" processed even when showProgress was off.
CLI file was having its name in CAPS.
generate function in Report file was supposed to send total number of errors.

Minor bug fixes

10 Sep 05:22
Compare
Choose a tag to compare

Minor bug fixed in File comment checker rule. There is no change in "How it works" since last release.

Disable rules or exclude file

08 Sep 14:57
Compare
Choose a tag to compare

Changes for this version.

  1. Progress shown while files are scanned is turned off by default.
    Need pass short argument "-p" to see progress.
  2. Can disable rule for all files.
  3. Can disable rule for selected files.
  4. Can exclude folders/files/patterns from the folder being scanned.
  5. Sample file sample.ignorerules.xml is available for points 2, 3 and 4
  6. You can pass ignore rules using long argument "--ignore-rules="
  7. Improve tokenizer to handle new line characters in a better way.
  8. Folder Tokenizers is renamed to Tokenizer because we have one tokenizer and which
    pointed to remove 's' from the folder.
  9. TODO and FIXME are also checked inside HTML Comments.
  10. Added this (CHANGE_LOG) file.

Minor version release for PHP backward compatibility

05 Sep 11:46
Compare
Choose a tag to compare
  1. Few files were not using old method to create array.
  2. One of the Exception class name was wrongly used.

Please prefer using this version over 0.1

v0.1 alpha

04 Sep 16:23
Compare
Choose a tag to compare

This is first release of SmartyLint. SmartyLint still has lot many stuff in TODO. In this version we
have added few rules which can checked against Smarty templates. Rules are :-

  • Should have one empty line at the bottom.
  • Should not have more than 1 empty line at the bottom
  • You should write file doc comment at the top in Java Doc format which contains short file description and all the variables used.
  • File comment and content should have one blank line in between.
  • There should be no TODO's and FixMe's in the code.
  • Never use HTML comments. You should use Smarty comments {**} instead.
  • No whitespace / empty spaces at the end of each line.
  • Have max only 2 empty lines in the content (i.e. 3 new lines in a row).