Skip to content

Commit

Permalink
Merge branch 'main' into don/08-23-refactor_oxlint_move_cli-related_e…
Browse files Browse the repository at this point in the history
…xports_to_cli_module
  • Loading branch information
DonIsaac authored Sep 8, 2024
2 parents 1d1a365 + f49e6eb commit cf33b7a
Show file tree
Hide file tree
Showing 932 changed files with 77,637 additions and 40,705 deletions.
12 changes: 6 additions & 6 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[alias]
# Do not append `--` or it will break IDEs
ck = "check --workspace --all-features --all-targets --locked"
lint = "clippy --workspace --all-targets --all-features"
codecov = "llvm-cov --workspace --ignore-filename-regex tasks"
coverage = "run -p oxc_coverage --profile coverage --"
ck = "check --workspace --all-features --all-targets --locked"
lint = "clippy --workspace --all-targets --all-features"
codecov = "llvm-cov --workspace --ignore-filename-regex tasks"
coverage = "run -p oxc_coverage --profile coverage --"
benchmark = "run -p oxc_benchmark --release --"
minsize = "run -p oxc_minsize --release --"
rule = "run -p rulegen"
minsize = "run -p oxc_minsize --release --"
rule = "run -p rulegen"

# Build oxlint in release mode
oxlint = "build --release --bin oxlint --features allocator"
18 changes: 14 additions & 4 deletions .github/.generated_ast_watch_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@ src:
- 'crates/oxc_syntax/src/operator.rs'
- 'crates/oxc_span/src/span/types.rs'
- 'crates/oxc_span/src/source_type/types.rs'
- 'crates/oxc_ast/src/generated/assert_layouts.rs'
- 'crates/oxc_ast/src/generated/ast_kind.rs'
- 'crates/oxc_ast/src/generated/ast_builder.rs'
- 'crates/oxc_regular_expression/src/ast.rs'
- 'crates/oxc_ast/src/generated/derive_clone_in.rs'
- 'crates/oxc_regular_expression/src/generated/derive_clone_in.rs'
- 'crates/oxc_syntax/src/generated/derive_clone_in.rs'
- 'crates/oxc_ast/src/generated/derive_get_span.rs'
- 'crates/oxc_ast/src/generated/derive_get_span_mut.rs'
- 'crates/oxc_ast/src/generated/derive_content_eq.rs'
- 'crates/oxc_regular_expression/src/generated/derive_content_eq.rs'
- 'crates/oxc_syntax/src/generated/derive_content_eq.rs'
- 'crates/oxc_ast/src/generated/derive_content_hash.rs'
- 'crates/oxc_regular_expression/src/generated/derive_content_hash.rs'
- 'crates/oxc_syntax/src/generated/derive_content_hash.rs'
- 'crates/oxc_ast/src/generated/assert_layouts.rs'
- 'crates/oxc_ast/src/generated/ast_kind.rs'
- 'crates/oxc_ast/src/generated/ast_builder.rs'
- 'crates/oxc_ast/src/generated/visit.rs'
- 'crates/oxc_ast/src/generated/visit_mut.rs'
- 'tasks/ast_codegen/src/**'
- 'tasks/ast_tools/src/**'
- '.github/.generated_ast_watch_list.yml'
25 changes: 12 additions & 13 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -105,7 +105,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand All @@ -117,8 +117,7 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

Expand Down
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: [Boshen]
open_collective: oxc
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ name: Bug report
about: Create a report to help us improve.
title: ''
labels: C-bug

---


3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ name: Feature request
about: Suggest an idea for this project.
title: ''
labels: C-enhancement

---


2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

## Reporting a Vulnerability

If you find any potential vulnerability, join our [discord channel](https://discord.gg/9uXCAwqQZW) and contact Boshen.
If you find any potential vulnerability, join our [discord channel](https://discord.gg/9uXCAwqQZW) and contact Boshen.
12 changes: 8 additions & 4 deletions .github/actions/clone-submodules/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@ runs:
steps:
- uses: actions/checkout@v4
with:
show-progress: false
repository: tc39/test262
path: tasks/coverage/test262
ref: a15874163e6a4f19ee7cd3e47592af382af0f5fd
ref: d62fa93c8f9ce5e687c0bbaa5d2b59670ab2ff60

- uses: actions/checkout@v4
with:
show-progress: false
repository: babel/babel
path: tasks/coverage/babel
ref: 12619ffe5b0777edb0223304da1fdf8770d93e7c
ref: 3bcfee232506a4cebe410f02042fb0f0adeeb0b1

- uses: actions/checkout@v4
with:
show-progress: false
repository: microsoft/TypeScript
path: tasks/coverage/typescript
ref: d8086f14b6b97c0df34a0cc2f56d4b5926a0c299
ref: a709f9899c2a544b6de65a0f2623ecbbe1394eab

- uses: actions/checkout@v4
with:
show-progress: false
repository: prettier/prettier
path: tasks/prettier_conformance/prettier
ref: 7142cf354cce2558f41574f44b967baf11d5b603 # v3.2.5
ref: 52829385bcc4d785e58ae2602c0b098a643523c9 # v3.3.3
15 changes: 15 additions & 0 deletions .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: pnpm

runs:
using: composite
steps:
- uses: pnpm/[email protected]

- uses: actions/setup-node@v4
with:
node-version-file: .node-version
registry-url: "https://registry.npmjs.org"
cache: pnpm

- run: pnpm install --frozen-lockfile
shell: bash
52 changes: 26 additions & 26 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
A-ast:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_ast/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_ast/**"]

A-ast-tools:
- changed-files:
- any-glob-to-any-file: ['tasks/ast_tools/**']
- changed-files:
- any-glob-to-any-file: ["tasks/ast_tools/**"]

A-cfg:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_cfg/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_cfg/**"]

A-cli:
- changed-files:
- any-glob-to-any-file: ['apps/oxlint/**']
- changed-files:
- any-glob-to-any-file: ["apps/oxlint/**"]

A-prettier:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_prettier/**', 'tasks/prettier_conformance/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_prettier/**", "tasks/prettier_conformance/**"]

A-transformer:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_transformer/**', 'tasks/transform_conformance/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_transformer/**", "tasks/transform_conformance/**"]

A-linter:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_linter/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_linter/**"]

A-minifier:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_minifier/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_minifier/**"]

A-parser:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_parser/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_parser/**"]

A-codegen:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_codegen/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_codegen/**"]

A-semantic:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_semantic/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_semantic/**"]

A-type-checking:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_type_synthesis/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_type_synthesis/**"]

A-isolated-declarations:
- changed-files:
- any-glob-to-any-file: ['crates/oxc_isolated_declarations/**']
- changed-files:
- any-glob-to-any-file: ["crates/oxc_isolated_declarations/**"]
14 changes: 0 additions & 14 deletions .github/workflows/auto-labeler.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".

on:
pull_request:
types: [opened, synchronize]
paths-ignore:
- "!.github/workflows/ci.yml"
- "!.github/actions/clone-submodules/action.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: Boshen/setup-rust@main
with:
restore-cache: false
tools: just,cargo-shear@1,dprint
components: rustfmt
- run: just fmt
- uses: autofix-ci/[email protected]
with:
fail-fast: false
Loading

0 comments on commit cf33b7a

Please sign in to comment.