-
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.
- Loading branch information
0 parents
commit 73ea145
Showing
38 changed files
with
4,628 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Linux CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build and Test Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Swift Build and Test | ||
uses: "docker://bluk/docker-swift-build-tools@sha256:da3c2a2743cd7c1f878a7f8fd1f561625908b256f391c4cc6442b41a35665931" | ||
with: | ||
args: swift test |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: macOS CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build and Test Package | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Swift Build and Test | ||
run: swift test |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_Store | ||
/.build | ||
/Packages | ||
/*.xcodeproj | ||
xcuserdata/ |
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# file options | ||
|
||
--symlinks ignore | ||
|
||
# format options | ||
|
||
--allman false | ||
--indent 4 | ||
--exponentcase lowercase | ||
--hexliteralcase uppercase | ||
--linebreaks lf | ||
--binarygrouping 4,8 | ||
--hexgrouping 4,8 | ||
--decimalgrouping 3,6 | ||
--octalgrouping 4,8 | ||
--exponentgrouping disabled | ||
--fractiongrouping disabled | ||
--ranges nospace | ||
--self insert | ||
--elseposition same-line | ||
--semicolons inline | ||
--comments indent | ||
--operatorfunc spaced | ||
--commas always | ||
--trimwhitespace always | ||
--stripunusedargs always | ||
--empty void | ||
--wraparguments beforefirst | ||
--closingparen balanced | ||
--wrapcollections beforefirst | ||
--ifdef noindent | ||
--indentcase false | ||
--patternlet hoist | ||
# --experimental enabled | ||
|
||
# rules | ||
|
||
--enable blankLinesAtStartOfScope | ||
--enable blankLinesAtEndOfScope | ||
--enable blankLinesBetweenScopes | ||
--enable blankLinesAroundMark | ||
--enable consecutiveBlankLines | ||
--enable consecutiveSpaces | ||
--enable duplicateImports | ||
--enable elseOnSameLine | ||
--enable emptyBraces | ||
--enable hoistPatternLet | ||
--enable linebreakAtEndOfFile | ||
--enable linebreaks | ||
--enable redundantBackticks | ||
--enable redundantGet | ||
--enable redundantLet | ||
--enable redundantNilInit | ||
--enable redundantParens | ||
--enable redundantPattern | ||
--enable redundantRawValues | ||
--enable redundantReturn | ||
--enable redundantVoidReturnType | ||
--enable redundantInit | ||
--enable semicolons | ||
--enable sortedImports | ||
--enable spaceAroundBraces | ||
--enable spaceAroundBrackets | ||
--enable spaceAroundComments | ||
--enable spaceAroundGenerics | ||
--enable spaceAroundOperators | ||
--enable spaceAroundParens | ||
--enable spaceInsideBraces | ||
--enable spaceInsideBrackets | ||
--enable spaceInsideComments | ||
--enable spaceInsideGenerics | ||
--enable spaceInsideParens | ||
--enable specifiers | ||
--enable strongOutlets | ||
--enable trailingCommas | ||
--enable trailingSpace | ||
--enable todos | ||
--enable unusedArguments | ||
--enable void | ||
--enable wrapArguments | ||
|
||
--disable trailingClosures | ||
--disable redundantSelf | ||
|
||
--exclude Pods |
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
opt_in_rules: | ||
- anyobject_protocol | ||
- array_init | ||
- attributes | ||
- closure_end_indentation | ||
- closure_spacing | ||
- conditional_returns_on_newline | ||
- contains_over_first_not_nil | ||
- convenience_type | ||
- discouraged_optional_boolean | ||
- discouraged_optional_collection | ||
- empty_count | ||
- empty_string | ||
- empty_xctest_method | ||
- explicit_init | ||
- explicit_top_level_acl | ||
- extension_access_modifier | ||
- fatal_error_message | ||
- file_header | ||
- file_name | ||
- first_where | ||
- function_default_parameter_at_end | ||
- implicit_return | ||
- joined_default_parameter | ||
- let_var_whitespace | ||
- literal_expression_end_indentation | ||
- missing_docs | ||
- modifier_order | ||
- multiline_arguments | ||
- multiline_function_chains | ||
- multiline_parameters | ||
- nimble_operator | ||
- object_literal | ||
- operator_usage_whitespace | ||
- overridden_super_call | ||
- override_in_extension | ||
- pattern_matching_keywords | ||
- private_action | ||
- private_outlet | ||
- prohibited_super_call | ||
- quick_discouraged_call | ||
- quick_discouraged_focused_test | ||
- quick_discouraged_pending_test | ||
- redundant_nil_coalescing | ||
- single_test_class | ||
- sorted_first_last | ||
- sorted_imports | ||
- switch_case_on_newline | ||
- trailing_comma | ||
- unavailable_function | ||
- unneeded_parentheses_in_closure_argument | ||
- untyped_error_in_catch | ||
- vertical_parameter_alignment_on_call | ||
- yoda_condition | ||
|
||
file_header: | ||
severity: error | ||
excluded: Package.swift | ||
required_string: | | ||
// Copyright 2019 Bryant Luk | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
trailing_comma: | ||
mandatory_comma: true | ||
severity: error | ||
excluded: | ||
- .build | ||
- "Package.swift" | ||
- 'Tests/**/XCTestManifests.swift' | ||
- 'Tests/LinuxMain.swift' | ||
file_name: | ||
excluded: ['LinuxMain.swift', "Package.swift", "main.swift"] | ||
identifier_name: | ||
excluded: | ||
- __allTests | ||
- __allTests() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, gender identity and expression, level of experience, | ||
education, socio-economic status, nationality, personal appearance, race, | ||
religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at code@bryantluk.com. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Contributing | ||
|
||
## License | ||
|
||
By submitting a pull request, you represent that you have the right to license | ||
your contribution to the community, and agree by submitting the patch | ||
that your contributions are licensed under the [Apache-2.0 license][license]. | ||
|
||
## Pull Requests | ||
|
||
Pull requests are the preferred method for contributing to the project. | ||
If there are issues, please open a PR to either make a suggestion or add a | ||
test to reproduce the issue. | ||
|
||
## Security | ||
|
||
If there is a security issue, please email security@bryantluk.com . You can | ||
use this [PGP public key][pgpkey] to encrypt any message | ||
if desired. | ||
|
||
[license]: LICENSE | ||
[pgpkey]: https://bryantluk.com/gpg.key |
Oops, something went wrong.