Commit Graph

219 Commits

Author SHA1 Message Date
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
Oliver Schneider 077481053c refactoring and bugfix 2016-03-18 14:06:39 +01:00
Oliver Schneider 463897fd39 lint on too many single character bindings 2016-03-18 14:06:39 +01:00
Oliver Schneider 06ca1fc0a6 lint on binding-names that are too similar 2016-03-18 14:06:39 +01:00
mcarton 14dcb60bf8 s/Clippy.toml/clippy.toml 2016-03-12 14:52:09 +01:00
mcarton aa4daea364 Lint function with too many arguments 2016-03-12 14:52:06 +01:00
mcarton 578750aae1 Document the configuration file 2016-03-12 14:51:47 +01:00
mcarton a3031e34f9 Add a `BLACKLISTED_NAME` lint 2016-03-12 14:51:45 +01:00
Adolfo Ochagavía 87ef5f4d3b Lint against indexing and slicing
This can be useful to prevent panics in a codebase. ATM it is a pedantic
lint, but in the future it should be added to the restricions group.
2016-03-11 21:30:35 +01:00
mcarton 3f112b1b8a Fix punctuation in README 2016-03-11 14:26:26 +01:00
Manish Goregaokar 1d41ec9846 Merge pull request #742 from ctjhoa/master
Add clippy linting service badge
2016-03-11 08:41:53 +05:30
Camille TJHOA e67e21ca5d Add link with clippy service 2016-03-10 21:42:24 +01:00
mcarton d7129f560d Lint types with `fn new() -> Self` and no `Default` impl 2016-03-08 17:00:37 +01:00
mcarton 204c12c99e Lint unused labels 2016-03-08 16:43:40 +01:00
KALPESH KRISHNA 55fbf59f3b Linting classical overflow checks. 2016-03-08 02:48:42 +05:30
Camille TJHOA 59f44eb17a add clippy service badge 2016-03-07 00:12:06 +01:00
KALPESH KRISHNA e421a0f8a3 Warn about calling a closure in the same expression where it's defined. 2016-03-05 22:41:52 +05:30
Oliver Schneider 3b7720f992 lint ! and != in if expressions with else branches 2016-02-29 12:34:48 +01:00
Oliver Schneider 67213c9be4 lint unportable clike enum discriminants 2016-02-29 09:36:13 +01:00
mcarton 76004306cc Lint manual swaps 2016-02-28 12:16:13 +01:00
mcarton 72ef26272d Lint `foo = bar; bar = foo` sequences 2016-02-28 00:02:43 +01:00
mcarton 1c3cce8ba5 Add a lint about suspiciously formatted `else if` 2016-02-27 18:18:53 +01:00
mcarton 810de56079 Add a lint about suspiciously formatted `=@` ops
For `@` in {`*`, `!`, `-`}.
2016-02-27 17:57:36 +01:00
mcarton ef4401d4ac Lint about usage of `format!("string literal")` 2016-02-20 17:46:20 +01:00
llogiq 59c8f6210b Merge pull request #669 from shssoichiro/single-char-pattern
Lint single-character strings as P: Pattern args
2016-02-16 14:24:22 +01:00
mcarton b5ba621f61 Make DERIVE_HASH_NOT_EQ symmetric 2016-02-16 00:15:11 +01:00
Joshua Holmer 7eea67605a Lint single-character strings as P: Pattern args
Fixes #650
2016-02-14 22:40:43 -05:00
llogiq 5521a75707 Merge pull request #654 from mcarton/new
Lints about `new` methods
2016-02-13 22:19:36 +01:00
Manish Goregaokar 1e176cae5d Bump twice 2016-02-13 18:04:46 +05:30
Manish Goregaokar d964e18b90 Wrong crate 2016-02-13 17:43:28 +05:30
Manish Goregaokar 9fd1745db6 +license 2016-02-13 17:38:08 +05:30
mcarton e8c2aa2997 Lint about `new` methods not returning `Self` 2016-02-13 13:03:28 +01:00
Manish Goregaokar d4ebd68df2 Clarify readme 2016-02-13 08:45:36 +05:30
mcarton f309dc3c0f Add the MATCH_SAME_ARMS lint 2016-02-12 14:30:52 +01:00
llogiq d305bca25b fixed README 2016-02-12 12:31:13 +01:00
llogiq 9ee462625b Merge pull request #637 from mcarton/debug
Lint usage of `Debug`-based formatting
2016-02-12 12:18:15 +01:00
Manish Goregaokar 1013026f18 Merge branch 'pr-645' 2016-02-10 10:20:23 +05:30
mcarton 2db6965c81 Lint usage of `Debug`-based formatting 2016-02-09 21:22:54 +01:00
Joshua Holmer 2687a3f6b5 Update lints 2016-02-09 14:52:20 -05:00
Manish Goregaokar 93461afffc Merge branch 'pr-613'
Conflicts:
	src/lib.rs
	src/types.rs
2016-02-10 01:03:26 +05:30
llogiq 3b0b9e0e06 Merge remote-tracking branch 'origin/master' into regex_macro 2016-02-08 23:51:30 +01:00
mcarton 344698377f Fix typo 2016-02-07 13:27:09 +01:00
mcarton d862495d19 Lint ifs with the same then and else blocks 2016-02-07 13:26:34 +01:00
mcarton fe6f2a22ba Lint about consecutive ifs with same condition 2016-02-07 13:26:34 +01:00
Manish Goregaokar 9ba5d45509 Merge branch 'pr-581'
Conflicts:
	README.md
2016-02-07 17:40:48 +05:30
mcarton a02b8124de Lint about trivial regexes 2016-02-05 23:10:48 +01:00
mcarton 431c446746 Lint looping on maps ignoring the keys or values 2016-02-05 19:13:14 +01:00
llogiq 2adc906a75 Merge branch 'master' into regex_syntax 2016-02-05 17:34:09 +01:00
llogiq a14514f7c8 fixed span position and README 2016-02-05 17:29:41 +01:00
Manish Goregaokar 4eb9a921d4 Lint on cloning double pointer
fixes #620
2016-02-05 16:04:15 +05:30