mirror of
https://github.com/Instagram/IGListKit
synced 2026-04-21 13:37:19 +00:00
Summary: Danger is the build tool we've been using to proof-check incoming PRs, including making sure the incoming change is properly documented, and if needed, running SwiftLint on incoming Swift code. Danger was originally running in our Travis CI implementation, but it wasn't integrated when we switched to GitHub Actions. This diff updates our Danger dependencies to the latest versions, and integrates Danger into our CI system as a separate build step. I've also modified its SwiftLint setup so it will now lint Swift files in both our sample apps, and the Swift source files in `IGListSwiftKit` itself. Reviewed By: candance Differential Revision: D43265158 fbshipit-source-id: 8939b821af36b544fe4d66662b6ce0f99a8f768c
59 lines
823 B
YAML
59 lines
823 B
YAML
included:
|
|
- Examples
|
|
- Source/IGListSwiftKit
|
|
|
|
excluded:
|
|
- Pods
|
|
|
|
opt_in_rules:
|
|
- empty_count
|
|
- number_separator
|
|
- operator_usage_whitespace
|
|
- sorted_imports
|
|
- vertical_parameter_alignment_on_call
|
|
- overridden_super_call
|
|
|
|
disabled_rules:
|
|
- force_unwrapping
|
|
- comma
|
|
- line_length
|
|
|
|
force_cast: warning
|
|
force_try: warning
|
|
|
|
weak_delegate: error
|
|
|
|
type_body_length:
|
|
warning: 300
|
|
error: 400
|
|
|
|
file_length:
|
|
warning: 500
|
|
error: 1200
|
|
|
|
type_name:
|
|
min_length: 4
|
|
max_length:
|
|
warning: 40
|
|
error: 50
|
|
excluded: iPhone
|
|
|
|
identifier_name:
|
|
min_length:
|
|
error: 4
|
|
excluded:
|
|
- id
|
|
- url
|
|
- URL
|
|
- pk
|
|
- day
|
|
- map
|
|
- row
|
|
- nib
|
|
- GlobalAPIKey
|
|
- to
|
|
- obj
|
|
- str
|
|
- set
|
|
|
|
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)
|