We want to have a consistent codebase across all developers working on this repository. SwiftLint will help us to enforce general coding style and conventions on newly added code.
2. Description of change
Added swiftlint.yml with linting rules
Updated code to follow linting rules
Added linting job to CI workflow
3. Quality assurance
Runningswiftlint should not produce any warnings or errors.
GitHub should run the linting workflow on each PR into master. If rules are violated, the job should fail and related annotations should be added to indicate the issue:
1. Objective
We want to have a consistent codebase across all developers working on this repository. SwiftLint will help us to enforce general coding style and conventions on newly added code.
2. Description of change
swiftlint.yml
with linting rules3. Quality assurance
Running
swiftlint
should not produce any warnings or errors.GitHub should run the linting workflow on each PR into master. If rules are violated, the job should fail and related annotations should be added to indicate the issue:
Link to Example
4. Operations impact
N/A
5. Business impact
N/A
6. The priority of change
Normal