You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
disabled_rules: # rule identifiers to exclude from runningopt_in_rules: # some rules are only opt-in
- missing_docs# Find all the available rules by running:# swiftlint rulesexcluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Podsanalyzer_rules: # Rules run by `swiftlint analyze` (experimental)# configurable rules can be customized from this configuration file# binary rules can set their severity levelforce_cast: warning # implicitlyforce_try:
severity: warning # explicitly# rules that have both warning and error levels, can set just the warning level# implicitlymissing_docs:
error:
- publicwarning:
- internal
- privateline_length:
warning: 230error: 500ignores_comments: true# they can set both implicitly with an arraytype_body_length:
- 300# warning
- 400# error# or they can set both explicitlyfile_length:
warning: 500error: 1200# naming rules can set warnings/errors for min_length and max_length# additionally they can set excluded namestype_name:
min_length: 4# only warningmax_length: # warning and errorwarning: 40error: 50excluded: iPhone # excluded via stringallowed_symbols: ["_"] # these are allowed in type namesidentifier_name:
min_length: # only min_lengtherror: 4# only errorexcluded: # excluded via string array
- id
- vc
- URL
- GlobalAPIKey
- i
- db
- url
- row
- keyreporter: "xcode"# reporter type (xcode, json, csv, checkstyle, junit, html, emoji, sonarqube, markdown)
my GitHub action
name: SwiftLinton:
pull_request:
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'jobs:
SwiftLint:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLintuses: norio-nomura/[email protected]
- name: GitHub Action for SwiftLint with --strictuses: norio-nomura/[email protected]with:
args:
- name: GitHub Action for SwiftLint (Only files changed in the PR)uses: norio-nomura/[email protected]env:
DIFF_BASE: ${{ github.base_ref }}
The text was updated successfully, but these errors were encountered:
my .swiftlint.yml file:
my GitHub action
The text was updated successfully, but these errors were encountered: