summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prepare 2.0.1pylint-2.0.1Claudiu Popa2018-07-231-2/+2
|
* Don't crash when `pylint` is unable to infer the value of an argument to ↵Claudiu Popa2018-07-234-1/+21
| | | | | | `next()` Close #2316
* Remove the dev prefixpylint-2.0Claudiu Popa2018-07-151-1/+1
|
* Update copyright noticesClaudiu Popa2018-07-1591-102/+301
|
* Validate that the next() builtin is called when looking for ↵Claudiu Popa2018-07-152-0/+15
| | | | stop-iteration-return, and ignore attributes named the same
* Prevent an InferenceError raised when inferring a property that raises an ↵Claudiu Popa2018-07-152-3/+14
| | | | exception
* Ignore the test directory from CPython as that might have invalid filesClaudiu Popa2018-07-151-1/+1
|
* Prepare the releaseClaudiu Popa2018-07-152-3/+2
|
* Documentation fixes for the release and add Nick as a contributorClaudiu Popa2018-07-152-43/+56
|
* Control the maximum number of inference values from pylint with ↵Claudiu Popa2018-07-151-0/+7
| | | | --limit-inference-results
* Fix incorrect hanging indent detection for with statementsBryce Guinta2018-07-154-3/+20
| | | | | | | | Add with statement to recognized token keywords for format checker. Also recognize with statement as the start of a block to allow deeper indentation for hanging continuation Close #461
* Add docstring to _hanging_indent_after_bracketBryce Guinta2018-07-151-1/+10
|
* Rename pos to position to keep naming consistentBryce Guinta2018-07-151-6/+6
|
* Fix lint errorBryce Guinta2018-07-131-0/+2
| | | | astroid incorrectly inferring NoneType because of name reassignment
* Disable false-positive test message from changes in astroidBryce Guinta2018-07-132-1/+2
|
* Do not try to lower checker name if not setBryce Guinta2018-07-131-1/+2
|
* Return early when possible in typecheck call visitorNick Drozd2018-07-131-19/+21
| | | | This avoids doing unnecessary work in many cases.
* Avoid ancestors call in ABC check if possibleNick Drozd2018-07-131-3/+10
|
* Return early to avoid some nodes_of_class callsNick Drozd2018-07-131-0/+7
|
* Drop the universal flag, we're only running on Python 3. Close #592Claudiu Popa2018-07-131-3/+0
|
* Fix false positive unused-variable in lambda default arguments (#2276)Bryce Guinta2018-07-126-7/+16
| | | | | | | | | | The NameConsumer to_consume frame needed to be backed out by one so that for lambda bound default argument variables (closure) could consume the name in a higher scope (just like function default arguments) Close #1921 Close #1552 Close #1099 Close #210
* Fix false-postive undefined-variable in nested lambda. (#2274)Bryce Guinta2018-07-124-1/+19
| | | | | Remove unnecessary break in checker utils for lambdas causing parent lambdas to be ignored. Close #760
* Refactor duplicate code in is_defined_beforeBryce Guinta2018-07-111-5/+1
| | | | isinstance can take multiple tuples
* Remove CODEOWNERS: good idea, but cannot realistically review every PRClaudiu Popa2018-07-111-2/+0
|
* Fix lint errorClaudiu Popa2018-07-111-1/+1
|
* frozenset is an iterating context for dict.values() and friendsClaudiu Popa2018-07-101-1/+1
|
* `trailing-comma-tuple` can be emitted for `return` statements as well.Claudiu Popa2018-07-104-1/+15
| | | | Close #2269
* Filter with should_analyze_file in parallel mode (#2264)Randall Leeds2018-07-102-14/+21
| | | | | | | | | | Each ChildLinter receives a file path and instantiates a linter to check that file. As such, all files are arguments to child linters in parallel mode. Therefore, the check for should_analyze_file must happen in the parent linter, where knowledge of the original arguments is available. Expand the custom should_analyze_file test to exercise parallel mode. Close #1885
* Infer the value of the truth_value before looking for consider-using-ternary ↵Claudiu Popa2018-07-083-4/+18
| | | | | | | | | | and simplifiable-boolean-expression The reason for that is that a Name node, for instance, will not have a bool_value() implementation, thus it will default to returning Uninferable. In order to avoid that, just infer the object before verifying anything about it. Related to #2058
* Do not emit consider-using-ternary when all the elements involved are a ↵Claudiu Popa2018-07-082-0/+6
| | | | Compare node (might not be simplifiable to a ternary).
* Remove test that spends more than 60 seconds to run.Claudiu Popa2018-07-062-12613/+0
|
* Fix test errors from fixing astroid.as_string()Bryce Guinta2018-07-066-12/+12
|
* Check Slice is type index (fix #2252)Konstantin Manna2018-07-052-0/+4
|
* Use code block for preview release (#2257)Steven M. Vascellaro2018-07-051-2/+2
|
* Prepare a new dev releaseClaudiu Popa2018-07-051-1/+1
|
* Emit consider-using-get only if the target is a Name, as this is the pattern ↵Claudiu Popa2018-07-052-0/+8
| | | | | | we try to detect Close #2254
* Fix lintClaudiu Popa2018-07-041-1/+3
|
* Only accept simple for-loop bodies when looking for consider-using-joinClaudiu Popa2018-07-042-5/+17
| | | | | | Also verify that the assignment targets are actually AssignName Close #2250
* Add note about prerelease in readme and github template (#2248)Bryce Guinta2018-07-042-0/+11
| | | | | | * Add note about preview release in github template * Add note about preview release supporting 3.7 in readme
* Fix wrong continued indentation (bad-continuation) (#2244)Steven M. Vascellaro2018-07-031-6/+2
| | | Fixes a pylint warning for wrong continued indentation (bad-continuation)
* Add docstrings for naming style classes (#2245)Steven M. Vascellaro2018-07-031-0/+4
| | | Add docstrings for SnakeCaseStyle, CamelCaseStyle, PascalCaseStyle, and UpperCaseStyle
* `ImportFrom` nodes correctly use the full name for the import sorting checks.Claudiu Popa2018-07-034-6/+14
| | | | Close #2181
* Expand ignored-argument-names include starred arguments and keyword ↵Bryce Guinta2018-07-034-2/+30
| | | | arguments (#2237)
* Acknowledge that ellipses are allowed in typing annotations (#2236)Bryce Guinta2018-07-024-1/+16
| | | Prevents false-positive bad-whitespace message
* Customize the issue template. Close #2230Claudiu Popa2018-06-294-13/+55
|
* Add build stages in travis.yml (#2219)Sushobhit2018-06-281-6/+14
|
* Fix of false positive ``ìnconsistent-return-statements`` (#2220)hippo912018-06-285-17/+35
| | | | | Correcting the way if statements are determined as return ended or not. Close #1782
* fix logic error in comment (#2217)Konstantin2018-06-281-1/+1
|
* Merge pull request #2209 from sushobhit27/fix_2177Sushobhit2018-06-25168-179/+234
|\ | | | | Add new checker useless-object-inheritance.
| * Merge branch 'master' into fix_2177Sushobhit2018-06-2222-85/+173
| |\ | |/ |/|