forbidden-apis
Pylint
forbidden-apis | Pylint | |
---|---|---|
4 | 29 | |
314 | 5,127 | |
0.0% | 0.8% | |
6.6 | 9.6 | |
about 2 months ago | 7 days ago | |
Java | Python | |
Apache License 2.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
forbidden-apis
-
Stop Using Utcnow and Utcfromtimestamp
> All this stuff would be a lot easier if timezones always had to be stated explicitly.
On Java, you can use the forbidden-apis build plugin (https://github.com/policeman-tools/forbidden-apis) to fail the build whenever a timezone or locale or charset is not specified explicitly (it forbids the methods from the Java API which use an implicit timezone/locale/charset). I don't know whether there's something similar for Python; it might be harder because Python is much more dynamic (though it might be possible to use monkeypatching to warn whenever the bad methods are used).
-
Decluttering Google Guava
Is https://github.com/policeman-tools/forbidden-apis something that might help you in the interim?
-
What are some useful static analyzers for Java?
Besides the classic pmd/stopbugs/jacoco/owasp, a favorite of mine is forbidden-apis.
-
Retrofit Java
Regarding the "deleting them if not necessary any or are deprecated or do not make sense anymore ", something you can use today is this nice maven plugin:forbidden-apis.
Pylint
-
W1203: logging-fstring-interpolation (Solved)
A little introduction about pylint. Pylint is a static code analyzer, it analyses your code without actually running it. Pylint looks for potential errors, gives suggestions on coding standards that your code is not adhering to, potential places where refactoring might help, and also warnings about smelly code.
-
Enhancing Python Code Quality: A Comprehensive Guide to Linting with Ruff
Pylint, on the other hand, focuses on code analysis and style checking. It offers extensive customization options and supports various coding standards. Pylint is known for its comprehensive reports and ability to detect a wide range of code issues.
-
Options for configuration of python libraries - Stack Overflow
In my opinion, the best way to expose configuration options is to read and parse them from the project's pyproject.toml file. Here's how Pylint handles it.
-
Pylint strict base configuration
I even contributed to Pylint by submitting a new rule a few years ago : implicit-str-concat.
-
Premier League Project Infrastructure Update
Implemented code formatting with Black and linting with Pylint in my CI pipeline. Here is my updated GitHub Actions Workflow file: ci.yml
-
Improve your Django Code with pre-commit
One last thing to do before running the hooks is to create a config file, just like we did with flake8. For this you are going to create a pylintrc file at the roor of your project and copy the contents of the pylintrc file from the pylint repo (here is the link to it).
- Even the Pylint codebase uses Ruff
What are some alternatives?
jreleaser - :rocket: Release projects quickly and easily with JReleaser
Flake8 - flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
gradle-errorprone-plugin - Gradle plugin to use the error-prone compiler for Java
pylama - Code audit tool for python.
playforia-minigolf - Client & Server for Minigolf Game known from Playforia/Playray/Appeli. Written in Java.
black - The uncompromising Python code formatter
find-sec-bugs - The SpotBugs plugin for security audits of Java web applications and Android applications. (Also work with Kotlin, Groovy and Scala projects)
prospector - Inspects Python source files and provides information about type and location of classes, methods etc
rewrite - Automated mass refactoring of source code.
autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.
fb-contrib - a FindBugs/SpotBugs plugin for doing static code analysis for java code bases
ruff - An extremely fast Python linter and code formatter, written in Rust.