Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Introduce Swiftlint #572

Merged
merged 14 commits into from
May 12, 2023
16 changes: 16 additions & 0 deletions .github/workflows/swiftlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
pull_request:
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'

name: SwiftLint

jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: GitHub Action for SwiftLint
uses: norio-nomura/action-swiftlint@master
19 changes: 19 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
only_rules:
- line_length
- vertical_whitespace
- redundant_discardable_let
- unused_closure_parameter
- mark
- implicit_getter
- trailing_comma
- orphaned_doc_comment
- control_statement
- multiple_closures_with_trailing_closure
- opening_brace
- empty_enum_arguments
- for_where
- redundant_string_enum_value
- colon
- syntactic_sugar

line_length: 100