Releases: umakantp/SmartyLint
Releases · umakantp/SmartyLint
Support PHP 8.1
Rules turned off and bug fixes
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
Minor bug fixed in File comment checker rule. There is no change in "How it works" since last release.
Disable rules or exclude file
Changes for this version.
- Progress shown while files are scanned is turned off by default.
Need pass short argument "-p" to see progress. - Can disable rule for all files.
- Can disable rule for selected files.
- Can exclude folders/files/patterns from the folder being scanned.
- Sample file sample.ignorerules.xml is available for points 2, 3 and 4
- You can pass ignore rules using long argument "--ignore-rules="
- Improve tokenizer to handle new line characters in a better way.
- Folder Tokenizers is renamed to Tokenizer because we have one tokenizer and which
pointed to remove 's' from the folder. - TODO and FIXME are also checked inside HTML Comments.
- Added this (CHANGE_LOG) file.
Minor version release for PHP backward compatibility
- Few files were not using old method to create array.
- One of the Exception class name was wrongly used.
Please prefer using this version over 0.1
v0.1 alpha
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).