-
Notifications
You must be signed in to change notification settings - Fork 52
chore: add linters #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wry-ry
wants to merge
1
commit into
Universal-Commerce-Protocol:main
Choose a base branch
from
wry-ry:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,60 @@ | ||
| { | ||
| "version": "0.2", | ||
| "language": "en", | ||
| "caseSensitive": true, | ||
| "useGitignore": true, | ||
| "ignorePaths": [ | ||
| ".github/**", | ||
| ".cspell/**", | ||
| ".gemini/**", | ||
| ".vscode/**", | ||
| ".cspell.json", | ||
| "**/*.svg", | ||
| ".gitignore", | ||
| "package.json" | ||
| ], | ||
| "dictionaryDefinitions": [ | ||
| { | ||
| "name": "custom-words", | ||
| "path": ".cspell/custom-words.txt", | ||
| "addWords": true | ||
| } | ||
| ], | ||
| "dictionaries": [ | ||
| "custom-words", | ||
| "aws", | ||
| "bash-words", | ||
| "companies", | ||
| "css", | ||
| "data-science-models", | ||
| "data-science", | ||
| "data-science-tools", | ||
| "acronyms", | ||
| "shared-additional-words", | ||
| "en_GB", | ||
| "en_US", | ||
| "filetypes", | ||
| "fonts", | ||
| "fullstack", | ||
| "go", | ||
| "google", | ||
| "html", | ||
| "java", | ||
| "k8s", | ||
| "mnemonics", | ||
| "monkeyc_keywords", | ||
| "node", | ||
| "npm", | ||
| "people-names", | ||
| "python", | ||
| "python-common", | ||
| "shell-all-words", | ||
| "softwareTerms", | ||
| "webServices", | ||
| "common-terms", | ||
| "sql", | ||
| "tsql", | ||
| "terraform", | ||
| "typescript" | ||
| ] | ||
| } |
This file contains hidden or 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,78 @@ | ||
| # cspell-specific custom words related to UCP | ||
| Adyen | ||
| Alam | ||
| Amex | ||
| Ant | ||
| Anytown | ||
| Backordered | ||
| Braintree | ||
| Carrefour | ||
| Centricity | ||
| Chewy | ||
| Commerce | ||
| Credentialless | ||
| Depot | ||
| EWALLET | ||
| Etsy | ||
| Flipkart | ||
| Gap | ||
| GitHub | ||
| Gpay | ||
| Kroger | ||
| Lowe's | ||
| Macy's | ||
| Mastercard | ||
| Paymentech | ||
| Paypal | ||
| Preorders | ||
| Queensway | ||
| Sephora | ||
| Shopify | ||
| Shopee | ||
| Stripe | ||
| Target | ||
| UCP | ||
| Ulta | ||
| Visa | ||
| Wayfair | ||
| Worldpay | ||
| Zalando | ||
| adyen | ||
| agentic | ||
| atok | ||
| backorder | ||
| checkout | ||
| credentialless | ||
| credentialization | ||
| datamodel | ||
| dpan | ||
| ewallet | ||
| fontawesome | ||
| fpan | ||
| fulfillable | ||
| gpay | ||
| ingestions | ||
| inlinehilite | ||
| linenums | ||
| llmstxt | ||
| mastercard | ||
| mkdocs | ||
| mtok | ||
| openapi | ||
| openrpc | ||
| paypal | ||
| permissionless | ||
| preorders | ||
| proto | ||
| protobuf | ||
| pymdownx | ||
| renderable | ||
| repudiable | ||
| schemas | ||
| sdjwt | ||
| shopify | ||
| superfences | ||
| vulnz | ||
| yaml | ||
| yml |
This file contains hidden or 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,32 @@ | ||
| name: 🐞 Bug Report | ||
| description: File a bug report | ||
| title: "[Bug]: " | ||
| type: "Bug" | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Thanks for stopping by to let us know something could be better! | ||
| - type: textarea | ||
| id: what-happened | ||
| attributes: | ||
| label: What happened? | ||
| description: Also tell us what you expected to happen and how to reproduce the issue. | ||
| placeholder: Tell us what you see! | ||
| value: "A bug happened!" | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: logs | ||
| attributes: | ||
| label: Relevant log output | ||
| description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
| render: shell | ||
| - type: checkboxes | ||
| id: terms | ||
| attributes: | ||
| label: Code of Conduct | ||
| description: By submitting this issue, you agree to follow our Code of Conduct | ||
| options: | ||
| - label: I agree to follow this project's Code of Conduct | ||
| required: true |
This file contains hidden or 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,40 @@ | ||
| name: 💡 Feature Request | ||
| description: Suggest an idea for this repository | ||
| title: "[Feat]: " | ||
| type: "Feature" | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Thanks for stopping by to let us know something could be better! | ||
| - type: textarea | ||
| id: problem | ||
| attributes: | ||
| label: Is your feature request related to a problem? Please describe. | ||
| description: A clear and concise description of what the problem is. | ||
| placeholder: Ex. I'm always frustrated when [...] | ||
| - type: textarea | ||
| id: describe | ||
| attributes: | ||
| label: Describe the solution you'd like | ||
| description: A clear and concise description of what you want to happen. | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: alternatives | ||
| attributes: | ||
| label: Describe alternatives you've considered | ||
| description: A clear and concise description of any alternative solutions or features you've considered. | ||
| - type: textarea | ||
| id: context | ||
| attributes: | ||
| label: Additional context | ||
| description: Add any other context or screenshots about the feature request here. | ||
| - type: checkboxes | ||
| id: terms | ||
| attributes: | ||
| label: Code of Conduct | ||
| description: By submitting this issue, you agree to follow our Code of Conduct | ||
| options: | ||
| - label: I agree to follow this project's Code of Conduct | ||
| required: true |
This file contains hidden or 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,10 @@ | ||
| { | ||
| "default": true, | ||
| "MD013": false, | ||
| "MD007": { | ||
| "indent": 4 | ||
| }, | ||
| "MD033": false, | ||
| "MD046": false, | ||
| "MD024": false | ||
| } |
This file contains hidden or 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,4 @@ | ||
| rules: | ||
| line-length: | ||
| max: 80 | ||
| level: warning |
This file contains hidden or 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,78 @@ | ||
| <!-- | ||
| Copyright 2026 UCP Authors | ||
|
|
||
| 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. | ||
| --> | ||
|
|
||
| # Description | ||
|
|
||
| Please include a summary of the changes and the related issue. Please also | ||
| include relevant motivation and context. | ||
|
|
||
| ## Type of change | ||
|
|
||
| Please delete options that are not relevant. | ||
|
|
||
| - [ ] Bug fix (non-breaking change which fixes an issue) | ||
| - [ ] New feature (non-breaking change which adds functionality) | ||
| - [ ] **Breaking change** (fix or feature that would cause existing | ||
| functionality to not work as expected, **including removal of schema files | ||
| or fields**) | ||
| - [ ] Documentation update | ||
|
|
||
| --- | ||
|
|
||
| ## Checklist | ||
|
|
||
| - [ ] My code follows the style guidelines of this project | ||
| - [ ] I have performed a self-review of my own code | ||
| - [ ] I have commented my code, particularly in hard-to-understand areas | ||
| - [ ] I have made corresponding changes to the documentation | ||
| - [ ] My changes generate no new warnings | ||
| - [ ] I have added tests that prove my fix is effective or that my feature works | ||
| - [ ] New and existing unit tests pass locally with my changes | ||
| - [ ] Any dependent changes have been merged and published in downstream modules | ||
|
|
||
| --- | ||
|
|
||
| ### Pull Request Title | ||
|
|
||
| This repository enforces | ||
| [**Conventional Commits**](https://www.conventionalcommits.org/). Your PR title | ||
| must follow this format: `type: description` or `type!: description` for | ||
| breaking changes. | ||
|
|
||
| **Types:** | ||
|
|
||
| - `feat`: A new feature | ||
| - `fix`: A bug fix | ||
| - `docs`: Documentation only changes | ||
| - `style`: Changes that do not affect the meaning of the code (white-space, | ||
| formatting, etc) | ||
| - `refactor`: A code change that neither fixes a bug nor adds a feature | ||
| - `perf`: A code change that improves performance | ||
| - `test`: Adding missing tests or correcting existing tests | ||
| - `chore`: Changes to the build process or auxiliary tools and libraries | ||
|
|
||
| **Breaking Changes:** | ||
|
|
||
| If your change is a breaking change (e.g., removing a field or file), you | ||
| **must** add `!` before the colon in your title: | ||
| `type!: description` | ||
|
|
||
| **Examples:** | ||
|
|
||
| - `feat: add new payment gateway` | ||
| - `fix: resolve crash on checkout` | ||
| - `docs: update setup guide` | ||
| - `feat!: remove deprecated buyer field from checkout` |
This file contains hidden or 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,40 @@ | ||
| # Copyright 2026 Google LLC | ||
| # | ||
| # 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. | ||
|
|
||
| name: "Conventional Commits" | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - edited | ||
| - synchronize | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| main: | ||
| permissions: | ||
| pull-requests: read | ||
| statuses: write | ||
| name: Validate PR Title | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: semantic-pull-request | ||
| uses: amannn/action-semantic-pull-request@v6 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| validateSingleCommit: false | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.