Skip to content

Releases: FlineDev/AnyLint

0.8.1

08 Jun 16:59
Compare
Choose a tag to compare

Changed

  • Made internal methods in types FilesSearch and Violation public for usage in customCheck.
    PR: #34 | Author: Cihat Gündüz

0.8.0

18 May 14:44
Compare
Choose a tag to compare

Added

  • Added new repeatIfAutoCorrected option to checkFileContents method to repeat the check if last run did any auto-corrections.
    Issue: #29 | PR: #31 | Author: Cihat Gündüz
  • Added new Regex Cheat Sheet section to README including a tip on how to workaround the pointer issue.
    Issue: #3 | PR: #32 | Author: Cihat Gündüz

0.7.0

17 May 23:51
Compare
Choose a tag to compare

Added

  • A new AnyLint custom check was added to ensure AnyLint fails when LinuxMain.swift isn't up-to-date, useful as a git pre-commit hook.
    Author: Cihat Gündüz | PR: #28

Changed

  • When a given autoCorrectReplacement on the checkFileContents method leads to no changes, the matched string of the given regex is considered to be already correct, thus no violation is reported anymore.
    Issue: #26 | PR: #28 | Author: Cihat Gündüz
  • A CI pipeline using GitHub Actions was setup, which is much faster as it runs multiple tasks in parallel than Bitrise.
    Author: Cihat Gündüz

0.6.3

07 May 13:53
Compare
Choose a tag to compare

Added

  • Summary output states how many files have been checked to make it easier to find include/exclude regexes.
    Author: Cihat Gündüz
  • Made Violation public for usage in customCheck methods.
    Author: Cihat Gündüz

Changed

  • Removed version specifier from lint.swift file to get always latest AnyLint library.
    Author: Cihat Gündüz

0.6.2

07 May 13:53
Compare
Choose a tag to compare

Fixed

  • Attempt to fix an issue that lead to failed builds with an error on Linux CI servers.
    Issue: #22 | Author: Cihat Gündüz

0.6.1

25 Apr 10:56
Compare
Choose a tag to compare

Changed

  • Hugely improved performance of subsequent file searches with the same combination of includeFilters and excludeFilters. For example, if 30 checks were sharing the same filters, each file search is now ~8x faster.
    Issue: #20 | PR: #21 | Author: Cihat Gündüz

0.6.0

23 Apr 11:43
Compare
Choose a tag to compare

Added

  • Added a way to specify Regex options for literal initialization via \i, \m (String) or #"\"#: "im" (Dictionary).
    PR: #18 | Author: Cihat Gündüz

0.5.0

22 Apr 14:09
Compare
Choose a tag to compare

Added

  • New -s / --strict option to fail on warnings as well (by default fails only on errors).
    PR: #15 | Author: Cihat Gündüz
  • New -l / --validate option to only run validations for matchingExamples, nonMatchingExamples and autoCorrectExamples.
    PR: #17 | Author: Cihat Gündüz

0.4.0

20 Apr 19:02
Compare
Choose a tag to compare

Added

  • New -d / --debug option to log more info about what AnyLint is doing. Required to add a checks completion block in logSummaryAndExit and moved it up in the blank template.
    PR: #13 | Author: Cihat Gündüz

0.3.0

17 Apr 15:20
Compare
Choose a tag to compare

Added

  • Made AutoCorrection expressible by Dictionary literals and updated the README.md accordingly.
    Issue: #5 | PR: #11 | Author: Cihat Gündüz
  • Added option to skip checks within file contents by specifying AnyLint.skipHere: <CheckInfo.ID> or AnyLint.skipInFile: <All or CheckInfo.ID>. Checkout the Skip file content checks README section for more info.
    Issue: #9 | PR: #12 | Author: Cihat Gündüz