-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into 08-01-test_add_dynamic_import
- Loading branch information
Showing
4,507 changed files
with
500,674 additions
and
72,255 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
42 changes: 42 additions & 0 deletions
42
.config/ast-grep/rule-tests/__snapshots__/no-context-snapshot.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
id: no-context | ||
valid: | ||
- 'let chunking_context = ChunkingContext::new();' | ||
- 'struct Foo { chunking_context: Context };' | ||
- 'foo(|chunking_context| context)' | ||
- 'fn foo(chunking_context: ChunkingContext) -> u32 { 5 };' | ||
invalid: | ||
- 'let context = ChunkingContext::new();' | ||
- 'struct Foo { context: Context };' | ||
- 'foo(|context| context)' | ||
- 'fn foo(context: ChunkingContext) -> u32 { 5 };' |
Empty file.
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 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/main/schemas/rule.json | ||
|
||
id: no-context | ||
message: Don't name variables `context`. | ||
note: Use a more specific name, such as chunking_context, asset_context, etc. | ||
severity: error | ||
language: Rust | ||
rule: | ||
regex: \bcontext\b | ||
any: | ||
- all: | ||
- inside: | ||
any: | ||
- kind: closure_parameters | ||
- kind: parameter | ||
- kind: function_item | ||
- kind: let_declaration | ||
- kind: identifier | ||
- all: | ||
- kind: field_identifier | ||
- inside: | ||
kind: field_declaration |
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,17 @@ | ||
[profile.tp-test-linux.junit] | ||
path = "junit.xml" | ||
report-name = "Turbopack tests (Linux)" | ||
store-success-output = true | ||
store-failure-output = true | ||
|
||
[profile.tp-test-mac.junit] | ||
path = "junit.xml" | ||
report-name = "Turbopack tests (Mac)" | ||
store-success-output = true | ||
store-failure-output = true | ||
|
||
[profile.tp-test-win.junit] | ||
path = "junit.xml" | ||
report-name = "Turbopack tests (Windows)" | ||
store-success-output = true | ||
store-failure-output = true |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
- name: Ask a question or discuss a topic | ||
url: https://github.com/vercel/next.js/discussions | ||
about: Ask questions and discuss with other community members. | ||
- name: Feature request | ||
about: Ask questions or discuss with other Next.js users in discussions. | ||
- name: Feature or documentation request | ||
url: https://github.com/vercel/next.js/discussions/new?category=ideas | ||
about: Feature or docs requests should be opened as discussions. | ||
about: Open a feature or documentation request in discussions. | ||
- name: Next.js Learn course | ||
url: https://github.com/vercel/next-learn/issues/new | ||
about: Next.js Learn course-related issues should be reported in their respective repository. | ||
about: Next.js Learn course-related issues should be reported in this repository instead. |
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
.github/actions/next-repo-actions/dist/feature-requests/index.mjs
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.