Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
Binary file added .github/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Story ID:

Background:

What has been done:

How to test:
25 changes: 25 additions & 0 deletions .github/workflows/CodeCoverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: code_coverage

on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]

jobs:
metrics:
name: Run Metrics
runs-on: [self-hosted]

steps:
- name: Show PR number
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_BASE: ${{ github.event.pull_request.base.ref }}
PR_HEAD: ${{ github.event.pull_request.head.ref }}
run: echo "The PR number is $PR_NUMBER, the base is $PR_BASE, the head is $PR_HEAD"

- uses: actions/checkout@v2
- name: Run Metrics through fastlane
run: bundle exec fastlane code_coverage
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
138 changes: 138 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
included:
- Test-CI
excluded:
- Test-CITests
- Pods
- fastlane
opt_in_rules:
- array_init
- block_based_kvo
- closing_brace
- closure_end_indentation
- closure_parameter_position
- closure_spacing
- colon
- comma
- compiler_protocol_init
- control_statement
- cyclomatic_complexity
- discarded_notification_center_observer
- discouraged_direct_init
- discouraged_optional_boolean
- dynamic_inline
- empty_count
- empty_parameters
- empty_parentheses_with_trailing_closure
- explicit_init
- fallthrough
- fatal_error_message
- first_where
- for_where
- force_try
- force_unwrapping
- implicit_getter
- implicitly_unwrapped_optional
- joined_default_parameter
- large_tuple
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_nsgeometry_functions
- literal_expression_end_indentation
- mark
- multiline_arguments
- multiline_parameters
- multiple_closures_with_trailing_closure
- notification_center_detachment
- opening_brace
- operator_usage_whitespace
- operator_whitespace
- overridden_super_call
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- redundant_discardable_let
- redundant_nil_coalescing
- redundant_optional_initialization
- redundant_string_enum_value
- redundant_void_return
- return_arrow_whitespace
- shorthand_operator
- single_test_class
- sorted_first_last
- statement_position
- superfluous_disable_command
- switch_case_alignment
- syntactic_sugar
- trailing_comma
- trailing_newline
- trailing_semicolon
- unneeded_parentheses_in_closure_argument
- unused_closure_parameter
- unused_enumerated
- unused_optional_binding
- vertical_parameter_alignment
- vertical_parameter_alignment_on_call
- vertical_whitespace
- weak_delegate
- yoda_condition




disabled_rules:
- class_delegate_protocol
- conditional_returns_on_newline
- contains_over_first_not_nil
- discouraged_object_literal
- explicit_acl
- explicit_enum_raw_value
- explicit_top_level_acl
- explicit_type_interface
- extension_access_modifier
- force_cast
- function_parameter_count
- generic_type_name
- is_disjoint
- let_var_whitespace
- line_length
- nesting
- nimble_operator
- no_extension_access_modifier
- no_grouping_extension
- number_separator
- object_literal
- override_in_extension
- pattern_matching_keywords
- prefixed_toplevel_constant
- private_action
- private_outlet
- private_over_fileprivate
- private_unit_test
- prohibited_super_call
- protocol_property_accessors_order
- required_enum_case
- sorted_imports
- strict_fileprivate
- switch_case_on_newline
- todo
- trailing_closure
- trailing_whitespace
- type_name
- unneeded_break_in_switch
- valid_ibinspectable
- void_return
- xctfail_message
- implicit_return
- empty_enum_arguments
- identifier_name

function_body_length:
- 30 #warning
- 100 #error

cyclomatic_complexity:
- 5 #warning


Loading