]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoonly lint public stutter namings
Oliver Schneider [Fri, 10 Jun 2016 14:14:36 +0000 (16:14 +0200)]
only lint public stutter namings

8 years agolint items whose name starts/ends with their enclosing module's name
Oliver Schneider [Wed, 8 Jun 2016 15:43:27 +0000 (17:43 +0200)]
lint items whose name starts/ends with their enclosing module's name

8 years agolint enum variants names that start or end with their enum's name
Oliver Schneider [Wed, 8 Jun 2016 13:32:30 +0000 (15:32 +0200)]
lint enum variants names that start or end with their enum's name

8 years ago`Skip` for `Chars` doesn't help us b/c of the `ExactSizeIterator` bound
Oliver Schneider [Wed, 8 Jun 2016 13:03:30 +0000 (15:03 +0200)]
`Skip` for `Chars` doesn't help us b/c of the `ExactSizeIterator` bound

8 years agoMerge pull request #1016 from devonhollowood/slice-iter-nth
Manish Goregaokar [Thu, 16 Jun 2016 09:33:48 +0000 (10:33 +0100)]
Merge pull request #1016 from devonhollowood/slice-iter-nth

Suggest `.get()` over `.iter().nth()`

8 years agoMake iter_nth work for `Vec`s too
Devon Hollowood [Thu, 16 Jun 2016 09:02:00 +0000 (02:02 -0700)]
Make iter_nth work for `Vec`s too

8 years agoAdd slice_iter_nth lint
Devon Hollowood [Thu, 16 Jun 2016 08:36:11 +0000 (01:36 -0700)]
Add slice_iter_nth lint

8 years agoAdd tests for slice_iter_nth
Devon Hollowood [Thu, 16 Jun 2016 08:29:03 +0000 (01:29 -0700)]
Add tests for slice_iter_nth

8 years agoMerge pull request #1011 from Manishearth/travis
Martin Carton [Mon, 13 Jun 2016 10:24:06 +0000 (12:24 +0200)]
Merge pull request #1011 from Manishearth/travis

s/npm install remark/npm install remark-cli

8 years agos/npm install remark/npm install remark-cli
mcarton [Mon, 13 Jun 2016 10:09:14 +0000 (12:09 +0200)]
s/npm install remark/npm install remark-cli

8 years agoMerge pull request #1004 from Manishearth/rustup
Martin Carton [Fri, 10 Jun 2016 18:25:25 +0000 (20:25 +0200)]
Merge pull request #1004 from Manishearth/rustup

Rustup to *1.11.0-nightly (7d2f75a95 2016-06-09)*

8 years agoBump to 0.0.76
mcarton [Fri, 10 Jun 2016 17:48:56 +0000 (19:48 +0200)]
Bump to 0.0.76

8 years agoRustup to *1.11.0-nightly (7d2f75a95 2016-06-09)*
mcarton [Fri, 10 Jun 2016 17:47:10 +0000 (19:47 +0200)]
Rustup to *1.11.0-nightly (7d2f75a95 2016-06-09)*

8 years agoMerge pull request #1002 from Manishearth/issues
Manish Goregaokar [Fri, 10 Jun 2016 11:51:24 +0000 (17:21 +0530)]
Merge pull request #1002 from Manishearth/issues

Add a issue template and specify a *recent* nightly is needed

8 years agoAdd a issue template and specify a *recent* nightly is needed
mcarton [Fri, 10 Jun 2016 11:43:32 +0000 (13:43 +0200)]
Add a issue template and specify a *recent* nightly is needed

8 years agoMerge pull request #1000 from Manishearth/doc_whitelist
Martin Carton [Thu, 9 Jun 2016 22:44:52 +0000 (00:44 +0200)]
Merge pull request #1000 from Manishearth/doc_whitelist

added GPLv{2,3} to doc-valid-idents

8 years agoMerge pull request #990 from Manishearth/rustfmt
llogiq [Thu, 9 Jun 2016 22:26:30 +0000 (00:26 +0200)]
Merge pull request #990 from Manishearth/rustfmt

Cleanup

8 years agoDogfood inside `if_let_chain!`
mcarton [Mon, 6 Jun 2016 16:55:22 +0000 (18:55 +0200)]
Dogfood inside `if_let_chain!`

8 years agoCleanup dependencies and features
mcarton [Mon, 6 Jun 2016 15:09:51 +0000 (17:09 +0200)]
Cleanup dependencies and features

8 years agoFormat all `if_let_chain` consistently
mcarton [Mon, 6 Jun 2016 00:09:19 +0000 (02:09 +0200)]
Format all `if_let_chain` consistently

8 years agoCleanup trailing space
mcarton [Mon, 6 Jun 2016 00:07:47 +0000 (02:07 +0200)]
Cleanup trailing space

8 years agoDogfood
mcarton [Sun, 5 Jun 2016 23:53:21 +0000 (01:53 +0200)]
Dogfood

8 years agoRun rustfmt
mcarton [Sun, 5 Jun 2016 23:42:39 +0000 (01:42 +0200)]
Run rustfmt

Only partially apply suggestions.

8 years agoCleanup
mcarton [Sun, 5 Jun 2016 23:16:16 +0000 (01:16 +0200)]
Cleanup

8 years agoadded GPLv{2,3} to doc-valid-idents
Andre Bogus [Thu, 9 Jun 2016 22:06:50 +0000 (00:06 +0200)]
added GPLv{2,3} to doc-valid-idents

8 years agoMerge pull request #999 from Manishearth/whitelist
llogiq [Thu, 9 Jun 2016 22:04:50 +0000 (00:04 +0200)]
Merge pull request #999 from Manishearth/whitelist

Some small fixes

8 years agoFix suggestions for `REVERSE_RANGE_LOOP`
mcarton [Thu, 9 Jun 2016 21:05:48 +0000 (23:05 +0200)]
Fix suggestions for `REVERSE_RANGE_LOOP`

8 years agoFix false-positive in `LET_AND_RETURN`
mcarton [Wed, 8 Jun 2016 22:24:44 +0000 (00:24 +0200)]
Fix false-positive in `LET_AND_RETURN`

If the declaration has a type, it might be required for coercion to
happen.

8 years agoFix yet another FP in `USELESS_LET_IF_SEQ`
mcarton [Wed, 8 Jun 2016 22:22:59 +0000 (00:22 +0200)]
Fix yet another FP in `USELESS_LET_IF_SEQ`

The block expression before the assignment must be `None`.

8 years agoWhitelist Nan in `DOC_MARKDOWN`
mcarton [Wed, 8 Jun 2016 20:00:42 +0000 (22:00 +0200)]
Whitelist Nan in `DOC_MARKDOWN`

8 years agoMerge pull request #996 from Manishearth/feature
Manish Goregaokar [Thu, 9 Jun 2016 07:54:32 +0000 (00:54 -0700)]
Merge pull request #996 from Manishearth/feature

Automatically defines the `clippy` feature

8 years agoMerge pull request #997 from carols10cents/include-consts
Manish Goregaokar [Thu, 9 Jun 2016 03:02:44 +0000 (20:02 -0700)]
Merge pull request #997 from carols10cents/include-consts

Include `consts` in the approx_consts lint for easier copypasting

8 years agoInclude `consts` in the approx_consts lint for easier copypasting
Carol (Nichols || Goulding) [Wed, 8 Jun 2016 23:58:29 +0000 (19:58 -0400)]
Include `consts` in the approx_consts lint for easier copypasting

If you try to use `f64::PI`, it won't work-- you need to use
`f64::consts::PI`, so suggest that in the lint message.

8 years agoAutomatically defines the `clippy` feature
mcarton [Wed, 8 Jun 2016 19:48:10 +0000 (21:48 +0200)]
Automatically defines the `clippy` feature

8 years agoMerge pull request #993 from Manishearth/rustup
llogiq [Wed, 8 Jun 2016 10:32:36 +0000 (12:32 +0200)]
Merge pull request #993 from Manishearth/rustup

Rustup to *rustc 1.11.0-nightly (763f9234b 2016-06-06)*

8 years agoBump to 0.0.75
mcarton [Wed, 8 Jun 2016 10:23:33 +0000 (12:23 +0200)]
Bump to 0.0.75

8 years agoRustup to *1.11.0-nightly (763f9234b 2016-06-06)*
mcarton [Wed, 8 Jun 2016 10:21:24 +0000 (12:21 +0200)]
Rustup to *1.11.0-nightly (763f9234b 2016-06-06)*

8 years agoMerge pull request #983 from Manishearth/fix-tests
llogiq [Tue, 7 Jun 2016 16:42:46 +0000 (18:42 +0200)]
Merge pull request #983 from Manishearth/fix-tests

Fix wrong tests and improve some other

8 years agoBump `compiletest_rs` to 0.2
mcarton [Tue, 7 Jun 2016 16:33:29 +0000 (18:33 +0200)]
Bump `compiletest_rs` to 0.2

8 years agoAdd missing suggestions and help message to tests
mcarton [Tue, 7 Jun 2016 16:33:11 +0000 (18:33 +0200)]
Add missing suggestions and help message to tests

8 years agoUse `span_suggestion` for `WHILE_LET_ON_ITERATOR`
mcarton [Tue, 7 Jun 2016 16:32:26 +0000 (18:32 +0200)]
Use `span_suggestion` for `WHILE_LET_ON_ITERATOR`

8 years agoFix span in `REVERSE_RANGE_LOOP`’s suggestion
mcarton [Tue, 7 Jun 2016 15:58:52 +0000 (17:58 +0200)]
Fix span in `REVERSE_RANGE_LOOP`’s suggestion

8 years agoFix typo in `REVERSE_RANGE_LOOP`’s suggestion
mcarton [Tue, 7 Jun 2016 15:49:13 +0000 (17:49 +0200)]
Fix typo in `REVERSE_RANGE_LOOP`’s suggestion

8 years agoFix wrong tests and improve some other
mcarton [Sun, 5 Jun 2016 16:07:12 +0000 (18:07 +0200)]
Fix wrong tests and improve some other

8 years agoBump to 0.0.74
mcarton [Tue, 7 Jun 2016 10:22:36 +0000 (12:22 +0200)]
Bump to 0.0.74

8 years agoMerge pull request #988 from oli-obk/metadata3
Martin Carton [Mon, 6 Jun 2016 14:54:24 +0000 (16:54 +0200)]
Merge pull request #988 from oli-obk/metadata3

simply parse unknown json-strings as strings instead of erroring

8 years agoclippy should work on all systems
Oliver Schneider [Mon, 6 Jun 2016 14:43:58 +0000 (16:43 +0200)]
clippy should work on all systems

8 years agodon't abort after successfully linting a target
Oliver Schneider [Mon, 6 Jun 2016 09:28:09 +0000 (11:28 +0200)]
don't abort after successfully linting a target

8 years agosimply parse unknown json-strings as strings instead of erroring
Oliver Schneider [Mon, 6 Jun 2016 09:03:15 +0000 (11:03 +0200)]
simply parse unknown json-strings as strings instead of erroring

8 years agoMerge pull request #986 from Manishearth/disable-wiki-link
Manish Goregaokar [Sun, 5 Jun 2016 21:01:28 +0000 (02:31 +0530)]
Merge pull request #986 from Manishearth/disable-wiki-link

Add environment variable to deactivate wiki links

8 years agoAdd environment variable to deactivate wiki links
mcarton [Sun, 5 Jun 2016 19:05:28 +0000 (21:05 +0200)]
Add environment variable to deactivate wiki links

8 years agoMerge pull request #987 from Manishearth/fix-985
Martin Carton [Sun, 5 Jun 2016 19:56:28 +0000 (21:56 +0200)]
Merge pull request #987 from Manishearth/fix-985

Fix false-positive in `USELESS_LET_IF_SEQ`

8 years agoBump to 0.0.73
mcarton [Sun, 5 Jun 2016 19:43:22 +0000 (21:43 +0200)]
Bump to 0.0.73

8 years agoFix false-positive in `USELESS_LET_IF_SEQ`
mcarton [Sun, 5 Jun 2016 19:38:15 +0000 (21:38 +0200)]
Fix false-positive in `USELESS_LET_IF_SEQ`

8 years agoMerge pull request #984 from Manishearth/fix-swap
llogiq [Sun, 5 Jun 2016 19:04:03 +0000 (21:04 +0200)]
Merge pull request #984 from Manishearth/fix-swap

 Fix wrong suggestion with `MANUAL_SWAP` and slices

8 years agoCleanup, use `matches!` some more
mcarton [Sun, 5 Jun 2016 18:46:42 +0000 (20:46 +0200)]
Cleanup, use `matches!` some more

8 years agoRemove useless `if_let_chain`
mcarton [Sun, 5 Jun 2016 18:46:27 +0000 (20:46 +0200)]
Remove useless `if_let_chain`

8 years agoFix wrong suggestion with `MANUAL_SWAP` and slices
mcarton [Sun, 5 Jun 2016 18:19:00 +0000 (20:19 +0200)]
Fix wrong suggestion with `MANUAL_SWAP` and slices

8 years agoMerge pull request #982 from Manishearth/fix-swap
Manish Goregaokar [Sun, 5 Jun 2016 14:03:05 +0000 (19:33 +0530)]
Merge pull request #982 from Manishearth/fix-swap

Fix wrong suggestion in `MANUAL_SWAP`

8 years agoFix wrong suggestion in `MANUAL_SWAP`
mcarton [Sun, 5 Jun 2016 13:47:57 +0000 (15:47 +0200)]
Fix wrong suggestion in `MANUAL_SWAP`

8 years agoMerge pull request #980 from dtolnay/release
Martin Carton [Sat, 4 Jun 2016 21:51:03 +0000 (23:51 +0200)]
Merge pull request #980 from dtolnay/release

Release 0.0.72

8 years agoRelease 0.0.72
David Tolnay [Sat, 4 Jun 2016 21:31:24 +0000 (14:31 -0700)]
Release 0.0.72

8 years agoMerge pull request #962 from Manishearth/fix-doc
llogiq [Sat, 4 Jun 2016 07:24:39 +0000 (09:24 +0200)]
Merge pull request #962 from Manishearth/fix-doc

Fix DOC_MARKDOWN and multiline links and quotes

8 years agoMerge pull request #979 from Manishearth/fx-975
llogiq [Fri, 3 Jun 2016 19:42:41 +0000 (21:42 +0200)]
Merge pull request #979 from Manishearth/fx-975

Correctly check for variable use in `useless_let_if_seq`

8 years agoCorrectly check for variable use in `useless_let_if_seq`
mcarton [Fri, 3 Jun 2016 17:35:39 +0000 (19:35 +0200)]
Correctly check for variable use in `useless_let_if_seq`

8 years agoMerge pull request #978 from Manishearth/fx-977
Martin Carton [Fri, 3 Jun 2016 17:19:23 +0000 (19:19 +0200)]
Merge pull request #978 from Manishearth/fx-977

Make new_without_default ignore const fns

8 years agoMake new_without_default ignore const fns; fixes #977
Manish Goregaokar [Fri, 3 Jun 2016 14:45:07 +0000 (20:15 +0530)]
Make new_without_default ignore const fns; fixes #977

8 years agoMerge pull request #974 from oli-obk/metadata2
Martin Carton [Thu, 2 Jun 2016 15:46:52 +0000 (17:46 +0200)]
Merge pull request #974 from oli-obk/metadata2

process more kinds of metadata

8 years agono indexing
Oliver Schneider [Thu, 2 Jun 2016 15:39:28 +0000 (17:39 +0200)]
no indexing

8 years agoprocess more kinds of metadata
Oliver Schneider [Thu, 2 Jun 2016 15:29:25 +0000 (17:29 +0200)]
process more kinds of metadata

8 years agoMerge pull request #972 from Manishearth/fix-953
Martin Carton [Thu, 2 Jun 2016 00:14:51 +0000 (02:14 +0200)]
Merge pull request #972 from Manishearth/fix-953

only lint `new_without_default` for public items

8 years agoonly lint `new_without_default` for public items
Andre Bogus [Wed, 1 Jun 2016 21:35:14 +0000 (23:35 +0200)]
only lint `new_without_default` for public items

This fixes #953.

8 years agoFix CHANGELOG
mcarton [Tue, 31 May 2016 22:04:47 +0000 (00:04 +0200)]
Fix CHANGELOG

8 years agoMerge pull request #970 from Manishearth/rustup
Martin Carton [Tue, 31 May 2016 21:54:02 +0000 (23:54 +0200)]
Merge pull request #970 from Manishearth/rustup

s/PatKind::Ident/PatKind::Binding/g

8 years agoBump to 0.0.71
mcarton [Tue, 31 May 2016 21:32:04 +0000 (23:32 +0200)]
Bump to 0.0.71

Rustup to *rustc 1.10.0-nightly (7bddce693 2016-05-27)*

8 years agoadded missing PatKind::Path + tests
Andre Bogus [Tue, 31 May 2016 20:01:56 +0000 (22:01 +0200)]
added missing PatKind::Path + tests

8 years agoanother one. Somehow I failed to correctly commit
Andre Bogus [Tue, 31 May 2016 20:07:03 +0000 (22:07 +0200)]
another one. Somehow I failed to correctly commit

8 years agoadded mcarton's test suggestion
Andre Bogus [Tue, 31 May 2016 19:50:13 +0000 (21:50 +0200)]
added mcarton's test suggestion

8 years agodogfood error in consts fixed
Andre Bogus [Tue, 31 May 2016 18:14:59 +0000 (20:14 +0200)]
dogfood error in consts fixed

8 years agoadditional error in copies test annotated
Andre Bogus [Tue, 31 May 2016 18:14:32 +0000 (20:14 +0200)]
additional error in copies test annotated

8 years agos/PatKind::Ident/PatKind::Binding/g
Andre Bogus [Tue, 31 May 2016 17:17:31 +0000 (19:17 +0200)]
s/PatKind::Ident/PatKind::Binding/g

8 years agoMerge pull request #960 from oli-obk/libbin
llogiq [Tue, 31 May 2016 14:53:37 +0000 (16:53 +0200)]
Merge pull request #960 from oli-obk/libbin

don't require `cargo clippy` to pass a `--lib` or `--bin x` argument

8 years agoleave the clippy_lints directory after testing
Oliver Schneider [Tue, 31 May 2016 12:37:25 +0000 (14:37 +0200)]
leave the clippy_lints directory after testing

8 years agoadd version check to the unit tests
Oliver Schneider [Mon, 30 May 2016 10:47:04 +0000 (12:47 +0200)]
add version check to the unit tests

8 years agotravis should check `clippy-lints`
Oliver Schneider [Fri, 27 May 2016 13:42:45 +0000 (15:42 +0200)]
travis should check `clippy-lints`

8 years agodogfood
Oliver Schneider [Fri, 27 May 2016 13:42:33 +0000 (15:42 +0200)]
dogfood

8 years agodon't require `cargo clippy` to pass a `--lib` or `--bin x` argument
Oliver Schneider [Fri, 27 May 2016 13:31:19 +0000 (15:31 +0200)]
don't require `cargo clippy` to pass a `--lib` or `--bin x` argument

8 years agoMerge pull request #814 from Manishearth/let_mut_if
Manish Goregaokar [Sun, 29 May 2016 10:42:55 +0000 (16:12 +0530)]
Merge pull request #814 from Manishearth/let_mut_if

Add a `USELESS_LET_IF_SEQ` lint

8 years agoAdd a `USELESS_LET_IF_SEQ` lint
mcarton [Wed, 30 Mar 2016 17:53:43 +0000 (19:53 +0200)]
Add a `USELESS_LET_IF_SEQ` lint

8 years agoran update_lints.py
Andre Bogus [Sun, 29 May 2016 09:57:56 +0000 (11:57 +0200)]
ran update_lints.py

I forgot that in the previous commit. Shame on me.

8 years agoMerge branch 'pr-961'
Andre Bogus [Sun, 29 May 2016 09:48:28 +0000 (11:48 +0200)]
Merge branch 'pr-961'

8 years agoAdd a README for `clippy_lints`
mcarton [Sat, 28 May 2016 14:50:34 +0000 (16:50 +0200)]
Add a README for `clippy_lints`

This avoids the error:

> error: failed to read `/tmp/tralala/clippy_lints/README.md`

when publishing.

8 years agoMerge pull request #958 from Manishearth/rustup
Martin Carton [Sat, 28 May 2016 14:43:34 +0000 (16:43 +0200)]
Merge pull request #958 from Manishearth/rustup

 Rustup to *1.10.0-nightly (7bddce693 2016-05-27)* && bump to 0.0.70

8 years agoBump to 0.0.70
mcarton [Sat, 28 May 2016 14:36:44 +0000 (16:36 +0200)]
Bump to 0.0.70

8 years agoRustup to *1.10.0-nightly (7bddce693 2016-05-27)*
mcarton [Fri, 27 May 2016 12:24:28 +0000 (14:24 +0200)]
Rustup to *1.10.0-nightly (7bddce693 2016-05-27)*

8 years agoFix `doc_markdown` and multiline quotes and links
mcarton [Sat, 28 May 2016 01:18:52 +0000 (03:18 +0200)]
Fix `doc_markdown` and multiline quotes and links

8 years agoImprove markdown parsing for the doc lint
mcarton [Thu, 26 May 2016 20:53:38 +0000 (22:53 +0200)]
Improve markdown parsing for the doc lint

8 years agoEnsure the correct clippy_lints dependency version.
Georg Brandl [Fri, 27 May 2016 13:57:44 +0000 (15:57 +0200)]
Ensure the correct clippy_lints dependency version.

8 years agoSome Python style nits.
Georg Brandl [Fri, 27 May 2016 13:57:03 +0000 (15:57 +0200)]
Some Python style nits.

8 years agoFix wiki links and `char_lit_as_u8`
mcarton [Fri, 27 May 2016 13:55:08 +0000 (15:55 +0200)]
Fix wiki links and `char_lit_as_u8`