Samuel Tardieu
b98252f6ca
Generate lint count in template ( #15414 )
...
Removes the pop-in of the element on page load
changelog: none
2025-08-05 11:49:09 +00:00
Alex Macleod
0ea413fe6b
Generate lint count in template
2025-08-05 11:40:05 +00:00
Alexey Semenyuk
0708b6a1e6
Fix not showing deprecated lints
2025-08-04 19:08:25 +05:00
Alexey Semenyuk
048a64a214
Remove unused option fir LEVEL_FILTERS_DEFAULT
2025-07-19 16:29:16 +05:00
Guillaume Gomez
b1d176235b
Reduce clippy lints page size
2025-07-09 15:27:09 +02:00
Guillaume Gomez
dd1a52f8b6
Simplify clippy lints page further
2025-07-04 13:57:38 +02:00
Samuel Tardieu
d4aed518a5
Do not count deprecated lints in lint total
...
In order to be consistent with our documentation, deprecated lints
should not be counted when displaying the total number of lints on the
[web site](https://rust-lang.github.io/rust-clippy/master/index.html ).
For example, as of 2025-06-01, there are 784 non-deprecated lints which
are referred to as "over 750 lints" in the documentation, but the web site
displays "Total number: 799". When one new lint will be added, there
will be a discrepancy ("over 750 lints" vs. "Total number: 800") if this
is not fixed.
2025-06-01 13:48:51 +02:00
Alexey Semenyuk
8cced0fd6f
Show total count lints
2025-05-26 21:40:25 +05:00
Alex Macleod
33bb8afd08
Fix expand/collapse all on site, make highlightjs lazier
2025-01-30 18:01:05 +00:00
lapla-cogito
e307b2f0c6
fix version search in the website
2025-01-17 18:16:40 +09:00
BD103
4907940a55
fix: various typos
2024-12-05 11:11:15 -05:00
Guillaume Gomez
7115404a97
Open lint when clicking on its anchor
2024-10-23 16:58:06 +02:00
Guillaume Gomez
b33977b852
Fix invalid lint ID filtering
2024-10-22 22:54:29 +02:00
Guillaume Gomez
97d13a8c0a
Fix not working lint anchor
2024-10-22 22:50:17 +02:00
Guillaume Gomez
82969e5c4e
Allow to go through clippy lints page without javascript
2024-10-18 18:03:16 +02:00
Guillaume Gomez
603934336d
Greatly reduce generated HTML page size
2024-10-03 11:17:33 +02:00
Guillaume Gomez
80eb9cfa14
Run syntax highlighting only when needed
2024-10-03 11:12:19 +02:00
Guillaume Gomez
d52b9aa564
Move theme handling JS into its own file to make theme being applied before first rendering
2024-10-03 11:12:19 +02:00
Guillaume Gomez
47f40d468a
Improve rendering speed by moving settings generation after theme rendering
2024-10-03 11:12:19 +02:00
Guillaume Gomez
e0b0851ba8
Support version filter URL parameters
2024-10-03 11:12:19 +02:00
Guillaume Gomez
4bb4cc6fcb
Add support for URL arguments
2024-10-03 11:12:19 +02:00
Guillaume Gomez
00c11df107
Add support for version filtering
2024-10-03 11:12:19 +02:00
Guillaume Gomez
59ccebe426
Support all filters except versions
2024-10-03 11:12:19 +02:00
Guillaume Gomez
aeb548a4f7
Put back interactions with settings menus
2024-10-03 11:12:11 +02:00
Guillaume Gomez
f2193c680c
Completely remove angular and generate parts of settings in JS
2024-09-22 22:30:45 +02:00
Guillaume Gomez
574e3dd922
Finish porting lint functionalities to vanilla JS
2024-09-22 22:30:45 +02:00
Guillaume Gomez
0055cebaa3
Replace search with vanilla JS
2024-09-22 22:30:45 +02:00
Guillaume Gomez
b522e7a944
Generate lint list in HTML directly instead of JS
2024-09-22 22:30:44 +02:00
Alex Macleod
182cd5f278
Replace the metadata collector with tests
2024-08-12 20:24:46 +00:00
Guillaume Gomez
2ae6a4954b
Move themes directly into HTML
2024-08-11 19:44:18 +02:00
Guillaume Gomez
934e98d591
Unify theme and settings menus
2024-08-11 19:39:19 +02:00
Guillaume Gomez
7c5209121d
Add new settings menu
2024-07-30 17:31:42 +02:00
bors
accf6868ee
Auto merge of #13178 - GuillaumeGomez:clippy-lints-page-improvement, r=Alexendoo
...
Add possibility to focus on search input using keyboard
This PR adds the possibility to focus on the search input with `S` or `/` like in rustdoc and `mdbook` and `docs.rs` (unification++). Pressing escape will blur it.
r? `@Alexendoo`
changelog: Add possibility to focus on search input using keyboard
2024-07-29 19:58:12 +00:00
Guillaume Gomez
63174792c2
Add possibility to focus on search input using keyboard
2024-07-29 21:55:36 +02:00
Guillaume Gomez
957a301083
Clean up clippy lints page JS source code
2024-07-29 16:49:56 +02:00
Spencer Will
d5e1acae82
Add Expand All and Collapse All
2024-07-11 21:58:47 +02:00
bors
bd75e44f6e
Auto merge of #12655 - SpencerAWill:Add-applicability-filter, r=xFrednet
...
Add applicability filter to lint list page
changelog: Add applicability filter to lint list website.
Fixes #7958
Desktop view:

Mobile view:

2024-06-18 09:25:16 +00:00
alexey semenyuk
3f9c5872b9
Filter from first typed symbol
2024-06-09 17:37:05 +05:00
Roddy Rappaport
1c9bf96b96
Fix website dash replacement #12718
...
Searching for a lint on the website will replace all of the dashes with
underscores instead of only the first one.
2024-04-26 21:58:08 +03:00
forcedebug
d55e5b4500
chore: fix some typos in comments
...
Signed-off-by: forcedebug <forcedebug@outlook.com>
2024-04-23 20:31:26 +08:00
Spencer Will
c8a7e6e5e6
Remove debug helper.
...
Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
2024-04-11 17:27:55 -04:00
Spencer Will
e4ce248af4
Complete filter functionality. Formatted upper filters to take more visual column space. Force filter wrapping with flex for small screens.
2024-04-09 15:00:12 -04:00
Spencer Will
0b43e03ca9
Add applicability visually
2024-04-04 20:02:42 -04:00
Brian Hetro
ac279efdbc
Clippy Lints page - Do not show filters in URL if configured as default values
2023-06-03 00:04:19 -04:00
Brian Hetro
2e4ef8e72c
Clippy Lints page - Fix path watch triggering
2023-06-02 22:57:21 -04:00
Brian Hetro
f2e6a99a08
Clippy Lints page - Do not show groups in URL parameters if reset to defaults
2023-05-27 18:50:04 -04:00
Brian Hetro
a865d8432c
Clippy Lints page - Delay updating of the URL in response to search input
...
Update on blur, enter keypress, and a debounced delay of 1000 ms.
This keeps the URL updated, but not distractingly so.
2023-05-27 15:01:28 -04:00
Brian Hetro
7c1bca4be8
Handle back/forward when using URL parameters for filter states
2023-05-26 20:24:29 -04:00
Brian Hetro
5be2b27ed6
Use URL parameters for filter states
...
This retains the settings during browser navigation and allows sharing links with additional configuration.
2023-05-26 17:18:09 -04:00
unvalley
178799f9c1
fix: change command order and remove waste condition
2022-10-10 18:00:15 +09:00