Skip to content

Commit

Permalink
0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 11, 2021
1 parent d8a9321 commit 6d0efcd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
27 changes: 13 additions & 14 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
whitelist_rules:
only_rules:
- anyobject_protocol
- array_init
- attributes
- block_based_kvo
- class_delegate_protocol
- closing_brace
Expand All @@ -12,6 +11,7 @@ whitelist_rules:
- colon
- comma
- compiler_protocol_init
- computed_accessors_order
- conditional_returns_on_newline
- contains_over_filter_count
- contains_over_filter_is_empty
Expand All @@ -35,18 +35,20 @@ whitelist_rules:
- empty_parentheses_with_trailing_closure
- empty_string
- empty_xctest_method
- enum_case_associated_value_count
- enum_case_associated_values_count
- explicit_init
- fallthrough
- fatal_error_message
- first_where
- flatmap_over_map_reduce
- for_where
- generic_type_name
- ibinspectable_in_extension
- identical_operands
- identifier_name
- implicit_getter
- implicit_return
- inclusive_language
- inert_defer
- is_disjoint
- joined_default_parameter
Expand Down Expand Up @@ -75,17 +77,16 @@ whitelist_rules:
- notification_center_detachment
- nsobject_prefer_isequal
- number_separator
- object_literal
- opening_brace
- operator_usage_whitespace
- operator_whitespace
- orphaned_doc_comment
- overridden_super_call
- prefer_self_type_over_type_of_self
- prefer_zero_over_explicit_init
- private_action
- private_outlet
- private_unit_test
- prohibited_nan_comparison
- prohibited_super_call
- protocol_property_accessors_order
- reduce_boolean
Expand All @@ -99,7 +100,6 @@ whitelist_rules:
- redundant_type_annotation
- redundant_void_return
- required_enum_case
- return_value_from_void_function
- return_arrow_whitespace
- shorthand_operator
- sorted_first_last
Expand All @@ -110,13 +110,13 @@ whitelist_rules:
- switch_case_alignment
- switch_case_on_newline
- syntactic_sugar
- test_case_accessibility
- toggle_bool
- trailing_closure
- trailing_comma
- trailing_newline
- trailing_semicolon
- trailing_whitespace
- tuple_pattern
- unavailable_function
- unneeded_break_in_switch
- unneeded_parentheses_in_closure_argument
Expand All @@ -141,15 +141,8 @@ whitelist_rules:
analyzer_rules:
- unused_declaration
- unused_import
force_cast: warning
force_try: warning
force_unwrapping: warning
number_separator:
minimum_length: 5
object_literal:
image_literal: false
discouraged_object_literal:
color_literal: false
identifier_name:
max_length:
warning: 100
Expand Down Expand Up @@ -184,3 +177,9 @@ custom_rules:
regex: '\bNSPoint\b'
match_kinds: typeidentifier
message: 'Use CGPoint instead of NSPoint'
swiftui_state_private:
regex: '@(State|StateObject)\s+var'
message: "SwiftUI @State/@StateObject properties should be private"
final_class:
regex: '^class [a-zA-Z\d]+[^{]+\{'
message: "Classes should be marked as final whenever possible. If you actually need it to be subclassable, just add `// swiftlint:disable:next final_class`."
2 changes: 1 addition & 1 deletion KeyboardShortcuts.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'KeyboardShortcuts'
s.version = '0.6.0'
s.version = '0.6.1'
s.summary = 'Add user-customizable global keyboard shortcuts to your macOS app in minutes'
s.license = 'MIT'
s.homepage = 'https://github.com/sindresorhus/KeyboardShortcuts'
Expand Down
4 changes: 2 additions & 2 deletions KeyboardShortcuts.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MARKETING_VERSION = 0.6.0;
MARKETING_VERSION = 0.6.1;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
Expand Down Expand Up @@ -701,7 +701,7 @@
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MARKETING_VERSION = 0.6.0;
MARKETING_VERSION = 0.6.1;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
Expand Down
1 change: 1 addition & 0 deletions KeyboardShortcutsTests/KeyboardShortcutsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import KeyboardShortcuts
final class KeyboardShortcutsTests: XCTestCase {
// TODO: Add more tests.

// swiftlint:disable:next overridden_super_call
override func setUpWithError() throws {
UserDefaults.standard.removeAll()
}
Expand Down

0 comments on commit 6d0efcd

Please sign in to comment.