-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from TheraForge/release_1.0.4-beta
Committing version 1.0.4-beta
- Loading branch information
Showing
15 changed files
with
517 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,159 @@ | ||
included: | ||
|
||
excluded: | ||
- Pods | ||
- Cartography | ||
- build | ||
- fastlane | ||
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji) | ||
|
||
excluded: # paths to ignore during linting. Takes precedence over `included`. | ||
- Carthage | ||
- Pods | ||
- SwiftLint/Common/3rdPartyLib | ||
disabled_rules: # rule identifiers to exclude from running | ||
- trailing_whitespace | ||
- trailing_newline | ||
- trailing_whitespace | ||
# - force_cast | ||
# - force_unwrapping | ||
# - force_try | ||
- empty_enum_arguments | ||
# - overridden_super_call | ||
# - sorted_imports | ||
# - vertical_whitespace | ||
- inclusive_language | ||
- trailing_closure | ||
# - colon # Default configuration: warning, flexible_right_spacing: false, apply_to_dictionaries: true | ||
# - comma # Default configuration: warning | ||
# - opening_brace | ||
# - todo | ||
# - empty_parentheses_with_trailing_closure | ||
# - empty_string | ||
# - unused_closure_parameter | ||
# - unused_setter_value | ||
# - unused_optional_binding | ||
# - redundant_void_return | ||
# - void_return | ||
# - redundant_string_enum_value | ||
# - redundant_objc_attribute | ||
# - closure_parameter_position | ||
# - control_statement | ||
# - notification_center_detachment | ||
# - legacy_constructor | ||
# - for_where | ||
# - unneeded_break_in_switch | ||
# - implicit_getter | ||
# - duplicate_imports | ||
# - trailing_newline | ||
|
||
opt_in_rules: # some rules are only opt-in | ||
# - missing_docs | ||
- yoda_condition # Default configuration: warning | ||
- empty_count # Default configuration: error, only_after_dot: false | ||
- empty_string # Default configuration: warning | ||
- closure_end_indentation # Default configuration: warning | ||
- closure_spacing # Default configuration: warning | ||
- explicit_init # Default configuration: warning | ||
- first_where # Default configuration: warning | ||
- number_separator # Default configuration: warning, minimum_length: 0 | ||
- explicit_failure_calls | ||
- fatal_error_message | ||
# - extension_access_modifier | ||
# - implicitly_unwrapped_optional | ||
# - operator_usage_whitespace | ||
- vertical_parameter_alignment_on_call | ||
- multiline_parameters | ||
# - multiple_empty_lines # Defined into custom roles | ||
- nesting | ||
- file_name | ||
- convenience_type | ||
- modifier_order | ||
- unused_private_declaration | ||
|
||
- private_outlet | ||
- prohibited_super_call | ||
- protocol_property_accessors_order | ||
- redundant_nil_coalescing | ||
- syntactic_sugar | ||
- comments_space | ||
- conditional_returns_on_newline | ||
|
||
conditional_returns_on_newline: | ||
if_only: true | ||
|
||
line_length: | ||
warning: 200 | ||
error: 250 | ||
ignores_function_declarations: true | ||
ignores_comments: true | ||
ignores_urls: true | ||
|
||
function_body_length: | ||
warning: 300 | ||
error: 500 | ||
|
||
function_parameter_count: | ||
warning: 6 | ||
error: 8 | ||
|
||
line_length: 150 | ||
type_name: # class name | ||
min_length: 3 | ||
max_length: | ||
warning: 60 | ||
error: 80 | ||
|
||
opt_in_rules: | ||
- number_separator: | ||
minimum_length: 5 | ||
type_body_length: | ||
warning: 300 | ||
error: 500 | ||
|
||
file_length: | ||
warning: 1000 | ||
error: 1500 | ||
ignore_comment_only_lines: true | ||
|
||
identifier_name: # Variable name | ||
allowed_symbols: "_" | ||
min_length: 1 | ||
max_length: | ||
warning: 60 | ||
error: 80 | ||
excluded: | ||
- id | ||
- URL | ||
- GlobalAPIKey | ||
|
||
large_tuple: | ||
warning: 4 | ||
error: 5 | ||
|
||
private_outlet: | ||
allow_private_set: true | ||
|
||
#nesting: | ||
# type_level: | ||
# warning: 3 | ||
# error: 6 | ||
# statement_level: | ||
# warning: 5 | ||
# error: 10 | ||
|
||
number_separator: | ||
minimum_length: 8 | ||
|
||
#cyclomatic complexity below 4 is considered good; | ||
#cyclomatic complexity between 5 and 7 is considered medium complexity, | ||
#between 8 and 10 is high complexity, | ||
#and above that is extreme complexity. | ||
cyclomatic_complexity: | ||
warning: 10 | ||
error: 12 | ||
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle) | ||
ignores_case_statements: true | ||
warning: 7 | ||
error: 11 | ||
|
||
custom_rules: | ||
comments_space: # From https://github.com/brandenr/swiftlintconfig | ||
name: "Space After Comment" | ||
regex: '(^ *//\w+)' | ||
message: "There should be a space after //" | ||
severity: warning | ||
explicit_failure_calls: | ||
name: “Avoid asserting ‘false’” | ||
regex: ‘((assert|precondition)\(false)’ | ||
message: “Use assertionFailure() or preconditionFailure() instead.” | ||
severity: warning | ||
multiple_empty_lines: | ||
name: "Multiple Empty Lines" | ||
regex: '((?:\s*\n){3,})' | ||
message: "There are too many line breaks" | ||
severity: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ OF SUCH DAMAGE. | |
|
||
import SwiftUI | ||
|
||
|
||
@main | ||
struct OTFTemplateBox: App { | ||
var body: some Scene { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,19 @@ | |
|
||
Pod::Spec.new do |s| | ||
s.name = 'OTFTemplateBox' | ||
s.version = '0.0.4' | ||
s.summary = 'A short description of OTFTemplateBox.' | ||
s.description = "This framework will be used to provide templating to other frameworks using yaml file." | ||
s.version = '1.0.4-beta' | ||
s.summary = 'TheraForge OTFTemplateBox is a fully customizable zero-code template framework for app customization.' | ||
s.homepage = 'https://github.com/TheraForge/OTFTemplateBox' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.license = { :type => 'BSD-4', :file => 'LICENSE.md' } | ||
s.author = { 'Hippocrates Technologies' => '[email protected]' } | ||
s.source = { :git => 'https://github.com/TheraForge/OTFTemplateBox.git', :branch => 'main' } | ||
s.source = { :git => 'https://github.com/TheraForge/OTFTemplateBox.git', :tag => s.version.to_s } | ||
s.source_files = 'OTFTemplateBox/**/*.{h,m,c,swift}' | ||
s.exclude_files = 'OTFTemplateBox/Pods/**/*', 'OTFTemplateBox/info.plist', 'OTFTemplateBox/Support Files/**/*.{h,m,swift}' | ||
s.ios.deployment_target = '13.0' | ||
s.dependency 'Yams' | ||
s.dependency 'OTFToolBoxCore' | ||
s.dependency 'OTFCareKitUI' | ||
s.watchos.deployment_target = '8.0' | ||
s.ios.dependency 'Yams' | ||
s.dependency 'OTFToolBoxCore', '1.0.4-beta' | ||
s.dependency 'OTFCareKitUI', '2.0.2-beta.4' | ||
s.dependency 'OTFUtilities', '1.0.1-beta' | ||
s.dependency 'OTFDesignSystem' | ||
end | ||
|
Oops, something went wrong.