Skip to content

Commit

Permalink
Merge branch 'release/0.8.5' into versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Apr 24, 2022
2 parents d8c2491 + d96d4b2 commit 1078228
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 47 deletions.
42 changes: 23 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Each entry should use the following format:

```markdown
- Summary of what was changed in a single line using past tense & followed by two whitespaces.
Issue: [#0](https://github.com/Flinesoft/AnyLint/issues/0) | PR: [#0](https://github.com/Flinesoft/AnyLint/pull/0) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#0](https://github.com/FlineDev/AnyLint/issues/0) | PR: [#0](https://github.com/FlineDev/AnyLint/pull/0) | Author: [Cihat Gündüz](https://github.com/Jeehut)
```

Note that at the end of the summary line, you need to add two whitespaces (` `) for correct rendering on GitHub.
Expand All @@ -31,10 +31,14 @@ If needed, pluralize to `Tasks`, `PRs` or `Authors` and list multiple entries se
### Security
- None.

## [0.8.5] - 2022-04-24
### 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] - 2022-04-01
### 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)
Author: [Cihat Gündüz](https://github.com/Jeehut) | Issue: [#46](https://github.com/FlineDev/AnyLint/issues/46)

## [0.8.3] - 2021-10-13
### Changed
Expand All @@ -46,29 +50,29 @@ If needed, pluralize to `Tasks`, `PRs` or `Authors` and list multiple entries se
## [0.8.2] - 2020-06-09
### Changed
- Made internal extension methos public for usage in `customCheck`.
PR: [#35](https://github.com/Flinesoft/AnyLint/pull/35) | Author: [Cihat Gündüz](https://github.com/Jeehut)
PR: [#35](https://github.com/FlineDev/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)
Issue: [#27](https://github.com/FlineDev/AnyLint/issues/27) | PR: [#35](https://github.com/FlineDev/AnyLint/pull/35) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.8.1] - 2020-06-08
### Changed
- Made internal methods in types `FilesSearch` and `Violation` public for usage in `customCheck`.
PR: [#34](https://github.com/Flinesoft/AnyLint/pull/34) | Author: [Cihat Gündüz](https://github.com/Jeehut)
PR: [#34](https://github.com/FlineDev/AnyLint/pull/34) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.8.0] - 2020-05-18
### Added
- Added new `repeatIfAutoCorrected` option to `checkFileContents` method to repeat the check if last run did any auto-corrections.
Issue: [#29](https://github.com/Flinesoft/AnyLint/issues/29) | PR: [#31](https://github.com/Flinesoft/AnyLint/pull/31) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#29](https://github.com/FlineDev/AnyLint/issues/29) | PR: [#31](https://github.com/FlineDev/AnyLint/pull/31) | Author: [Cihat Gündüz](https://github.com/Jeehut)
- Added new Regex Cheat Sheet section to README including a tip on how to workaround the pointer issue.
Issue: [#3](https://github.com/Flinesoft/AnyLint/issues/3) | PR: [#32](https://github.com/Flinesoft/AnyLint/pull/32) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#3](https://github.com/FlineDev/AnyLint/issues/3) | PR: [#32](https://github.com/FlineDev/AnyLint/pull/32) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.7.0] - 2020-05-18
### 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](https://github.com/Jeehut) | PR: [#28](https://github.com/Flinesoft/AnyLint/pull/28)
Author: [Cihat Gündüz](https://github.com/Jeehut) | PR: [#28](https://github.com/FlineDev/AnyLint/pull/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](https://github.com/Flinesoft/AnyLint/issues/26) | PR: [#28](https://github.com/Flinesoft/AnyLint/pull/28) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#26](https://github.com/FlineDev/AnyLint/issues/26) | PR: [#28](https://github.com/FlineDev/AnyLint/pull/28) | Author: [Cihat Gündüz](https://github.com/Jeehut)
- 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](https://github.com/Jeehut)

Expand All @@ -85,41 +89,41 @@ If needed, pluralize to `Tasks`, `PRs` or `Authors` and list multiple entries se
## [0.6.2] - 2020-04-30
### Fixed
- Attempt to fix an issue that lead to failed builds with an error on Linux CI servers.
Issue: [#22](https://github.com/Flinesoft/AnyLint/issues/22) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#22](https://github.com/FlineDev/AnyLint/issues/22) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.6.1] - 2020-04-25
### 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](https://github.com/Flinesoft/AnyLint/issues/20) | PR: [#21](https://github.com/Flinesoft/AnyLint/pull/21) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#20](https://github.com/FlineDev/AnyLint/issues/20) | PR: [#21](https://github.com/FlineDev/AnyLint/pull/21) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.6.0] - 2020-04-23
### Added
- Added a way to specify Regex options for literal initialization via `/i`, `/m` (String) or `#"\"#: "im"` (Dictionary).
PR: [#18](https://github.com/Flinesoft/AnyLint/pull/18) | Author: [Cihat Gündüz](https://github.com/Jeehut)
PR: [#18](https://github.com/FlineDev/AnyLint/pull/18) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.5.0] - 2020-04-22
### Added
- New `-s` / `--strict` option to fail on warnings as well (by default fails only on errors).
PR: [#15](https://github.com/Flinesoft/AnyLint/pull/15) | Author: [Cihat Gündüz](https://github.com/Jeehut)
PR: [#15](https://github.com/FlineDev/AnyLint/pull/15) | Author: [Cihat Gündüz](https://github.com/Jeehut)
- New `-l` / `--validate` option to only runs validations for `matchingExamples`, `nonMatchingExamples` and `autoCorrectExamples`.
PR: [#17](https://github.com/Flinesoft/AnyLint/pull/17) | Author: [Cihat Gündüz](https://github.com/Jeehut)
PR: [#17](https://github.com/FlineDev/AnyLint/pull/17) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.4.0] - 2020-04-20
### 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](https://github.com/Flinesoft/AnyLint/pull/13) | Author: [Cihat Gündüz](https://github.com/Jeehut)
PR: [#13](https://github.com/FlineDev/AnyLint/pull/13) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.3.0] - 2020-04-16
### Added
- Made `AutoCorrection` expressible by Dictionary literals and updated the `README.md` accordingly.
Issue: [#5](https://github.com/Flinesoft/AnyLint/issues/5) | PR: [#11](https://github.com/Flinesoft/AnyLint/pull/11) | Author: [Cihat Gündüz](https://github.com/Jeehut)
- 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](https://github.com/Flinesoft/AnyLint#skip-file-content-checks) README section for more info.
Issue: [#9](https://github.com/Flinesoft/AnyLint/issues/9) | PR: [#12](https://github.com/Flinesoft/AnyLint/pull/12) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#5](https://github.com/FlineDev/AnyLint/issues/5) | PR: [#11](https://github.com/FlineDev/AnyLint/pull/11) | Author: [Cihat Gündüz](https://github.com/Jeehut)
- 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](https://github.com/FlineDev/AnyLint#skip-file-content-checks) README section for more info.
Issue: [#9](https://github.com/FlineDev/AnyLint/issues/9) | PR: [#12](https://github.com/FlineDev/AnyLint/pull/12) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.2.0] - 2020-04-10
### Added
- Added new `-x` / `--xcode` option to print out warnings & errors in an Xcode-compatible manner to improve user experience when used with an Xcode build script. Requires `arguments: CommandLine.arguments` as parameters to `logSummary` in config file.
Issue: [#4](https://github.com/Flinesoft/AnyLint/issues/4) | PR: [#8](https://github.com/Flinesoft/AnyLint/pull/8) | Author: [Cihat Gündüz](https://github.com/Jeehut)
Issue: [#4](https://github.com/FlineDev/AnyLint/issues/4) | PR: [#8](https://github.com/FlineDev/AnyLint/pull/8) | Author: [Cihat Gündüz](https://github.com/Jeehut)

## [0.1.1] - 2020-03-23
### Added
Expand Down
6 changes: 3 additions & 3 deletions Formula/anylint.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Anylint < Formula
desc "Lint anything by combining the power of Swift & regular expressions"
homepage "https://github.com/Flinesoft/AnyLint"
url "https://github.com/Flinesoft/AnyLint.git", :tag => "0.8.3", :revision => "d8067087efc35b7c6b004e8046420b3358ce4993"
head "https://github.com/Flinesoft/AnyLint.git"
homepage "https://github.com/FlineDev/AnyLint"
url "https://github.com/FlineDev/AnyLint.git", :tag => "0.8.4", :revision => "d8c2491332c5256fd1be7668e760517d04e8c257"
head "https://github.com/FlineDev/AnyLint.git"

depends_on :xcode => ["12.5", :build]
depends_on "swift-sh"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Flinesoft (alias Cihat Gündüz)
Copyright (c) 2020 FlineDev (alias Cihat Gündüz)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<p align="center">
<img src="https://raw.githubusercontent.com/Flinesoft/AnyLint/main/Logo.png"
<img src="https://raw.githubusercontent.com/FlineDev/AnyLint/main/Logo.png"
width=562 />
</p>

<p align="center">
<a href="https://github.com/Flinesoft/AnyLint/actions?query=branch%3Amain">
<img src="https://github.com/Flinesoft/AnyLint/workflows/CI/badge.svg"
<a href="https://github.com/FlineDev/AnyLint/actions?query=branch%3Amain">
<img src="https://github.com/FlineDev/AnyLint/workflows/CI/badge.svg"
alt="CI">
</a>
<a href="https://www.codacy.com/gh/Flinesoft/AnyLint">
<a href="https://www.codacy.com/gh/FlineDev/AnyLint">
<img src="https://api.codacy.com/project/badge/Grade/c881ee12938145d3bfd398eff1571228"
alt="Code Quality"/>
</a>
<a href="https://www.codacy.com/gh/Flinesoft/AnyLint">
<a href="https://www.codacy.com/gh/FlineDev/AnyLint">
<img src="https://api.codacy.com/project/badge/Coverage/c881ee12938145d3bfd398eff1571228"
alt="Coverage"/>
</a>
<a href="https://github.com/Flinesoft/AnyLint/releases">
<img src="https://img.shields.io/badge/Version-0.8.4-blue.svg"
alt="Version: 0.8.4">
<a href="https://github.com/FlineDev/AnyLint/releases">
<img src="https://img.shields.io/badge/Version-0.8.5-blue.svg"
alt="Version: 0.8.5">
</a>
<a href="https://github.com/Flinesoft/AnyLint/blob/main/LICENSE">
<a href="https://github.com/FlineDev/AnyLint/blob/main/LICENSE">
<img src="https://img.shields.io/badge/License-MIT-lightgrey.svg"
alt="License: MIT">
</a>
Expand All @@ -45,7 +45,7 @@
• <a href="#configuration">Configuration</a>
• <a href="#xcode-build-script">Xcode Build Script</a>
• <a href="#donation">Donation</a>
• <a href="https://github.com/Flinesoft/AnyLint/issues">Issues</a>
• <a href="https://github.com/FlineDev/AnyLint/issues">Issues</a>
• <a href="#regex-cheat-sheet">Regex Cheat Sheet</a>
• <a href="#license">License</a>
</p>
Expand All @@ -61,7 +61,7 @@ Lint any project in any language using Swift and regular expressions. With built
To **install** AnyLint the first time, run these commands:

```bash
brew tap Flinesoft/AnyLint https://github.com/Flinesoft/AnyLint.git
brew tap FlineDev/AnyLint https://github.com/FlineDev/AnyLint.git
brew install anylint
```

Expand All @@ -76,7 +76,7 @@ brew upgrade anylint
To **install** AnyLint or **update** to the latest version, run this command:

```bash
mint install Flinesoft/AnyLint
mint install FlineDev/AnyLint
```

## Getting Started
Expand All @@ -91,7 +91,7 @@ This will create the Swift script file `lint.swift` with something like the foll

```swift
#!/opt/local/bin/swift-sh
import AnyLint // @Flinesoft
import AnyLint // @FlineDev

Lint.logSummaryAndExit(arguments: CommandLine.arguments) {
// MARK: - Variables
Expand Down Expand Up @@ -158,7 +158,7 @@ AnyLint provides three different kinds of lint checks:
2. `checkFilePaths`: Matches the file paths of the current directory to a given regex.
3. `customCheck`: Allows to write custom Swift code to do other kinds of checks.

Several examples of lint checks can be found in the [`lint.swift` file of this very project](https://github.com/Flinesoft/AnyLint/blob/main/lint.swift).
Several examples of lint checks can be found in the [`lint.swift` file of this very project](https://github.com/FlineDev/AnyLint/blob/main/lint.swift).

### Basic Types

Expand Down Expand Up @@ -394,13 +394,13 @@ AnyLint allows you to do any kind of lint checks (thus its name) as it gives you

Note that the `Violation` type just holds some additional information on the file, matched string, location in the file and applied autocorrection and that all these fields are optional. It is a simple struct used by the AnyLint reporter for more detailed output, no logic attached. The only required field is the `CheckInfo` object which caused the violation.

If you want to use regexes in your custom code, you can learn more about how you can match strings with a `Regex` object on [the HandySwift docs](https://github.com/Flinesoft/HandySwift#regex) (the project, the class was taken from) or read the [code documentation comments](https://github.com/Flinesoft/AnyLint/blob/main/Sources/Utility/Regex.swift).
If you want to use regexes in your custom code, you can learn more about how you can match strings with a `Regex` object on [the HandySwift docs](https://github.com/FlineDev/HandySwift#regex) (the project, the class was taken from) or read the [code documentation comments](https://github.com/FlineDev/AnyLint/blob/main/Sources/Utility/Regex.swift).

When using the `customCheck`, you might want to also include some Swift packages for [easier file handling](https://github.com/JohnSundell/Files) or [running shell commands](https://github.com/JohnSundell/ShellOut). You can do so by adding them at the top of the file like so:

```swift
#!/opt/local/bin/swift-sh
import AnyLint // @Flinesoft
import AnyLint // @FlineDev
import ShellOut // @JohnSundell

Lint.logSummaryAndExit(arguments: CommandLine.arguments) {
Expand Down Expand Up @@ -448,10 +448,12 @@ Lint.logSummaryAndExit(arguments: CommandLine.arguments) {
If you are using AnyLint for a project in Xcode, you can configure a build script to run it on each build. In order to do this select your target, choose the `Build Phases` tab and click the + button on the top left corner of that pane. Select `New Run Script Phase` and copy the following into the text box below the `Shell: /bin/sh` of your new run script phase:

```bash
export PATH="$PATH:/opt/homebrew/bin"

if which anylint > /dev/null; then
anylint -x
else
echo "warning: AnyLint not installed, download it from https://github.com/Flinesoft/AnyLint"
echo "warning: AnyLint not installed, see from https://github.com/FlineDev/AnyLint"
fi
```

Expand All @@ -463,7 +465,7 @@ Next, make sure the AnyLint script runs before the steps `Compiling Sources` by

Refer to the Regex quick reference on [rubular.com](https://rubular.com/) which all apply for Swift as well:
<p align="center">
<img src="https://raw.githubusercontent.com/Flinesoft/AnyLint/main/RubularQuickReference.png"
<img src="https://raw.githubusercontent.com/FlineDev/AnyLint/main/RubularQuickReference.png"
width=900 />
</p>

Expand All @@ -476,7 +478,7 @@ Here are some **advanced Regex features** you might want to use or learn more ab

1. Back references can be used within regexes to match previous capture groups.

For example, you can make sure that the PR number and link match in `PR: [#100](https://github.com/Flinesoft/AnyLint/pull/100)` by using a capture group (`(\d+)`) and a back reference (`\1`) like in: `\[#(\d+)\]\(https://[^)]+/pull/\1\)`.
For example, you can make sure that the PR number and link match in `PR: [#100](https://github.com/FlineDev/AnyLint/pull/100)` by using a capture group (`(\d+)`) and a back reference (`\1`) like in: `\[#(\d+)\]\(https://[^)]+/pull/\1\)`.

[Learn more](https://www.regular-expressions.info/backref.html)

Expand All @@ -490,11 +492,11 @@ Here are some **advanced Regex features** you might want to use or learn more ab

For example, consider a regex violating if there's an empty line after an opening curly brace like so: `{\n\s*\n\s*\S`. This would match the lines of `func do() {\n\n return 5}`, but what you actually want is it to start matching on the empty newline like so: `(?<={\n)\s*\n\s*\S`.

See also [#3](https://github.com/Flinesoft/AnyLint/issues/3)
See also [#3](https://github.com/FlineDev/AnyLint/issues/3)

## Donation

AnyLint was brought to you by [Cihat Gündüz](https://github.com/Jeehut) in his free time. If you want to thank me and support the development of this project, please **make a small donation on [PayPal](https://paypal.me/Dschee/5EUR)**. In case you also like my other [open source contributions](https://github.com/Flinesoft) and [articles](https://medium.com/@Jeehut), please consider motivating me by **becoming a sponsor on [GitHub](https://github.com/sponsors/Jeehut)** or a **patron on [Patreon](https://www.patreon.com/Jeehut)**.
AnyLint was brought to you by [Cihat Gündüz](https://github.com/Jeehut) in his free time. If you want to thank me and support the development of this project, please **make a small donation on [PayPal](https://paypal.me/Dschee/5EUR)**. In case you also like my other [open source contributions](https://github.com/FlineDev) and [articles](https://medium.com/@Jeehut), please consider motivating me by **becoming a sponsor on [GitHub](https://github.com/sponsors/Jeehut)** or a **patron on [Patreon](https://www.patreon.com/Jeehut)**.

Thank you very much for any donation, it really helps out a lot! 💯

Expand Down
3 changes: 3 additions & 0 deletions Sources/AnyLint/Statistics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ final class Statistics {
}

func logCheckSummary() {
// make sure first violation reports in a new line when e.g. 'swift-driver version: 1.45.2' is printed
print("")

if executedChecks.isEmpty {
log.message("No checks found to perform.", level: .warning)
} else if violationsBySeverity.values.contains(where: { $0.isFilled }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extension ConfigurationTemplate {
static var commonPrefix: String {
"""
#!\(CLIConstants.swiftShPath)
import AnyLint // @Flinesoft
import AnyLint // @FlineDev
try Lint.logSummaryAndExit(arguments: CommandLine.arguments) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Utility/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public var log = Logger(outputType: .console)
/// Constants to reference across the project.
public enum Constants {
/// The current tool version string. Conforms to SemVer 2.0.
public static let currentVersion: String = "0.8.4"
public static let currentVersion: String = "0.8.5"

/// The name of this tool.
public static let toolName: String = "AnyLint"
Expand Down
Loading

0 comments on commit 1078228

Please sign in to comment.