- String statement has no effect - but was a "docstring" for a global variable
- Consider f-string instead of manual format...
- Consider
x not in {a, b}instead ofx != a and x != b - Consider
raise NewException( ... ) from OldException - NamedTemporaryFile/urlopen/subprocess.Popen() - consider context manager - NamedTemporaryFile should have been!
- Catching too wide exception type - Exception - bleh...
- Override changes number of args.
- Tuple unpacking - unused variables should be
_ - Redefining builtin
rangein function parameter. - Do not use
len( list )to check emptiness - Assing a return value of a function with no return - true, but intentional. It's just that such server has never come about.
- Unnecessary lambda - just pass the function!
- Eager formatting in logging - true.
- Bad for loop - for idx in range( len( thing ) )
- Deprecated
logger.warn() - Too many args for
logger.error()? if a >= 0 and 0 <= b- simplify chained comparison between operands - HOW?- Using a possibly undefined variable!
- Dead code detected!
- Mutable default argument is dangerous.
class Foo(object)->class Foo- Consider iterating with items() - actually a correct suggestion!
- Mutable default argument is dangerous.
shared_appis global bun not initialized. True, but...- Consider
raise NewException( ... ) from OldException - Using open for writing without specifying encoding.
- Change
not x != ytox == y @patchbreaks pylint parsing.- Tuple unpacking - unused variables should be
_ - For loop - unused variables should be
_ - Implicit string concatenation found
- Member function
foo(*args)should haveselfas the first argument. - Redefinition of a function - looks like a copy/paste error. Twice! Well, a bunch of times!
- f-string insead of manual format
- Missing abstract member function override? Must be wrong!
- Unnecessary lambda - just pass the function!
- Redefining builtin
tuple/rangein function parameter. app.post_json( ... ).jsonassigned to nothing.- Calling
requests.requestwithout specifying a timeout. - Some W0640/E0601 that seem like false positives.
- Catching too why exception type - Exception - bleh...
- Simplify
x == a or x == btox in {a, b} - f-string insead of manual format
- Mutable default argument is dangerous.
import ycm_core as ycm_core- no rename- Use
isinstance()rather thantype()for a typecheck... No! - Redefining builtin
rangein function parameter. - Confusion about bottle - same thing as with
@patch. Too much magic.
- Too many branches in FindLatestsMSVC
- Optimize
str.split('.')[0]tostr.split('.', maxsplit=1)[0]! - Consider
raise NewException( ... ) from OldException - Unable to import winreg - because I'm on linux.
- Tuple unpacking - unused variables should be
_ - Trailing comma
- open - consider context manager - NamedTemporaryFile should have been!
- Using open for writing without specifying encoding.
- Duplicate import
- Unused import
- Did you really want to compare with a callable? Yes... yes, I did.
- f-string insead of manual format
- Consider iterating with items() - actually a correct suggestion!
- Redefining builtin
dirin function parameter. - Too many return statements in
UnicodeToUtf8. - Shadowing argument with local.
- Using open for writing without specifying encoding.
Oh cool. Didn’t see the PR yet! Thanks.