Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into conaclos/js-sematic/b…
Browse files Browse the repository at this point in the history
…inding-index-refactor
  • Loading branch information
ematipico committed Feb 6, 2024
2 parents e44ac2d + 5fa1fa4 commit 24ee787
Show file tree
Hide file tree
Showing 4,790 changed files with 337,894 additions and 75,947 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
58 changes: 2 additions & 56 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[alias]
bench_analyzer = "run -p xtask_bench --release -- --feature analyzer"
bench_formatter = "run -p xtask_bench --release -- --feature formatter"
bench_parser = "run -p xtask_bench --release -- --feature parser"
biome-cli = "run -p biome_cli --release --"
biome-cli-dev = "run -p biome_cli --"
codegen = "run -p xtask_codegen --"
codegen-bindings = "run -p xtask_codegen --features schema -- bindings"
codegen-configuration = "run -p xtask_codegen --features configuration -- configuration"
codegen-license = "run -p xtask_codegen --features license -- license"
codegen-schema = "run -p xtask_codegen --features schema -- schema"
codegen-website = "run -p xtask_codegen --features website -- website"
contributors = "run -p xtask_contributors --"
Expand All @@ -32,60 +30,8 @@ documentation = """
--no-deps
"""
format = "fmt --all --verbose"
lint = "clippy --workspace --all-targets --verbose -- --deny warnings"
lint = "clippy --workspace --all-targets -- --deny warnings"
lintdoc = "run -p xtask_lintdoc --"

[target.'cfg(all())']
rustflags = [
# CLIPPY LINT SETTINGS
# This is a workaround to configure lints for the entire workspace.
# See: `https://github.com/rust-lang/cargo/issues/5034`

"-Wclippy::cargo",
"-Aclippy::cargo_common_metadata",
"-Aclippy::multiple_crate_versions",

# pedantic
"-Wclippy::dbg_macro",
"-Wclippy::checked_conversions",
"-Wclippy::cloned_instead_of_copied",
"-Wclippy::copy_iterator",
"-Wclippy::empty_enum",
"-Wclippy::expl_impl_clone_on_copy",
"-Wclippy::explicit_into_iter_loop",
"-Wclippy::fn_params_excessive_bools",
"-Wclippy::filter_map_next",
"-Wclippy::flat_map_option",
"-Wclippy::from_iter_instead_of_collect",
"-Wclippy::implicit_clone",
"-Wclippy::implicit_hasher",
"-Wclippy::index_refutable_slice",
"-Wclippy::inefficient_to_string",
"-Wclippy::invalid_upcast_comparisons",
"-Wclippy::iter_not_returning_iterator",
"-Wclippy::large_stack_arrays",
"-Wclippy::large_types_passed_by_value",
"-Wclippy::macro_use_imports",
"-Wclippy::manual_ok_or",
"-Wclippy::manual_string_new",
"-Wclippy::mismatching_type_param_order",
"-Wclippy::mut_mut",
"-Wclippy::naive_bytecount",
"-Wclippy::needless_bitwise_bool",
"-Wclippy::needless_continue",
"-Wclippy::needless_for_each",
"-Wclippy::no_effect_underscore_binding",
"-Wclippy::ref_binding_to_reference",
"-Wclippy::ref_option_ref",
"-Wclippy::stable_sort_primitive",
"-Wclippy::unnecessary_box_returns",
"-Wclippy::unnecessary_box_returns",
"-Wclippy::unnecessary_join",
"-Wclippy::unnested_or_patterns",
"-Wclippy::verbose_bit_mask",
"-Wclippy::unreadable_literal",
"-Wclippy::zero_sized_map_values",
]

[profile.release]
lto = true
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* text=auto eol=lf
crates/biome_js_unicode_table/src/tables.rs linguist-generated=true text=auto eol=lf
crates/biome_unicode_table/src/tables.rs linguist-generated=true text=auto eol=lf
**/generated/* linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/analyzers.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/assists.rs linguist-generated=true text=auto eol=lf
Expand All @@ -13,11 +13,12 @@ packages/@biomejs/backend-jsonrpc/src/workspace.ts linguist-generated=true text=
website/src/pages/lint/rules/**/*.md linguist-generated=true text=auto eol=lf
website/src/components/generated/.astro linguist-generated=true text=auto eol=lf
packages/@biomejs/biome/configuration_schema.json linguist-generated=true text=auto eol=lf
editors/vscode/configuration_schema.json linguist-generated=true text=auto eol=lf
crates/biome_service/src/configuration/parse/json/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_js_formatter/tests/**/*.ts.prettier-snap linguist-language=TypeScript
crates/biome_js_formatter/tests/**/*.js.prettier-snap linguist-language=JavaScript
crates/biome_js_formatter/tests/**/*.ts.snap linguist-language=Markdown
crates/biome_js_formatter/tests/**/*.js.snap linguist-language=Markdown
crates/biome_cli/tests/**/*.snap linguist-language=Markdown
crates/biome_js_analyze/tests/specs/**/*.snap linguist-language=Markdown
crates/biome_css_formatter/tests/**/*.css.prettier-snap linguist-language=CSS
crates/biome_css_formatter/tests/**/*.css.snap linguist-language=Markdown
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/website/src/content/docs/ja/ @biomejs/japanese-translation-reviewers
/website/.textlintrc.json @biomejs/japanese-translation-reviewers
/website/prh.yml @biomejs/japanese-translation-reviewers
/.github/workflows/ja-translation.yaml @biomejs/japanese-translation-reviewers
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github: [biomejs]
open_collective: biome
custom: ["https://polar.sh/biomejs"]
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/01_formatter_bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: 📝 Formatter bug report
description: Report a bug or regression of the formatter
title: "📝 <TITLE>"
labels: ["S-To triage"]
body:
- type: markdown
attributes:
value: Thank you for submitting the bug! We'll try to triage it ASAP!
- type: markdown
attributes:
value: |
Bug reports that don't follow this template will be closed.
Please provide a clear and concise description of what the bug is.
- type: textarea
id: environment
attributes:
label: Environment information
description: Run the command `biome rage` and paste its output here. Please review it, in case there are sensitive information you don't want to share.
render: bash
validations:
required: true
- type: textarea
id: configuration
attributes:
label: Configuration
description: Share the contents of you `biome.json` file
render: JSON
placeholder: |
{
"formatter": {},
"javascript": {
"formatter": {}
}
}
validations:
required: false
- type: input
id: playground-link
attributes:
label: Playground link
description: |
Provide a detailed list of steps that reproduce the issue
The more information and included steps, the quicker your report can be triaged and addressed!
You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.
This is useful to reproduce the issue.
If you can't use the playground, use our official [CBS template](https://codesandbox.io/p/sandbox/biome-starter-cbs-rky6zq).
Fork it and share a reproduction.
placeholder: https://biomejs.dev/playground/...
validations:
required: true
- type: checkboxes
id: coc
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow Biome's Code of Conduct
required: true
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/02_lint_bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: 💅 Linter bug report
description: Report a bug or regression of the linter
title: "💅 <TITLE>"
labels: ["S-To triage"]
body:
- type: markdown
attributes:
value: Thank you for submitting the bug! We'll try to triage it ASAP!
- type: markdown
attributes:
value: |
Bug reports that don't follow this template will be closed.
Please provide a clear and concise description of what the bug is.
- type: textarea
id: environment
attributes:
label: Environment information
description: Run the command `biome rage` and paste its output here. Please review it, in case there are sensitive information you don't want to share.
render: bash
validations:
required: true
- type: input
id: rule-name
attributes:
label: Rule name
description: The name of the rule
validations:
required: true
- type: input
id: playground-link
attributes:
label: Playground link
description: |
Provide a detailed list of steps that reproduce the issue
The more information and included steps, the quicker your report can be triaged and addressed!
You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.
This is useful to reproduce the issue.
If you can't use the playground, use our official [CBS template](https://codesandbox.io/p/sandbox/biome-starter-cbs-rky6zq).
Fork it and share a reproduction.
placeholder: https://biomejs.dev/playground/...
validations:
required: true
- type: textarea
id: expected-result
attributes:
label: Expected result
description: Describe what you expected to happen.
placeholder: It should not throw an error.
validations:
required: true
- type: checkboxes
id: coc
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow Biome's Code of Conduct
required: true
File renamed without changes.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/04_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 📚 Documentation issue
description: Report a possible issue in the documentation
title: "📚 <TITLE>"
labels: ["S-To triage", "A-Documentation"]
body:
- type: markdown
attributes:
value: Thank you for submitting this issue! We'll try to triage it ASAP!
- type: markdown
attributes:
value: |
Documentation issue reports that don't follow this template will be closed.
Please provide a clear and concise description of what the issue is.
- type: input
id: url
attributes:
label: Documentation URL
description: Provide the URL of the documentation page where you found the issue.
placeholder: https://biomejs.dev/guides/getting-started/
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: |
Provide a detailed description of the issue.
validations:
required: true
- type: textarea
id: expectations
attributes:
label: Expectations
description: Describe what you expected to see.
validations:
required: true
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow Biome's Code of Conduct
required: true
File renamed without changes.
File renamed without changes.
10 changes: 7 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: ✅ Linter rule requests
url: https://github.com/biomejs/biome/discussions/3
about: Please add a comment to the discussion named "Linter rules from other sources"
- name: 💡 Feature requests
url: https://github.com/biomejs/biome/discussions/new
about: Please use a new Github discussion to propose ideas of feature requests
- name: 🗣️ Chat
url: https://discord.gg/BypW39g6Yc
about: Our Discord server is active and is used for real-time discussions including contribution collaboration, questions, and more!
Expand All @@ -9,6 +15,4 @@ contact_links:
- name: 🆘 Code of Conduct Reports
url: https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct
about: Please use the contact information in Code of Conduct as issues created here are public
- name: 💡 Feature requests
url: https://github.com/biomejs/biome/discussions/new
about: Please use a new Github discussion to propose ideas of feature requests

14 changes: 14 additions & 0 deletions .github/documentation-issue-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Automatically add language labels to documentation issues that provide a link
# to the documentation page by extracting the language from the given URL. When
# adding a new language, make sure to add the corresponding language code to the
# negative lookahead in the english regex, so that it doesn't match the english
# documentation URL.

'Lang-Chinese':
- 'https://biomejs.dev/zh-cn/'
'Lang-English':
- 'https://biomejs.dev/(?!(zh-cn|ja|pt-br))'
'Lang-Japanese':
- 'https://biomejs.dev/ja/'
'Lang-Portuguese':
- 'https://biomejs.dev/pt-br/'
1 change: 1 addition & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ A-Diagnostic:

A-Tooling:
- xtask/**
- crates/biome_ungrammar/**

A-Website:
- website/**
Expand Down
79 changes: 0 additions & 79 deletions .github/workflows/bench_analyzer.yml

This file was deleted.

Loading

0 comments on commit 24ee787

Please sign in to comment.