Commit Graph

56 Commits

Author SHA1 Message Date
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
mcarton
15e55f5df5 Deprecates 4 lints
Namely STR_TO_STRING, STRING_TO_STRING, UNSTABLE_AS_SLICE and
UNSTABLE_AS_MUT_SLICE.
2016-03-24 19:56:48 +01:00
mcarton
bd5af32cb1 Fix conf.rs path in update_wiki 2016-03-15 21:17:26 +01:00
mcarton
232710cd43 Add configuration variables to wiki 2016-03-12 14:50:46 +01:00
mcarton
5fe6e9f911 Build the import lint in update_lints.py 2016-02-20 17:46:16 +01:00
mcarton
d14c4ea187 Fix wiki
Markdown is hell.
2016-02-07 15:14:12 +01:00
mcarton
f2a7c8cca0 Update update_wiki.py to extract default lint level 2016-02-06 00:42:55 +01:00
mcarton
997a565aeb Make the python scripts py3 and pep8 compatible 2016-01-29 22:31:17 +01:00
Florian Hartwig
23dfb2fbc0 Make update_lints script accept digits in lint names 2016-01-27 20:59:19 +01:00
llogiq
5bbc1427fd added wiki comments + wiki-generating python script 2015-12-11 01:22:27 +01:00
Georg Brandl
88dd38de87 lib: add clippy_pedantic group with all Allow by default lints (fixes #265) 2015-09-01 18:05:28 +02:00
llogiq
9461a480bd Added automatic links to wiki for all lints. 2015-08-26 16:04:50 +02:00
llogiq
380e41a914 improved README, added lint counter 2015-08-24 16:49:12 +02:00