-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit from internal repository
- Loading branch information
0 parents
commit 3972290
Showing
892 changed files
with
12,454 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,5 @@ | ||
.DS_Store | ||
/.build | ||
/Packages | ||
xcuserdata/ | ||
DerivedData |
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,2 @@ | ||
sonar.exclusions=Sources/Vitamin/Foundations/Colors/Colors.swift,Sources/Vitamin/Foundations/Icons/Vitamix.swift,Sources/Vitamin/Foundations/Typography/Fonts.swift | ||
sonar.cpd.exclusions=Sources/Vitamin/Foundations/Colors/Colors.swift,Sources/Vitamin/Foundations/Icons/Vitamix.swift,Sources/Vitamin/Foundations/Typography/Fonts.swift |
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,102 @@ | ||
excluded: | ||
- ${PWD}/Carthage | ||
- ${PWD}/Pods | ||
- ${PWD}/DerivedData | ||
|
||
disabled_rules: | ||
- discarded_notification_center_observer | ||
- notification_center_detachment | ||
- orphaned_doc_comment | ||
- unused_capture_list | ||
- nesting | ||
- indentation_width | ||
|
||
opt_in_rules: | ||
- array_init | ||
- attributes | ||
- closure_end_indentation | ||
- closure_spacing | ||
- collection_alignment | ||
- colon # promote to error | ||
- convenience_type | ||
- discouraged_object_literal | ||
- empty_collection_literal | ||
- empty_count | ||
- empty_string | ||
- enum_case_associated_values_count | ||
- fatal_error_message | ||
- first_where | ||
- force_unwrapping | ||
- implicitly_unwrapped_optional | ||
- last_where | ||
- legacy_random | ||
- literal_expression_end_indentation | ||
- multiline_arguments | ||
- multiline_function_chains | ||
- multiline_literal_brackets | ||
- multiline_parameters | ||
- multiline_parameters_brackets | ||
- operator_usage_whitespace | ||
- overridden_super_call | ||
- pattern_matching_keywords | ||
- prefer_self_type_over_type_of_self | ||
- redundant_nil_coalescing | ||
- redundant_type_annotation | ||
- strict_fileprivate | ||
- toggle_bool | ||
- trailing_closure | ||
- unneeded_parentheses_in_closure_argument | ||
- unused_import | ||
- vertical_whitespace_closing_braces | ||
- vertical_whitespace_opening_braces | ||
- yoda_condition | ||
|
||
|
||
custom_rules: | ||
array_constructor: | ||
name: "Array/Dictionary initializer" | ||
regex: '[let,var] .+ = (\[.+\]\(\))' | ||
capture_group: 1 | ||
message: "Use explicit type annotation when initializing empty arrays and dictionaries" | ||
severity: warning | ||
|
||
|
||
attributes: | ||
always_on_same_line: | ||
- "@IBSegueAction" | ||
- "@IBAction" | ||
- "@NSManaged" | ||
- "@objc" | ||
|
||
force_cast: warning | ||
force_try: warning | ||
function_body_length: | ||
warning: 60 | ||
|
||
type_body_length: | ||
warning: 400 | ||
|
||
legacy_hashing: error | ||
|
||
identifier_name: | ||
excluded: | ||
- i | ||
- id | ||
- x | ||
- y | ||
- z | ||
|
||
line_length: | ||
ignores_urls: true | ||
ignores_function_declarations: true | ||
ignores_comments: true | ||
|
||
private_over_fileprivate: | ||
validate_extensions: true | ||
|
||
trailing_whitespace: | ||
ignores_empty_lines: false | ||
ignores_comments: true | ||
|
||
vertical_whitespace: | ||
max_empty_lines: 2 |
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,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1310" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "Vitamin" | ||
BuildableName = "Vitamin" | ||
BlueprintName = "Vitamin" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "Vitamin" | ||
BuildableName = "Vitamin" | ||
BlueprintName = "Vitamin" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
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,76 @@ | ||
# Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to make participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, 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 within all project spaces, and it also applies when | ||
an individual is representing the project or its community in public spaces. | ||
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 our team at <[email protected]>. 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 | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
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,123 @@ | ||
# Contributing | ||
|
||
If you are on this page it means you are almost ready to contribute proposing changes, fixing issues or anything else about Decathlon Design System libraries for iOS applications. | ||
So, **thanks a lot for this**!! :tada::+1: | ||
|
||
**Table of Contents** | ||
|
||
- [Contributing](#contributing) | ||
- [Project structure](#project-structure) | ||
- [Local development](#local-development) | ||
- [Code of conduct](#code-of-conduct) | ||
- [What are you talking about? Pull Request? Merge? Push?](#what-are-you-talking-about-pull-request-merge-push) | ||
- [How Can I contribute?](#how-can-i-contribute) | ||
- [Reporting Bug](#reporting-bug) | ||
- [Code Contribution](#code-contribution) | ||
- [Commit and Push on your branch](#commit-and-push-on-your-branch) | ||
- [Pull Request guidelines](#pull-request-guidelines) | ||
- [Contribution acceptance criteria](#contribution-acceptance-criteria) | ||
|
||
## Project structure | ||
|
||
``` | ||
vitamin-ios/ | ||
Package.swift | ||
... | ||
Showcase/ | ||
Application/ | ||
Components/ | ||
Button/ | ||
Switch/ | ||
TextField/ | ||
Foundations/ | ||
Colors/ | ||
Icons/ | ||
Typography/ | ||
Main/ | ||
Supporting Files/ | ||
Sources/ | ||
Vitamin/ | ||
Components/ | ||
Button/ | ||
TextField/ | ||
Switch/ | ||
Foundations/ | ||
Colors/ | ||
Icons/ | ||
Typography/ | ||
Utils/ | ||
``` | ||
|
||
## Local development | ||
|
||
Run the following to setup your local dev environment: | ||
|
||
```sh | ||
# Clone or fork `vitamin-ios` | ||
git clone [email protected]:Decathlon/vitamin-ios.git # or your fork | ||
cd vitamin-ios | ||
|
||
# Open the project | ||
open Vitamin.xcworkspace | ||
``` | ||
|
||
## Code of conduct | ||
|
||
This project and everyone participating in it is governed by the [following code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. | ||
|
||
## What are you talking about? Pull Request? Merge? Push? | ||
|
||
If you are not familiar with Git and GitHub terms you can check a complete [glossary](https://help.github.com/articles/github-glossary/) on the GitHub website. | ||
|
||
## How Can I contribute? | ||
|
||
### Reporting Bug | ||
|
||
The first way to contribute to a project is simply reporting a Bug. If you find anything which is not working well or as expected you can [open an issue](https://github.com/Decathlon/vitamin-ios/issues) repository. | ||
|
||
Before to open the issue please check if there is one similar already opened. It will save us hours of work and it will allow us to answer you quickly with the desired hotfix or implementation. | ||
|
||
> **NOTE:** if looking for existing issues you will find the same problem, or similar, in **closed** state, please refer to this issue (with its number) when you are opening your one. It is maybe a regression we didn't see. In this way you will help to go faster and to find a definitive solution to the recurrent problem. | ||
When you are opening an issue, please be sure to report as much information as you can to allow us to replicate the problem and faster find the solution. | ||
|
||
### Code Contribution | ||
|
||
If you are a dev and you want to directly fix a problem or implement a new feature... you are the best one ! :clap::clap: | ||
To propose any change you have to submit us a [Pull Request](https://help.github.com/articles/about-pull-requests/) | ||
|
||
The workflow we are using the one-pay project is: | ||
|
||
1. Fork this repository (as you don't have a direct write access to the main one). | ||
2. Create your code, `Commit` and `Push the code` on your forked repo | ||
3. Create a GitHub `Pull Request` to our **main** branch (which is the main one for the coming version). | ||
|
||
We will take the time to review your code, make some comments or asking information if needed. But, as you took time to help us, we will take in serious consideration what you are proposing. | ||
To quickly have your code available on production, please take care and read our [Contribution acceptance criteria](#contribution-acceptance-criteria) | ||
|
||
#### Commit and Push on your branch | ||
|
||
```bash | ||
git add <files> | ||
git commit -m "<type>[optional scope]: <description>" (the message must follow https://www.conventionalcommits.org guidelines) | ||
git push origin <my-branch-name> | ||
``` | ||
|
||
### Pull Request guidelines | ||
|
||
When you open your Pull Request provide as much information as possible. | ||
|
||
- For an issue, describe what you are fixing with your pull request and how you had found the defect. | ||
- If you are proposing an enhancement, describe what you are adding to the code (new function, performance enhancement, documentation update, changing an existing function, ...). | ||
|
||
### Contribution acceptance criteria | ||
|
||
We love maintenable software and we are happy when some else than us is able to take the code, **understand it** and be able to change it. | ||
To reach this goal we fixed some rule in our team and we would love to go ahead in this way, even with the external contribution: | ||
|
||
1. Be sure your code compile: no syntax error, no missing library, ... | ||
2. Add comments on the code if you want to explain better what is happening in the code. | ||
3. Add documentation for any API, if needed, or functional explaining what changed/added with your code. | ||
4. After you proposed the PullRequest. If you will receive any mail or find any automatic comment on the Pull Request you opened, it means there is something which is not respecting the project defined code style or your broke any previously created test. | ||
|
||
If you respect all these rules you will help us saving time and we will be able to check your pull request faster. |
Oops, something went wrong.