X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=.swiftlint.yml;h=d9d50c3a17947d2ab7f5d45d65a317a102090648;hb=8e23b39a7f8534e7d68924e0355cc897eb7a3526;hp=8cdd7dd014a38e847ba32ed7a80a91b806dbebfc;hpb=9ab99d2dddd3bdf36b3fcd2cd182595f932123e5;p=kcd%2FKCD.git diff --git a/.swiftlint.yml b/.swiftlint.yml index 8cdd7dd0..d9d50c3a 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,72 +1,57 @@ - +excluded: + - Carthage disabled_rules: - - variable_name - - closing_brace - - colon - - comma - - control_statement - - shorthand_operator - - force_cast - - force_try - leading_whitespace - vertical_whitespace - - unused_closure_parameter - - legacy_constructor - - cyclomatic_complexity - - legacy_nsgeometry_functions - - class_delegate_protocol - - weak_delegate - - redundant_optional_initialization - - large_tuple - - syntactic_sugar - - trailing_comma - - empty_parentheses_with_trailing_closure - - function_parameter_count - - nesting - - opening_brace - - operator_whitespace - - return_arrow_whitespace - - statement_position + - unused_optional_binding + - discarded_notification_center_observer - todo - - trailing_newline - - trailing_semicolon - - trailing_whitespace - - valid_docs + - block_based_kvo +trailing_whitespace: + ignores_empty_lines: true + ignores_comments: true +vertical_whitespace: + max_empty_lines: 2 file_length: - warning: 500 + warning: 1500 + error: 3000 -line_length: 500 +line_length: + warning: 300 + error: 500 + ignores_function_declarations: true + ignores_comments: true -variable_name: - max_length: +type_body_length: + warning: 600 + error: 1000 + +function_body_length: warning: 100 error: 200 - min_length: - warning: 1 - error: 2 -type_name: +identifier_name: max_length: - warning: 55 + warning: 40 error: 60 min_length: - error: 3 + warning: 1 -type_body_length: - warning: 300 - error: 900 +large_tuple: 3 -function_body_length: - warning: 100 - error: 1000 +cyclomatic_complexity: + warning: 25 + error: 60 -function_parameter_count: - warning: 6 - error: 8 -cyclomatic_complexity: - warning: 20 - error: 20 +custom_rules: + use_nsmanagedobjectcontext: + excluded: "ServerDataStore|ResourceHistoryDataStore|LocalDataStore|TemporaryDataStore|BookmarkDataStore|CoreDataManager|CoreDataCore|MOCGenerator" + name: "Positive using NSManagedObjectContext" + regex: "NSManagedObjectContext\\s" + severity: error + private_iboutlet: + regex: "@IBOutlet\\s+(?!private[(\\s])" \ No newline at end of file