Skip to content
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

chore: update next README.md #4865

Closed
wants to merge 95 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
36b4b1c
feat: remove support for rome-ignore (#4252)
ematipico Oct 11, 2024
0425b90
feat: remove `--apply` and `--apply-unsafe` (#4268)
ematipico Oct 13, 2024
72ef826
fix: reduce accepted values for options (#4271)
ematipico Oct 14, 2024
1accca5
feat: remove `trailingComma` option (#4266)
ematipico Oct 14, 2024
1be9494
feat: remove `--indent-size` (#4270)
ematipico Oct 14, 2024
17ff3f6
feat: remove environment variable `BIOME_LOG_DIR` (#4289)
ematipico Oct 14, 2024
8e950b6
refactor: remove dead code (#4291)
Conaclos Oct 14, 2024
82ef3ce
feat: rename biome_rowan methods (#4297)
ematipico Oct 14, 2024
b0bf177
fix: use new methods
ematipico Oct 18, 2024
8b129ea
feat: plugin loader (#4234)
arendjr Oct 19, 2024
63eece0
update snapshots
ematipico Oct 21, 2024
9733e34
chore: update other snapshots
ematipico Oct 21, 2024
0680ba5
feat(analyzer): top level suppression (#4306)
ematipico Oct 21, 2024
d912491
chore: normalize Windows paths in plugin tests (#4362)
arendjr Oct 21, 2024
6a8ad85
feat(parser/js): remove assert syntax (#4360)
ematipico Oct 22, 2024
889cd5e
refactor(biome_deserialize): add deserilization context (#4166)
Conaclos Oct 22, 2024
57c64b4
chore: fix merge issues
ematipico Oct 23, 2024
74eaf89
feat: useExhaustiveDependencies not recommended (#4294)
ematipico Oct 23, 2024
da6d229
refactor(parser/js): rename import assertions to import attributes (#…
dyc3 Oct 25, 2024
d469189
feat(workspace): make types camel case (#4368)
ematipico Oct 25, 2024
b2ca29e
chore: update code and diagnostics (#4397)
ematipico Oct 27, 2024
bb66d05
refactor(biome_deserialize): add `indexmap` Cargo feature and remove …
Conaclos Oct 27, 2024
b5b6caa
feat(linter): analyzer plugin (#4396)
arendjr Oct 29, 2024
e955488
feat(grit): support `until` clause in `within` patterns (#4399)
arendjr Oct 29, 2024
3a28618
fix regressions
ematipico Oct 31, 2024
8c6e9b4
ci: fix errors and update snapshots (#4441)
Conaclos Oct 31, 2024
59f7e10
refactor: reduce dependency on indexmap (#4439)
Conaclos Nov 1, 2024
63201a9
feat(grit): support Grit queries targeting CSS (#4444)
arendjr Nov 1, 2024
7f0bb2a
feat(grit): implement CSS plugins (#4448)
arendjr Nov 2, 2024
3936022
feat(cli): change how behaves with large files (#4474)
ematipico Nov 6, 2024
00ddf2a
chore: fix merge conflicts
ematipico Nov 7, 2024
0d75b28
refactor: drop `DynRef` and move `fs` into `Workspace` (#4493)
arendjr Nov 11, 2024
39edbf2
refactor: move `useImportRestrictions` into `noRestrictedImports` (#4…
arendjr Nov 11, 2024
f281e8a
feat: better assist (#4508)
ematipico Nov 12, 2024
381aefd
refactor: use `biome-ignore-all` for top level suppressions (#4548)
ematipico Nov 18, 2024
0466823
chore: fix tests
ematipico Nov 18, 2024
ab5f0cd
refactor(analyzer): severity in metadata (#4634)
ematipico Nov 26, 2024
36ce68e
chore: fix incorrect rebase with `main`
ematipico Nov 27, 2024
b9d6bd1
rules check seems to not work anymore
ematipico Nov 27, 2024
aa9582f
fix test regression
ematipico Nov 27, 2024
7e13636
chore: add missing snapshot tests
ematipico Nov 28, 2024
f6009f0
fix options inside rules check
ematipico Nov 28, 2024
d8f91ba
chore: extract `noPackagePrivateImports` rule (#4651)
arendjr Nov 28, 2024
e5e83bb
fix warnings
ematipico Nov 28, 2024
4dd23c5
fix regressions around formatting
ematipico Nov 28, 2024
0bb9768
fix regression in parsing tests
ematipico Nov 28, 2024
f1973f8
docs: how to write a changeset (#4654)
ematipico Nov 29, 2024
c1b2e7b
feat(linter): rule `noTsIgnore` (#4650)
ematipico Nov 29, 2024
ad84856
refactor: use `papaya` instead of DashMap for workspace documents (#4…
arendjr Nov 29, 2024
7fc5346
feat(analyzer): range suppressions (#4649)
ematipico Dec 1, 2024
d2016ae
chore: use `papaya` in `PathInterner` (#4669)
arendjr Dec 1, 2024
55acffe
refactor: remove the `all` option (#4664)
ematipico Dec 3, 2024
3c1c017
refactor: get rule severity from metadata severity (#4687)
ematipico Dec 4, 2024
f5ba162
refactor: add `Workspace` scanner (#4682)
arendjr Dec 5, 2024
3914be8
chore: drop `slotmap` and simplify locking (#4696)
arendjr Dec 5, 2024
21ef4aa
feat(parser): better control on JSX parsing (#4718)
ematipico Dec 12, 2024
0a9d85a
feat(linter): domains and deps (#4713)
ematipico Dec 12, 2024
a478377
refactor: style recommendation and new recommended severity (#4730)
ematipico Dec 13, 2024
54ad2a3
fix(analyzer): don't use organize imports implicitly (#4724)
ematipico Dec 13, 2024
e77fb9d
refactor: protect scanned files against closing by LSP (#4735)
arendjr Dec 15, 2024
5c3e3e1
feat(lint): add `noUnwantedPolyfillio` (#4731)
unvalley Dec 17, 2024
8c73d11
Merge remote-tracking branch 'origin/main' into next
ematipico Dec 17, 2024
632e705
fix rebase
ematipico Dec 17, 2024
7d535da
refactor: track too large files inside workspace server (#4738)
arendjr Dec 17, 2024
21a6b2d
fix regression where some code was removed during merge
ematipico Dec 19, 2024
956b186
Merge remote-tracking branch 'origin/main' into next
ematipico Dec 19, 2024
ead17ca
more fixes!
ematipico Dec 19, 2024
d1ed7ae
update snapshot
ematipico Dec 19, 2024
a451b31
fix rule name
ematipico Dec 19, 2024
0590fe0
update snapshots
ematipico Dec 19, 2024
8d1062f
fix(json): treat `tsconfig.*.json` files as well known, allow comment…
dyc3 Dec 21, 2024
258f33f
perf: use `AppendOnlyVec` for `file_sources` (#4772)
arendjr Dec 21, 2024
9568041
feat: add migration for styling rules (#4759)
ematipico Dec 22, 2024
1907096
refactor: remove deprecated rules (#4766)
ematipico Dec 22, 2024
4f4cafb
feat: move `useWhile` to `complexity` (#4777)
ematipico Dec 23, 2024
93d1e23
refactor: remove `organizeImports` (#4788)
ematipico Dec 26, 2024
3704321
refactor: use camino for paths (#4797)
ematipico Dec 27, 2024
67df8b2
feat(html): plumbing for new HTML options, make `bracket_same_line` g…
dyc3 Dec 28, 2024
164dc85
refactor: cargo features (#4801)
ematipico Dec 29, 2024
f342128
feat(cli): better header in diagnostics (#4814)
ematipico Dec 30, 2024
f86999d
refactor(formatter): no trailing commas in JSON files (#4803)
ematipico Jan 1, 2025
562b249
Merge branch 'main' into next
ematipico Jan 2, 2025
3240f3d
chore: remove schema tests, to avoid future failings
ematipico Jan 2, 2025
d3b7b2d
refactor: resolve paths and globs from the configuration path (#4823)
ematipico Jan 2, 2025
17cf8f7
feat: add GritQL formatting options (#4824)
ematipico Jan 2, 2025
78c8910
feat(formatter): add `expand` (#4819)
ematipico Jan 3, 2025
2fee2a8
feat(html): set up HTML configuration (#4831)
dyc3 Jan 5, 2025
37296a2
refactor: drop "current" project from workspace and cleanup workspace…
arendjr Jan 6, 2025
24c8256
feat(format/html): implement whitespace sensitivity (#4818)
dyc3 Jan 6, 2025
262caf8
refactor(formatter): don't allocate strings, and use try operator ear…
ematipico Jan 7, 2025
01044aa
refactor: initial project layout (#4846)
arendjr Jan 7, 2025
2ae40a7
refactor: expose ProjectLayout as service (#4851)
arendjr Jan 8, 2025
dac3882
refactor: remove `ROME_BINARY` (#4853)
SuperchupuDev Jan 8, 2025
bb065c4
refactor(core): configuration, settings and capabilities (#4845)
ematipico Jan 8, 2025
e0bc388
chore: update `next` README.md
ematipico Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(analyzer): range suppressions (#4649)
Co-authored-by: Arend van Beelen jr <arendjr@gmail.com>
ematipico and arendjr authored Dec 1, 2024
commit 7fc534642c74364e5a62def489909a8d4b00d71f
1 change: 1 addition & 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 crates/biome_analyze/Cargo.toml
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ biome_parser = { workspace = true }
biome_rowan = { workspace = true }
biome_suppression = { workspace = true }
enumflags2 = { workspace = true }
indexmap = { workspace = true }
rustc-hash = { workspace = true }
schemars = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"], optional = true }
19 changes: 12 additions & 7 deletions crates/biome_analyze/src/diagnostics.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use biome_console::{markup, MarkupBuf};
use biome_diagnostics::{
advice::CodeSuggestionAdvice, category, Advices, Category, Diagnostic, DiagnosticExt,
DiagnosticTags, Error, Location, LogCategory, Severity, Visit,
DiagnosticTags, Error, Location, LogCategory, MessageAndDescription, Severity, Visit,
};
use biome_rowan::TextRange;
use std::borrow::Cow;
use std::fmt::{Debug, Display, Formatter};
use std::fmt::{Debug, Formatter};

use crate::rule::RuleDiagnostic;

@@ -148,7 +148,7 @@ pub struct AnalyzerSuppressionDiagnostic {
range: TextRange,
#[message]
#[description]
message: String,
message: MessageAndDescription,
#[tags]
tags: DiagnosticTags,

@@ -160,26 +160,31 @@ impl AnalyzerSuppressionDiagnostic {
pub(crate) fn new(
category: &'static Category,
range: TextRange,
message: impl Display,
message: impl biome_console::fmt::Display,
) -> Self {
Self {
category,
range,
message: message.to_string(),
message: MessageAndDescription::from(markup! { {message} }.to_owned()),
tags: DiagnosticTags::empty(),
advice: SuppressionAdvice::default(),
}
}

pub(crate) fn note(mut self, message: MarkupBuf, range: impl Into<TextRange>) -> Self {
self.advice.messages.push((message, range.into()));
self.advice.messages.push((message, Some(range.into())));
self
}

pub(crate) fn hint(mut self, message: MarkupBuf) -> Self {
self.advice.messages.push((message, None));
self
}
}

#[derive(Debug, Default, Clone)]
struct SuppressionAdvice {
messages: Vec<(MarkupBuf, TextRange)>,
messages: Vec<(MarkupBuf, Option<TextRange>)>,
}

impl Advices for SuppressionAdvice {
Loading