Serial
4ed52bf13e
Use CamelCase; Fix filter ranges
2022-05-05 18:27:56 -04:00
Serial
dd7bc86f22
Change input placeholder
2022-05-04 20:43:08 -04:00
Serial
2c70af3cd5
Only require minor version
2022-05-03 18:12:31 -04:00
Serial
9173780568
Make filters implicit; Update symbols
2022-04-29 19:57:16 -04:00
Serial
06cc1abbb1
Move js out to its own file
2022-04-26 18:22:37 -04:00
Serial
bdc8961659
Add version filtering option to the lint list
2022-04-26 18:21:22 -04:00
flip1995
d1b087fdee
Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup
2022-03-14 12:02:53 +01:00
bors
8ae74da63b
Auto merge of #8070 - CrazyRoka:update-gh-pages-checkbox-styles, r=camsteffen
...
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
2022-03-10 03:08:34 +00:00
flip1995
bf66aeda0a
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
2022-01-27 15:12:45 +01:00
Rob Ede
a8e1352d78
Autofocus search input
2022-01-25 00:15:11 +00:00
flip1995
ddad101b8a
Merge commit '8d14c94b5c0a66241b4244f1c60ac5859cec1d97' into clippyup
2022-01-17 13:29:07 +01:00
Andrew Archibald
65c072d7e6
Update markdown-it version
2022-01-13 20:01:56 -07:00
CrazyRoka
296af08b3c
Removed unused styles and labels in dropdowns
2021-12-16 19:01:31 +02:00
CrazyRoka
4161a67c1b
Added dropdown directive to theme-selector
2021-12-16 18:57:59 +02:00
CrazyRoka
bb531320eb
Improved performance by adding ng-if
2021-12-16 18:57:59 +02:00
CrazyRoka
dcfb756b97
Fixed overlapping "Fork me" logo
2021-12-16 18:57:59 +02:00
CrazyRoka
76e95e28c2
Fixed theme selector and repositioned search input
2021-12-16 18:57:59 +02:00
CrazyRoka
e895d2b52a
Fixed error in Firefox and selected button style
2021-12-16 18:57:59 +02:00
CrazyRoka
f71039ae69
Fixed styles on all themes
2021-12-16 18:57:59 +02:00
CrazyRoka
cb113d3a41
Updated badge
2021-12-16 18:57:59 +02:00
CrazyRoka
0f655db00d
Added badge to display selected elemenets count
2021-12-16 18:57:59 +02:00
CrazyRoka
a71f1997d8
Updated styles for checkboxes
2021-12-16 18:57:59 +02:00
flip1995
8fea1d94f3
Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup
2021-12-06 12:33:31 +01:00
xFrednet
17b747857f
Add margin after lists on Clippy's lint list
2021-12-03 20:24:23 +01:00
xFrednet
8c45fd88d0
New internal lint to make clippy::version
attribute mandatory
2021-11-11 13:03:30 +01:00
xFrednet
d68408f4ad
Updated version label and style on Clippy's lint list
2021-11-10 19:48:32 +01:00
xFrednet
8565fc468e
Add clippy version to Clippy's lint list
2021-11-10 19:48:30 +01:00
flip1995
5cf4984872
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
2021-10-07 11:21:30 +02:00
Michael Wright
6035e050e8
Add includes to pre-commit hook
2021-09-29 05:46:43 +02:00
flip1995
2b20f49841
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
2021-07-29 12:16:06 +02:00
Philipp Krones
bcdf147aaf
Rollup merge of #7298 - flip1995:ci-switch-to-monster, r=xFrednet,flip1995
...
Switch CI to new metadata collection
r? `@xFrednet`
Things we have to keep in mind:
- This removes the template files and the scripts used for deployment from the checkout. This was added in #5517 . I don't think we ever needed those there. Not sure though.
- ~~As a result, we can't remove the python scripts yet. We have to wait until this hits a stable Clippy release.~~ I'll just break the next stable deploy and do it by hand once.
- This should be merged together with #7279 . Me and `@xFrednet` will coordinate the switch
- ...?
I still have to try out some things:
- [x] Is it worth caching? Yes
- [x] ~~Is it worth to do a release build?~~ Nope
- [x] Does it actually work? With a few changes, yes
- [ ] ...?
changelog: Clippy now uses a lint to generate its documentation 🎉
2021-07-28 15:06:26 +02:00
xFrednet
322a768c77
Adapting the lint list to Clippy's new metadata format
...
Changes included:
- Minimum adaption to the new `lints.json` format
- Fixing filtering for the new `lints.json` format; hardcoding the
lint groups in the index
- Recreating the original doc styling for the new format
- Fixed sytax highlighting for rust,ignore code blocks
- Fixed markdown table extraction in the metadata collector and
fixed lint level output
- Adding the additional information row for lints
- Changed the website title to Clippy's lint list
- Flexing the website for mobile users
- Added (?) references for lint levels and groups
- Making deprecated lints look dead
- Removed JS code block language extraction in favor of a rust
implementation `rust-clippy#7352`
- Added the suspicious lint group to the lint list
- Remove trailing whitespaces from index.html
- Fix code highlighting
- Use default value if the docVersion is empty
Co-authored-by: Philipp Krones <hello@philkrones.com>
2021-07-28 15:03:55 +02:00
flip1995
fe25282aaa
Remove old python lint doc generation scripts
2021-07-28 14:18:40 +02:00
flip1995
ebe52869a3
Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' into clippyup
2021-07-01 18:17:38 +02:00
flip1995
a82a744155
Merge remote-tracking branch 'upstream/master' into rustup
2021-07-01 17:41:24 +02:00
bors
f4bc9cf390
Auto merge of #7409 - xFrednet:5394-vs-code-tasks, r=giraffate,flip1995
...
Added `cargo dev setup vscode-tasks` for simplicity
This PR adds a setup command to `clippy dev` that installs tasks into the Clippy vscode workspace. These might be useful as they be used via shortcuts and are accessible over the GUI. The available tasks are:
* `cargo check` (standard Linux shortcut `[ctrl] + [shift] + b`)
* `cargo dev fmt`
* `cargo uitest` (with a comment how to add the `TESTNAME` environment value)
* `cargo test`
* `cargo dev bless`
---
changelog: none
only internal changes again. cc #5394
r? `@flip1995` This should be pretty much the same as the other `cargo dev setup` commands. Would you mind reviewing this? 🙃
2021-06-29 08:53:59 +00:00
xFrednet
e40019134b
Updated clippy_dev
ui message and vscode task name
...
Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com>
2021-06-28 20:40:09 +02:00
xFrednet
2098b27a20
Added cargo dev setup vscode-tasks
for simplicity
2021-06-27 22:36:41 +02:00
Cameron Steffen
7e21db5b5c
Add suspicious group
2021-06-25 08:53:29 -05:00
xFrednet
41bc0f4d4d
Adjust pre-commit script to readd files after formatting
2021-06-25 11:16:59 +02:00
xFrednet
0a5f28c4b0
Added cargo dev setup git-hook
2021-06-25 11:16:59 +02:00
Alexander Melentyev
dab42cff02
Delete spaces
2021-06-21 12:11:37 +03:00
xFrednet
96a9786b1c
Fixed broken deploy script due to multiline configuration docs
2021-06-20 22:32:32 +02:00
flip1995
6c27482115
Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyup
2021-06-03 08:41:37 +02:00
flip1995
f49251a33e
Remove util/cov.sh script
...
This script hasn't been working and wasn't used for years.
2021-05-31 17:09:21 +02:00
flip1995
d605882023
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
2021-05-06 12:20:44 +02:00
Cameron Steffen
499813026f
Fix config parsing
2021-05-02 17:50:22 -05:00
flip1995
02bf692169
Merge commit '98e2b9f25b6db4b2680a3d388456d9f95cb28344' into clippyup
2021-04-22 11:31:13 +02:00
xFrednet
7e90bb671a
Fixed website inline code background
2021-04-14 20:06:26 +02:00
flip1995
f6d1f368db
Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
2021-04-08 17:50:13 +02:00
xFrednet
da04e873b3
Quick fix to access the correct css files
2021-04-04 20:15:41 +02:00
xFrednet
e25b1060f5
Adding a dark theme to the clippy lint list
2021-04-04 15:36:30 +02:00
flip1995
ac912be984
Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyup
2021-01-30 18:06:34 +01:00
Cameron Steffen
cbf9d492b9
Fix some website syntax highlighting
2021-01-26 17:38:52 -06:00
flip1995
ba4bf4f9c5
Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup
2021-01-02 16:29:43 +01:00
xFrednet
f055e7f2e9
Fixed a value spelling mistake
2020-12-22 20:02:59 +00:00
flip1995
f03edfd7a1
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
2020-12-20 17:19:49 +01:00
xFrednet
97f5db97c4
Website issue tracker link and better search performance
...
* last minor improvements
2020-12-20 16:14:24 +00:00
xFrednet
2814ee4840
Adapted the website search for better matching
...
* Formatting
2020-12-19 16:28:16 +00:00
Jack Huey
0e2f5c9862
Fix nit and cargo.lock
2020-05-07 17:46:31 -04:00
Philipp Hansch
8d596ea01c
Remove util/dev script
...
`cargo dev` has been the replacement for a while, so I think we can
remove it now.
cc #5394
2020-04-26 14:00:03 +02:00
Philipp Hansch
90d8b6354e
util/fetch_prs_between.sh: Add Markdown formatted Link
...
This can then be easily copy/pasted into the changelog 💙
2020-04-20 21:08:55 +02:00
ThibsG
629cc4ada3
Update doc generation script
2020-04-09 09:17:41 +02:00
flip1995
aa1ad42736
Also deploy from the beta branch
2020-03-25 20:20:54 +01:00
flip1995
a1dc609f21
Fix documentation generation for configurable lints
2020-03-22 18:15:06 +01:00
flip1995
0f7918266f
Rename current -> stable
2020-02-14 12:03:48 +01:00
flip1995
2044931cbe
Better version ordering of documentation
2020-02-13 17:59:37 +01:00
flip1995
5e03d5bb06
Sort versions in json output
2020-02-13 17:59:37 +01:00
flip1995
935b94d80b
Sort output of export.py script
2020-02-12 09:34:27 +01:00
Philipp Hansch
4d1a11d354
Deprecate util/dev in favor of cargo alias
...
If you've been using `./util/dev` before, this now becomes `cargo dev`.
The key part of this change is found in `.cargo/config`.
This means one less shell script and a bit more cross-platform support
for contributors.
2020-01-30 21:34:31 +01:00
Lzu Tao
f3ace5e71d
build: use shared target dir
2019-10-22 16:16:01 +07:00
Lzu Tao
b869eeb2a4
build: improve script and travis config
...
* fix a diff failure on windows
See https://travis-ci.com/rust-lang/rust-clippy/jobs/245971932#L1625
for an example.
* use cmp instead of diff > /dev/null
* clone single branch instead of clone then checking out
* do not decrypt key if have no diff change
2019-10-22 10:14:39 +07:00
flip1995
2dc7727bcd
Also fetch rollup merges in fetch_prs_between.sh script
2019-08-28 13:53:56 +02:00
Jeremy Stucki
df211ff467
Ignore lines starting with '#'
2019-08-18 18:04:18 +02:00
Philipp Hansch
781794d49f
Remove util/update_lints.py
...
This has been deprecated for ~10 months, so I think it's fine to remove now.
2019-08-15 17:43:30 +02:00
flip1995
27ddde561e
Filter out PRs with changelog: none
2019-08-12 09:38:52 +02:00
Andy Russell
4ce100beb2
don't strip blank lines in lint documentation
2019-06-23 16:21:43 -04:00
Andy Russell
fe96ffeac9
move lint documentation into macro invocations
2019-03-05 18:45:08 -05:00
Martin Taibr
3f7d0c8d75
Use the same <title> as <h1> on gh-pages
2019-02-28 19:17:10 +01:00
Michael Howell
67f50661eb
Use normal HTML label semantics for filter
...
I legitimately don't understand why you did it with ARIA instead.
2019-02-16 13:16:50 -07:00
Matthias Krüger
246b9e7aed
fetch_prs_between: add .sh file ending
2019-01-29 20:00:45 +01:00
Philipp Hansch
1adc35703f
Add script to fetch GitHub PRs between two commits
2019-01-25 18:07:50 +01:00
Philipp Hansch
38d4ac7cea
Remove all copyright license headers
...
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-08 21:46:39 +01:00
Matthias Krüger
f5929e0797
rust-lang-nursery/rust-clippy => rust-lang/rust-clippy
2018-11-22 04:40:09 +01:00
Philipp Hansch
90f31e21ab
RIIR update lints: Add check mode (update_lints.py rewrite complete)
...
This finishes up the rewrite of `update_lints.py` in Rust. More
specifically, this
* adds the `--check` flag and handling to clippy_dev
* tracks file changes over the different calls to `replace_region_in_file`
* only writes changes to files if the `--check` flag is *not* used
* runs `./util/dev update_lints --check` on CI instead of the old script
* replaces usage of the `update_lints.py` script with an error
`./util/dev update_lints` behaves 99% the same as the python script.
The only difference that I'm aware of is an ordering change to
`clippy_lints/src/lib.rs` because underscores seem to be sorted
differently in Rust and in Python.
🏁
2018-11-05 07:18:47 +01:00
Philipp Hansch
64bd658516
RIIR update lints: Generate deprecated lints
...
The update script now also generates the 'register_removed' section in
`clippy_lints/src/lib.rs`.
Also, instead of using `let mut store ...`, I added a new identifier
line so that the replacement will continue to work in case `let mut
store ...` ever changes.
2018-10-31 08:03:50 +01:00
Park Juhyung
4c88362a9d
Website: Make lint categories linkable
...
Fixes #2973
2018-10-15 22:36:35 +09:00
Philipp Hansch
a16edf84ce
Merge pull request #3265 from mikerite/fix-export
...
Fix util/export.py to include lints from methods
2018-10-08 07:22:09 +01:00
Manish Goregaokar
23e5e24f52
Add license header to other files
2018-10-06 09:43:08 -07:00
Michael Wright
e5b388d865
Fix util/export.py to include lints from methods
2018-10-05 08:04:14 +02:00
Michael Wright
f01fa227c0
Fix update_lints.py for dir modules
2018-09-30 06:25:23 +02:00
Philipp Hansch
35f100b4f9
update_lints rewrite: Add structure and --print-only
2018-09-03 22:18:51 +02:00
Philipp Hansch
8e0de3d120
Merge remote-tracking branch 'upstream/master' into prs
2018-09-02 11:05:49 +02:00
flip1995
bb49b31254
Adapt scripts to the tool_lints
2018-08-29 11:08:29 -07:00
Ivan Tham
340500ede5
Fix typo for panel cursor
2018-08-28 10:24:21 +08:00
flip1995
efeed9aefc
Remove unused code
2018-08-22 17:47:54 +02:00
Matthias Krüger
7ded77fe7d
update_lints.py: port another print to print() for python3 compatibility.
2018-08-12 11:33:44 +02:00
David Vo
9bb68b84ab
lintlib: Use Python 3 compatible print
...
Ref: #2882
2018-08-09 17:29:22 +10:00
Matthias Krüger
2665f10662
fix a bunch of typos found by codespell
2018-07-25 20:02:52 +02:00
Philipp Hansch
0961c692fa
s/wiki/lint list/
2018-07-25 08:22:52 +02:00
Ivan Tham
2c65e7c835
Improve website panel heading experience
2018-07-19 14:12:47 +08:00
Dale Wijnand
d95d6516b4
Consistently call it "Clippy", not clippy or rust-clippy
...
As per discussion on the Clippy 1.0 RFC
2018-07-05 11:37:50 +01:00
Oliver Schneider
45bab501e1
Fix typo in lint dump script
2018-06-15 17:45:52 +02:00
Oliver Schneider
e38c109ae7
Lint printing was broken
2018-06-14 22:50:07 +02:00
Yusuf Simonson
7de706b34b
Lint for multiple versions of dependencies
2018-04-30 06:20:39 +07:00
Pascal Hertleif
c43a8921bb
Docs: Reorganize layout a bit and show lint groups
2018-04-10 12:25:53 +02:00
Pascal Hertleif
b46a3e5324
Add lint groups to doc export
2018-04-10 12:23:41 +02:00
flip1995
2a52527a46
Fix lintlib script
2018-03-31 17:53:24 +02:00
Oliver Schneider
eafb9fe8df
Update test suite
2018-03-28 23:49:32 +02:00
Oliver Schneider
d6344c47e3
Categorize all the lints!
2018-03-28 15:24:26 +02:00
Oliver Schneider
ef9fdbb8a9
Implementation + move one lint
2018-03-27 17:13:55 +02:00
flip1995
339d2d5be0
Fix name of configuration parameters in documentation
2018-02-19 16:30:19 +01:00
Philipp Hansch
5c28cd259a
Allow empty lines in lint doc examples
...
This makes sure that empty lines in lint examples are preserved.
It also fixes the documentation for the invalid_ref lint, which was not
shown because of an extra newline before the lint declaration.
2018-02-01 23:21:36 +01:00
Oliver Schneider
0f0075df09
Update README lint counter message
2017-09-01 12:34:10 +02:00
Oliver Schneider
ff91c6359a
wiki -> docs
2017-09-01 12:34:10 +02:00
Oliver Schneider
c64073b2f5
Deprecate the wiki and remove the lint list from the README ( fixes #1933 )
2017-09-01 12:34:05 +02:00
Oliver Schneider
4470d7a8ca
Merge branch 'master' into move_links
2017-08-14 10:07:26 +02:00
Pascal Hertleif
02f2035389
Docs index: Sort versions in a nice way
...
This introduces a very sophisticated algorithm to determine the ordering
of versions on the rendered docs' start page.
(Spoiler alert: It maps "master" and "current" to the largest possible
float values and converts a version like "1.2.3" to "1002003".)
2017-08-07 13:00:43 +02:00
Andre Bogus
f515d7bb67
Change all links to reflect the move to rust-lang-nursery
2017-08-06 23:10:55 +02:00
Pascal Hertleif
b3c90efcb4
Generate version index for docs domain index
...
Uses basically the same code as the lint docs page as I didn't want to
reinvent anything: A simple python script (inline in deploy script)
writes an array of versions to a JSON file, which gets turned into a
list of links using a bit of angular.js code.
Fixes #1917
2017-08-03 21:21:59 +02:00
Pascal Hertleif
0527dbaddf
Update URL in rendered docs Github ribbon
...
[ci skip]
2017-08-03 21:21:59 +02:00
Oliver Schneider
86d6cec138
Fix the config regex for the wiki generator
2017-08-01 10:33:16 +02:00
Oliver Schneider
db02acd5ed
allow linebreaks in parsed wiki script
2017-01-26 11:28:51 +01:00
Oliver Schneider
6d3841e69d
every line needs to be its own string
2016-12-21 13:12:17 +01:00
Oliver Schneider
49e3419b87
shorten deprecated lints line length
2016-12-21 12:50:39 +01:00
Sebastian Ullrich
3e536ff369
fix dogfood.sh
2016-10-30 14:25:06 -04:00
mcarton
2cd58e40f0
Improve the coverage script
2016-10-03 17:49:05 +02:00
mcarton
12c2d6a8d0
Add a script to run kcov
2016-10-02 15:12:12 +02:00
Pascal Hertleif
3e2bb3fd81
Actually scroll lint panels into view
...
The trick to writing horrible hacks such as this is to recognize angular
as a technology stack that may be endearing to some as one can do easy
stuff quickly. But fundamentally, it is built on top of crazy shit.
Like: Yes, I just wrote a directive that for some reason automatically
has access to the scope of the repeated item, and fires an event each
time the last `np-repeat` item was seen (delayed by one render loop
cycle, of course). And – obviously – when defining the directive it is
in camelCase but when using it in the template it has to by in
dash-case.
Great times.
2016-08-28 21:11:02 +02:00
Pascal Hertleif
816cf56b89
Tweak HTML version of docs with scroll to lints
...
Uses good old DOM events and wibbly-wobbly timeouts to wait for angular
to render this huge list of lints.
Fixes #1181
2016-08-28 17:04:54 +02:00
Georg Brandl
9a221402e6
Make Python utils more idiomatic, use better names, fix -c mode of update_wiki.
2016-08-07 08:09:26 +02:00
Georg Brandl
b91c1a509e
Make lint descriptions short and to the point; always fitting the column "triggers on".
2016-08-07 08:09:26 +02:00
Martin Carton
46ad7d00a2
Merge pull request #1109 from Manishearth/setup-gh-pages
...
Fix deploy.sh and python2 usage
2016-07-19 22:13:24 +02:00
mcarton
3fab9a8970
Fix deploy.sh and python2 usage
2016-07-19 22:07:39 +02:00
Martin Carton
8383e56973
Merge pull request #1107 from Manishearth/setup-gh-pages
...
Setup gh-pages
2016-07-19 21:49:06 +02:00
mcarton
01c61a714b
Setup automatic push of gh-pages
2016-07-19 21:26:16 +02:00
Oliver Schneider
02c46f057f
add an internal lint that catches misordered paths
2016-07-18 11:19:33 +02:00
Pascal Hertleif
a4f070ba92
Add Level 'Deprecated'
2016-07-15 13:08:13 +02:00
Pascal Hertleif
8dad2ced7a
HMTL Docs: Add Configuration, Fix Example Section
2016-07-15 13:08:04 +02:00
Pascal Hertleif
bbbd0a5475
Adjust HTML Docs
...
- Section IDs, with handy anchor links
- Multiple filters for levels
- Table rendering, block quote size
- Nicer loading (hide un-rendered content)
- Code highlighting (only for Rust, of course!)
- Fix parsing of descriptions that have a newline after the section
title (lead to duplicating the title, e.g., "Examples", in the
content)
2016-07-14 21:00:20 +02:00
Pascal Hertleif
ba9eda7236
Add First Draft of Lint Listing Page
2016-07-12 16:31:13 +02:00
mcarton
3646b30ccf
Include restriction lints in the wiki
2016-06-17 13:21:46 +02:00
mcarton
d921dfa2c3
Fix paths in *update_wiki.py*
2016-06-17 12:57:44 +02:00
Andre Bogus
d1d62a8e76
Merge branch 'pr-961'
2016-05-29 11:48:28 +02:00
Georg Brandl
5d64b81787
Ensure the correct clippy_lints dependency version.
2016-05-27 17:22:34 +02:00
Georg Brandl
f314fa8d28
Some Python style nits.
2016-05-27 15:57:03 +02:00
mcarton
71b41b6e01
Fix wiki links and char_lit_as_u8
2016-05-27 15:55:08 +02:00
Oliver Schneider
bf227f4729
split clippy into lints, plugin and cargo-clippy
2016-05-27 13:03:58 +02:00
Andre Bogus
0b40ae178a
fixed tests, added clippy_restrictions lint group
2016-04-30 23:54:10 +02:00
mcarton
d81481bd0d
Autogenerate CHANGELOG links to lints in wiki
2016-04-14 17:56:46 +02:00