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
90 changes: 90 additions & 0 deletions Daresay Movies/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
107 changes: 107 additions & 0 deletions Daresay Movies/.swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# trailing_whitespace:
# ignores_empty_lines: true
# ignores_comments: true

# excluded:
# - Pods

# identifier_name:
# excluded:
# - id

# line_length: 300

# # opt_in_rules:
# # - force_unwrapping

# # force_cast: warning
# force_try: warning

# disabled_rules:
# - force_cast
# - redundant_void_return
# - nesting
# - redundant_string_enum_value
# - function_body_length


disabled_rules: # rule identifiers to exclude from running
- identifier_name
- nesting
- function_parameter_count
- trailing_whitespace
- empty_count
- function_body_length
- force_cast
- type_body_length
- no_fallthrough_only
- file_length
- unused_optional_binding
- class_delegate_protocol
- is_disjoint
- todo
- redundant_string_enum_value
- block_based_kvo
#- type_name
opt_in_rules: # some rules are only opt-in
- control_statement
- empty_count
- trailing_newline
- colon
- comma
included: # paths to include during linting. `--path` is ignored if present.
- Daresay Movies
- Daresay MoviesTests
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods

# configurable rules can be customized from this configuration file
# binary rules can set their severity level
# force_cast: warning # implicitly. Give warning only for force casting

# force_try:
# severity: warning # explicitly. Give warning only for force try

# type_body_length:
# warning: 300
#error: 400

# or they can set both explicitly
# file_length:
# warning: 750
#error: 800

large_tuple: # warn user when using 3 values in tuple, give error if there are 4
- 3
- 4

line_length: 750

# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
type_name:
min_length: 3 # only warning
max_length: 60 # warning and error
warning: 47
excluded: iPhone # excluded via string
reporter: "xcode"

cyclomatic_complexity:
ignores_case_statements: true
warning: 40
error: 39

#custom_rules:
# localizable_usage: # rule identifier
# name: "Localizable Usage" # rule name. optional.
# regex: '@Localizable' # matching pattern
# capture_group: 0 # number of regex capture group to highlight the rule violation at. optional.
# message: "@Localizable is deprecated. You should use: SetareYekStrings Enum" # violation message. optional.
# severity: warning # violation severity. optional.
#
# localizable_usage2: # rule identifier
# name: "Localizable Usage" # rule name. optional.
# regex: 'NSLocalizedString\(' # matching pattern
# capture_group: 0 #number of regex capture group to highlight the rule violation at. optional.
# message: "You should use: SetareYekStrings Enum" # violation message. optional.
# severity: warning # violation severity. optional.
Loading