Skip to content

[Merged by Bors] - fix: setOption linter also recognises a bare profiler option#14006

Closed
grunweg wants to merge 4 commits intomasterfrom
MR-fix-setoption
Closed

[Merged by Bors] - fix: setOption linter also recognises a bare profiler option#14006
grunweg wants to merge 4 commits intomasterfrom
MR-fix-setoption

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Jun 20, 2024

Fix a missing edge case in the linter, when an option name
had only one component (as in the profiler option), and add a test.

At the same time, rewrite the linter to use the name API (much nicer!), and perform two small clean-ups to the test file.


Open in Gitpod

grunweg added 3 commits June 20, 2024 22:48
Fix a missing edge case in the linter, when an option name
had only one component (as in the profiler option), and add a test.
@grunweg grunweg added awaiting-review easy < 20s of review time. See the lifecycle page for guidelines. t-linter Linter labels Jun 20, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 20, 2024

PR summary 9ae6c9a02b

Import changes

No significant changes to the import graph


Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>

## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit>

@grunweg grunweg changed the title fix: setOption linter also recognises a bare profiler obtain fix: setOption linter also recognises a bare profiler option Jun 20, 2024
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

I think the string-processing that caused the bug can be skipped entirely?

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 30, 2024

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jun 30, 2024
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jun 30, 2024

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jun 30, 2024
Fix a missing edge case in the linter, when an option name
had only one component (as in the profiler option), and add a test.

At the same time, rewrite the linter to use the `name` API (much nicer!), and perform two small clean-ups to the test file.
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 30, 2024

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@eric-wieser
Copy link
Copy Markdown
Member

Ah whatever, it's already on the queue, no need to cancel it to remove those parens

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 30, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: setOption linter also recognises a bare profiler option [Merged by Bors] - fix: setOption linter also recognises a bare profiler option Jun 30, 2024
@mathlib-bors mathlib-bors bot closed this Jun 30, 2024
@mathlib-bors mathlib-bors bot deleted the MR-fix-setoption branch June 30, 2024 15:36
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jun 30, 2024

Thanks for the review!

dagurtomas pushed a commit that referenced this pull request Jul 2, 2024
Fix a missing edge case in the linter, when an option name
had only one component (as in the profiler option), and add a test.

At the same time, rewrite the linter to use the `name` API (much nicer!), and perform two small clean-ups to the test file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). easy < 20s of review time. See the lifecycle page for guidelines. t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants