Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
yonat committed Feb 3, 2019
0 parents commit 8cdb55a
Show file tree
Hide file tree
Showing 25 changed files with 1,320 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Example/Pods

5 changes: 5 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--exclude Example/Pods
--commas always
--comments ignore
--self init-only
--disable unusedArguments,andOperator,blankLinesAtStartOfScope,emptyBraces
59 changes: 59 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
excluded:
- Example/Pods
disabled_rules:
- unused_closure_parameter
- large_tuple
- multiple_closures_with_trailing_closure
- trailing_comma
opt_in_rules:
- force_unwrapping
- explicit_init
- overridden_super_call
- redundant_nil_coalescing
- nimble_operator
- operator_usage_whitespace
- closure_end_indentation
- first_where
- prohibited_super_call
- fatal_error_message
- vertical_parameter_alignment_on_call
- unneeded_parentheses_in_closure_argument
- literal_expression_end_indentation
- joined_default_parameter
- contains_over_first_not_nil
- override_in_extension
- single_test_class
- sorted_first_last
- convenience_type
- empty_count
- empty_string
- toggle_bool
- unused_private_declaration
- identical_operands
- array_init
- implicit_return
- implicitly_unwrapped_optional
- vertical_whitespace_closing_braces
- last_where
- redundant_type_annotation
- strict_fileprivate

empty_count: warning
force_cast: warning

line_length:
ignores_function_declarations: true

custom_rules:
already_true:
regex: "== true"
message: "Don't compare to true, just use the bool value."
already_bool:
regex: "== false"
message: "Don't compare to false, just use !value."
numbers_smell:
regex: '(return |case |\w\(|: |\?\? |\, |== |<=? |>=? |\+= |\-= |\/= |\*= |%= |\w\.\w+ = )\(*\d{2,}'
message: "Numbers smell; define a constant instead."
auto_generated_leftovers:
regex: 'func [^\n]*\{\n(\s*super\.[^\n]*\n(\s*\/\/[^\n]*\n)*|(\s*\/\/[^\n]*\n)+)\s*\}'
message: "Delete auto-generated functions that you don't use"
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


## [1.0.0] - 2019-02-03

### Added
- initial release.
18 changes: 18 additions & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
platform :ios, '9.0'

use_frameworks!
pod 'RadioGroup', :path => '..'

# code quality scripts
def scripts
script_phase :name => 'SwiftFormat', :execution_position => :before_compile, :script => 'if [ "Debug" = "${CONFIGURATION}" ]; then cd "${SRCROOT}/.."; swiftformat; fi'
script_phase :name => 'SwiftLintAutocorrect', :execution_position => :before_compile, :script => 'if [ "Debug" = "${CONFIGURATION}" ]; then cd "${SRCROOT}/.."; swiftlint autocorrect; fi'
script_phase :name => 'SwiftLint', :execution_position => :after_compile, :script => 'if [ "Debug" = "${CONFIGURATION}" ]; then cd "${SRCROOT}/.."; swiftlint; fi'
end

target 'RadioGroupDemo' do
scripts
end

#target 'RadioGroupDemoUITests' do
#end
26 changes: 26 additions & 0 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
PODS:
- MiniLayout (1.4.0)
- RadioGroup (1.0.1):
- MiniLayout
- RadioGroup/Resources (= 1.0.1)
- RadioGroup/Resources (1.0.1):
- MiniLayout

DEPENDENCIES:
- RadioGroup (from `..`)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- MiniLayout

EXTERNAL SOURCES:
RadioGroup:
:path: ".."

SPEC CHECKSUMS:
MiniLayout: e35331ce9ab50a4111c3f91deca158834f86d9e7
RadioGroup: 3a0554fe9ce1fbf3c01c14f71e2ff6a6037ee698

PODFILE CHECKSUM: b6318aa40de86b0e333d36e4f9924f62c738379c

COCOAPODS: 1.6.0.beta.2
Loading

0 comments on commit 8cdb55a

Please sign in to comment.