Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Merge branch 'refactor/comments-formatting' into refactor/js-comments…
Browse files Browse the repository at this point in the history
…-formatting
  • Loading branch information
MichaReiser committed Sep 20, 2022
2 parents ef9db3e + e546273 commit 1837c70
Show file tree
Hide file tree
Showing 119 changed files with 7,903 additions and 867 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ bench_analyzer = "run -p xtask_bench --release -- --feature analyzer"
coverage = "run -p xtask_coverage --profile=release-with-debug --"
rome-cli = "run -p rome_cli --release --"
rome-cli-dev = "run -p rome_cli --"
contributors = "run -p xtask_contributors --"

[profile.release]
lto = true
29 changes: 29 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"xtask/coverage",
"xtask/lintdoc",
"xtask/libs_bench",
"xtask/contributors",
]

[profile.release-with-debug]
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_formatter/src/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl<L: Language> DecoratedComment<L> {
self.following.take()
}

/// The number of lines between this comment and the **previous** token or comment.
/// The number of line breaks between this comment and the **previous** token or comment.
///
/// # Examples
///
Expand Down
3 changes: 1 addition & 2 deletions crates/rome_js_analyze/src/analyzers/correctness.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/rome_js_analyze/src/analyzers/nursery.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ declare_rule! {
pub(crate) UseOptionalChain {
version: "0.10.0",
name: "useOptionalChain",
recommended: true,
recommended: false,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ foo && foo[typeof bar] && foo[typeof bar].baz;

# Diagnostics
```
warning[correctness/useOptionalChain]: Change to an optional chain.
warning[nursery/useOptionalChain]: Change to an optional chain.
┌─ complexLogicalAndCases.ts:2:1
2 │ foo && foo[bar as string] && foo[bar as string].baz;
Expand All @@ -31,7 +31,7 @@ Suggested fix: Change to an optional chain.
```

```
warning[correctness/useOptionalChain]: Change to an optional chain.
warning[nursery/useOptionalChain]: Change to an optional chain.
┌─ complexLogicalAndCases.ts:3:1
3 │ foo && foo[1 + 2] && foo[1 + 2].baz;
Expand All @@ -49,7 +49,7 @@ Suggested fix: Change to an optional chain.
```

```
warning[correctness/useOptionalChain]: Change to an optional chain.
warning[nursery/useOptionalChain]: Change to an optional chain.
┌─ complexLogicalAndCases.ts:4:1
4 │ foo && foo[typeof bar] && foo[typeof bar].baz;
Expand Down
Loading

0 comments on commit 1837c70

Please sign in to comment.