Skip to content

Releases: FlineDev/AnyLint

0.11.0

09 Apr 17:30
Compare
Choose a tag to compare

Added

  • Added a new --unvalidated (-u) option for running all checks without running the validations provided, such as testing for matchingExamples and nonMatchingExamples. Use with cuation.

Changed

  • Some internal code clean-up.
  • Upgrade to Swift 5.7 manifest syntax.

Fixed

  • The --measure option also measured validations & files search which distorted the measure time for the first check with the same files search. Now, it only measures the actual matching time of the Regex for better evaluation.

0.10.1

27 May 09:38
Compare
Choose a tag to compare

Update Notice: After upgrading AnyLint via brew upgrade anylint you should run swift-sh --clean-cache to ensure the AnyLint library in your script gets the latest update, too. Alternatively, specify the version explicitly in your lint.swift file via import AnyLint // FlineDev@0.10.1 (note the @0.10.1 suffix).

Changed

  • Improved output color & formatting of new --measure option for printing execution time per check.
    Author: Cihat Gündüz

Fixed

  • New --measure option did not work when no violations were found, now also prints when all checks succeed.
    Author: Cihat Gündüz

0.10.0

27 May 09:22
Compare
Choose a tag to compare

Update Notice: After upgrading AnyLint via brew upgrade anylint you should run swift-sh --clean-cache to ensure the AnyLint library in your script gets the latest update, too. Alternatively, specify the version explicitly in your lint.swift file via import AnyLint // FlineDev@0.10.1 (note the @0.10.1 which isn't added by default).

Added

  • New --measure / -m option to print execution times per check to find slow checks easily.
    Author: Cihat Gündüz

Changed

  • The execution time of all checks are now being measured, independent of what options are provided.
    Author: Cihat Gündüz

0.9.2

25 Apr 17:09
Compare
Choose a tag to compare

Added

  • Allow customCheck closure to be throwing by re-throwing if they are.
    Author: Cihat Gündüz

0.9.1

25 Apr 15:57
Compare
Choose a tag to compare

Changed

  • Default violation level was changed from error to warning.
    Author: Cihat Gündüz | Issue: #47

0.9.0

24 Apr 21:40
Compare
Choose a tag to compare

Added

  • Added new option violationLocation parameter for checkFileContents for specifying position of violation marker using .init(range:bound:), where range can be one of .fullMatch or .captureGroup(index:) and bound one of .lower or .upper.

0.8.5

24 Apr 18:29
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where first violation can't be shown in Xcode due to 'swift-driver version: 1.45.2' printed on same line.

0.8.4

01 Apr 11:46
Compare
Choose a tag to compare

Fixed

  • Fixed an issue with pointing to the wrong Swift-SH path on Apple Silicon Macs. Should also fix the path on Linux.
    Author: Cihat Gündüz | Issue: #46

0.8.3

13 Oct 07:01
Compare
Choose a tag to compare

Changed

  • Bumped minimum required Swift tools version to 5.4.
    Author: Cihat Gündüz
  • Removed Package.resolved file to prevent pinning dependency versions.
    Author: Cihat Gündüz

0.8.2

09 Jun 05:33
Compare
Choose a tag to compare

Changed

  • Made internal extension methods public for usage in customCheck.
    PR: #35 | Author: Cihat Gündüz
  • Print diff out to console for multiline autocorrections that were applied.
    Issue: #27 | PR: #35 | Author: Cihat Gündüz