Lint Markdown files in PRs (#5972)

This commit is contained in:
Danny Mösch
2025-01-19 14:21:51 +01:00
committed by GitHub
parent b52aea7752
commit b368c42f4f
4 changed files with 26 additions and 8 deletions
+13 -2
View File
@@ -6,11 +6,22 @@ on:
- '*'
jobs:
lint:
name: Lint Repository
lint-swift:
name: Lint Swift
runs-on: ubuntu-24.04 # "Noble Numbat"
container: swift:6.0-noble
steps:
- uses: actions/checkout@v4
- name: Lint
run: swift run swiftlint --reporter github-actions-logging --strict 2> /dev/null
lint-markdown:
name: Lint Markdown
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Lint
uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: |
CHANGELOG.md
CONTRIBUTING.md
+4
View File
@@ -0,0 +1,4 @@
MD013:
line_length: 120
MD024:
siblings_only: true
+6 -5
View File
@@ -83,7 +83,8 @@
[riley-williams](https://github.com/riley-williams)
[#5958](https://github.com/realm/SwiftLint/issues/5958)
* Add `ib_segue_action` to default configuration of `type_contents_order` rule on the same level as `ib_action` to define and document a standard position.
* Add `ib_segue_action` to default configuration of `type_contents_order` rule on the same level as `ib_action` to
define and document a standard position.
[SimplyDanny](https://github.com/SimplyDanny)
[#5524](https://github.com/realm/SwiftLint/issues/5524)
@@ -95,14 +96,16 @@
[SimplyDanny](https://github.com/SimplyDanny)
* The artifact bundle name has changed. `SwiftLintBinary-macos.artifactbundle.zip` is now called
`SwiftLintBinary.artifactbundle.zip`. It now includes an AMD64 Linux binary.
`SwiftLintBinary.artifactbundle.zip`. It now includes an AMD64 Linux binary.
[Bradley Mackey](https://github.com/bradleymackey)
[#5514](https://github.com/realm/SwiftLint/issues/5514)
* The `inert_defer` and `unused_capture_list` rules have completely been removed after being deprecated for 2 years.
[SimplyDanny](https://github.com/SimplyDanny)
* SwiftLint now requires a Swift 5.10 or higher compiler to build. [The Swift Package Manager plugins](https://github.com/SimplyDanny/SwiftLintPlugins) continue to work with Swift 5.9.
* SwiftLint now requires a Swift 5.10 or higher compiler to build.
[The Swift Package Manager plugins](https://github.com/SimplyDanny/SwiftLintPlugins) continue to work with
Swift 5.9.
[SimplyDanny](https://github.com/SimplyDanny)
* The `private_unit_test` rule's deprecated `regex` configuration option has been removed after 2 years.
@@ -8045,5 +8048,3 @@ This release has seen a phenomenal uptake in community contributions!
## 0.1.0: Fresh Out Of The Dryer
First Version!
<!-- markdownlint-configure-file { "MD024": { "siblings_only": true } } -->
+3 -1
View File
@@ -44,7 +44,9 @@ Then you can use the full power of Xcode/LLDB/Instruments to develop and debug y
1. `git clone https://github.com/realm/SwiftLint.git`
1. `cd SwiftLint`
1. `swift build [-c release]`
1. Use the produced `swiftlint` binary from the command line, either by running `swift run [-c release] [swiftlint] [arguments]` or by invoking the binary directly at `.build/[release|debug]/swiftlint`
1. Use the produced `swiftlint` binary from the command line, either by running
`swift run [-c release] [swiftlint] [arguments]` or by invoking the binary directly at
`.build/[release|debug]/swiftlint`.
1. For debugging, attach LLDB: `lldb -- .build/[release|debug]/swiftlint [arguments]`
### Code Generation