Skip to content

Commit affae1c

Browse files
committed
Init
0 parents  commit affae1c

34 files changed

+3676
-0
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.yml]
11+
indent_style = space
12+
indent_size = 2

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/funding.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: sindresorhus
2+
open_collective: sindresorhus
3+
custom: https://sindresorhus.com/donate

.github/workflows/jazzy.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Public docs
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
deploy:
7+
runs-on: macos-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Publish docs
11+
uses: steven0351/publish-jazzy-docs@v1
12+
with:
13+
personal_access_token: ${{ secrets.ACCESS_TOKEN }}
14+
config: .jazzy.yml

.github/workflows/swiftlint.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: SwiftLint
2+
on:
3+
pull_request:
4+
paths:
5+
- '.github/workflows/swiftlint.yml'
6+
- '.swiftlint.yml'
7+
- '**/*.swift'
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: SwiftLint
14+
uses: norio-nomura/action-swiftlint@3

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.build
2+
/Packages
3+
xcuserdata
4+
project.xcworkspace

.jazzy.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module: KeyboardShortcuts
2+
github_url: https://github.com/sindresorhus/KeyboardShortcuts
3+
root_url: https://sindresorhus.com/KeyboardShortcuts
4+
copyright: MIT License © [Sindre Sorhus](https://sindresorhus.com)
5+
swift_build_tool: spm
6+
build_tool_arguments:
7+
- '-Xswiftc'
8+
- '-swift-version'
9+
- '-Xswiftc'
10+
- '5'
11+
theme: fullwidth
12+
hide_documentation_coverage: true

.swiftlint.yml

+187
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
whitelist_rules:
2+
- anyobject_protocol
3+
- array_init
4+
- attributes
5+
- block_based_kvo
6+
- class_delegate_protocol
7+
- closing_brace
8+
- closure_end_indentation
9+
- closure_parameter_position
10+
- closure_spacing
11+
- collection_alignment
12+
- colon
13+
- comma
14+
- compiler_protocol_init
15+
- conditional_returns_on_newline
16+
- contains_over_filter_count
17+
- contains_over_filter_is_empty
18+
- contains_over_first_not_nil
19+
- contains_over_range_nil_comparison
20+
- control_statement
21+
- custom_rules
22+
- deployment_target
23+
- discarded_notification_center_observer
24+
- discouraged_direct_init
25+
- discouraged_object_literal
26+
- discouraged_optional_boolean
27+
- discouraged_optional_collection
28+
- duplicate_enum_cases
29+
- duplicate_imports
30+
- dynamic_inline
31+
- empty_collection_literal
32+
- empty_count
33+
- empty_enum_arguments
34+
- empty_parameters
35+
- empty_parentheses_with_trailing_closure
36+
- empty_string
37+
- empty_xctest_method
38+
- enum_case_associated_value_count
39+
- explicit_init
40+
- fallthrough
41+
- fatal_error_message
42+
- first_where
43+
- flatmap_over_map_reduce
44+
- for_where
45+
- generic_type_name
46+
- identical_operands
47+
- identifier_name
48+
- implicit_getter
49+
- implicit_return
50+
- inert_defer
51+
- is_disjoint
52+
- joined_default_parameter
53+
- last_where
54+
- leading_whitespace
55+
- legacy_cggeometry_functions
56+
- legacy_constant
57+
- legacy_constructor
58+
- legacy_hashing
59+
- legacy_multiple
60+
- legacy_nsgeometry_functions
61+
- legacy_random
62+
- literal_expression_end_indentation
63+
- lower_acl_than_parent
64+
- mark
65+
- modifier_order
66+
- multiline_arguments
67+
- multiline_function_chains
68+
- multiline_literal_brackets
69+
- multiline_parameters
70+
- multiline_parameters_brackets
71+
- nimble_operator
72+
- no_extension_access_modifier
73+
- no_fallthrough_only
74+
- no_space_in_method_call
75+
- notification_center_detachment
76+
- nsobject_prefer_isequal
77+
- number_separator
78+
- object_literal
79+
- opening_brace
80+
- operator_usage_whitespace
81+
- operator_whitespace
82+
- orphaned_doc_comment
83+
- overridden_super_call
84+
- pattern_matching_keywords
85+
- prefer_self_type_over_type_of_self
86+
- private_action
87+
- private_outlet
88+
- private_unit_test
89+
- prohibited_nan_comparison
90+
- prohibited_super_call
91+
- protocol_property_accessors_order
92+
- reduce_boolean
93+
- reduce_into
94+
- redundant_discardable_let
95+
- redundant_nil_coalescing
96+
- redundant_objc_attribute
97+
- redundant_optional_initialization
98+
- redundant_set_access_control
99+
- redundant_string_enum_value
100+
- redundant_type_annotation
101+
- redundant_void_return
102+
- required_enum_case
103+
- return_value_from_void_function
104+
- return_arrow_whitespace
105+
- shorthand_operator
106+
- sorted_first_last
107+
- statement_position
108+
- static_operator
109+
- strong_iboutlet
110+
- superfluous_disable_command
111+
- switch_case_alignment
112+
- switch_case_on_newline
113+
- syntactic_sugar
114+
- toggle_bool
115+
- trailing_closure
116+
- trailing_comma
117+
- trailing_newline
118+
- trailing_semicolon
119+
- trailing_whitespace
120+
- tuple_pattern
121+
- unavailable_function
122+
- unneeded_break_in_switch
123+
- unneeded_parentheses_in_closure_argument
124+
- unowned_variable_capture
125+
- untyped_error_in_catch
126+
- unused_capture_list
127+
- unused_closure_parameter
128+
- unused_control_flow_label
129+
- unused_enumerated
130+
- unused_optional_binding
131+
- unused_setter_value
132+
- valid_ibinspectable
133+
- vertical_parameter_alignment
134+
- vertical_parameter_alignment_on_call
135+
- vertical_whitespace_closing_braces
136+
- vertical_whitespace_opening_braces
137+
- void_return
138+
- weak_delegate
139+
- xct_specific_matcher
140+
- xctfail_message
141+
- yoda_condition
142+
analyzer_rules:
143+
- unused_declaration
144+
- unused_import
145+
force_cast: warning
146+
force_try: warning
147+
force_unwrapping: warning
148+
number_separator:
149+
minimum_length: 5
150+
object_literal:
151+
image_literal: false
152+
discouraged_object_literal:
153+
color_literal: false
154+
identifier_name:
155+
max_length:
156+
warning: 100
157+
error: 100
158+
min_length:
159+
warning: 2
160+
error: 2
161+
validates_start_with_lowercase: false
162+
allowed_symbols:
163+
- '_'
164+
excluded:
165+
- 'x'
166+
- 'y'
167+
- 'a'
168+
- 'b'
169+
- 'x1'
170+
- 'x2'
171+
- 'y1'
172+
- 'y2'
173+
deployment_target:
174+
macOS_deployment_target: '10.11'
175+
custom_rules:
176+
no_nsrect:
177+
regex: '\bNSRect\b'
178+
match_kinds: typeidentifier
179+
message: 'Use CGRect instead of NSRect'
180+
no_nssize:
181+
regex: '\bNSSize\b'
182+
match_kinds: typeidentifier
183+
message: 'Use CGSize instead of NSSize'
184+
no_nspoint:
185+
regex: '\bNSPoint\b'
186+
match_kinds: typeidentifier
187+
message: 'Use CGPoint instead of NSPoint'

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KeyboardShortcuts.podspec

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'KeyboardShortcuts'
3+
s.version = '0.0.0'
4+
s.summary = 'Add user-customizable global keyboard shortcuts to your macOS app in minutes'
5+
s.license = 'MIT'
6+
s.homepage = 'https://github.com/sindresorhus/KeyboardShortcuts'
7+
s.social_media_url = 'https://twitter.com/sindresorhus'
8+
s.authors = { 'Sindre Sorhus' => '[email protected]' }
9+
s.source = { :git => 'https://github.com/sindresorhus/KeyboardShortcuts.git', :tag => "v#{s.version}" }
10+
s.source_files = 'Sources/**/*.swift'
11+
s.swift_version = '5.2'
12+
s.platform = :macos, '10.11'
13+
s.weak_framework = 'Combine'
14+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>$(MARKETING_VERSION)</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSPrincipalClass</key>
24+
<string></string>
25+
</dict>
26+
</plist>

0 commit comments

Comments
 (0)