The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
### 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.
> **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 //
[email protected]` (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](https://github.com/Jeehut)
### Fixed
- New `--measure` option did not work when no violations were found, now also prints when all checks succeed.
Author: [Cihat Gündüz](https://github.com/Jeehut)
> **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 //
[email protected]` (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](https://github.com/Jeehut)
### Changed
- The execution time of all checks are now being measured, independent of what options are provided.
Author: [Cihat Gündüz](https://github.com/Jeehut)
### Added
- Allow `customCheck` closure to be throwing by re-throwing if they are.
Author: [Cihat Gündüz](https://github.com/Jeehut)
### Changed
- Default violation level was changed from `error` to `warning`.
Author: [Cihat Gündüz](https://github.com/Jeehut) | Issue: [#47](https://github.com/FlineDev/AnyLint/issues/47)
### 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`.
### 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.
### 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](https://github.com/Jeehut) | Issue: [#46](https://github.com/Flinesoft/AnyLint/issues/46)
### Changed
- Bumped minimum required Swift tools version to 5.4.
Author: [Cihat Gündüz](https://github.com/Jeehut)
- Removed `Package.resolved` file to prevent pinning dependency versions.
Author: [Cihat Gündüz](https://github.com/Jeehut)
### Changed
- Made internal extension methods public for usage in `customCheck`.
PR: [#35](https://github.com/Flinesoft/AnyLint/pull/35) | Author: [Cihat Gündüz](https://github.com/Jeehut)
- Print diff out to console for multiline autocorrections that were applied.
Issue: [#27](https://github.com/Flinesoft/AnyLint/issues/27) | PR: [#35](https://github.com/Flinesoft/AnyLint/pull/35) | Author: [Cihat Gündüz](https://github.com/Jeehut)