-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve filtering options for Clippy's lint list #7958
Comments
Possible improvements for the current filters:
Possible new filters:
Example for drop down menu, screenshot taken from https://toggle.com: |
A search only in lint name function would also be nice. (The current string search matches with the lint name and description) |
…msteffen Improve styles of filtering options for Clippy's lint list Particularly solves #7958 Updated styles for filtering options. It now uses dropdown menus. ![image](https://user-images.githubusercontent.com/19844144/144608479-cdd9de0b-f101-4d49-a135-0969efb01a11.png)
…msteffen Improve styles of filtering options for Clippy's lint list Partially solves #7958 Updated styles for filtering options. It now uses dropdown menus. ![image](https://user-images.githubusercontent.com/19844144/144608479-cdd9de0b-f101-4d49-a135-0969efb01a11.png) changelog: none
Would be great to be able to esp. filter on the version the lint was introduced, use that quite frequently to test lints in newer Rust versions. |
I'll give the version filter a shot |
Add version filtering option to the lint list I'm no web dev, so I don't know if this is the best execution 😄. Here's how it looks: ![Desktop](https://user-images.githubusercontent.com/69764315/165403602-9e39fe0f-6a96-46cb-ba51-8b035e74cce4.gif) And on mobile: ![Mobile](https://user-images.githubusercontent.com/69764315/165403908-fc4a0051-2ed4-48a3-b45b-b261f49ce259.png) I've split this into two commits, in the second one I moved the JS into its own file to make it easier to work on. Is that alright? And if so, could the same thing be done to the css? changelog: none cc: #7958, `@repi` r? `@xFrednet`
Add Default to Clippy Lints Lint groups - related to #7958 This PR adds a default (reset) button to Clippy Lints Lint groups. (change for website) [The page](https://rust-lang.github.io/rust-clippy/master/index.html) sets only `Deprecated` to false by default. Certainly it is easy to set only `deprecated` to false, but it may be a bit lazy for beginners. https://user-images.githubusercontent.com/38400669/194831117-3ade7e0d-c4de-4189-9daf-3be8ea3cdd18.mov changelog: none
I'll take a look at the applicability filter |
Clippy's lint list currently allows filtering by lint and group. It would be helpful to add more filters for the applicability and version values which are available. The filter design that is currently used is not set in stone, feel free to experiment a bit and make some design suggestions.
The HTML document of the page can be found under
util/gh-pages/index.html
.cargo dev serve
can be used to test the changes locally. The current lint data representation can be found in thegh-pages
branch hereMain tracking issue #7172
The text was updated successfully, but these errors were encountered: