{"repo":"dlint-py/dlint","free":true,"listed":false,"github":"https://github.com/dlint-py/dlint","clone":"git clone https://github.com/dlint-py/dlint.git","description":"Dlint is a tool for encouraging best coding practices and helping ensure Python code is secure.","language":"Python","stars":177,"topics":["python","security","linter","static-analysis","flake8","dlint"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"Dlint Dlint is a tool for encouraging best coding practices and helping ensure Python code is secure. The most important thing I have done as a programmer in recent years is to aggressively pursue static code analysis. Even more valuable than the hundreds of serious bugs I have prevented with it is the change in mindset about the way I view software reliability and code quality. - John Carmack, 2011 For a static analysis project to succeed, developers must feel they benefit from and enjoy using it. - Lessons from Building Static Analysis Tools at Google For documentation and a list of rules see docs. Installing And double check that it was installed correctly: Note the dlint: 0.16.0 . Using Dlint builds on flake8 to perform its linting. This provides many useful features without re-inventing the wheel. CLI Let's run a simple check: - Why is this insecure? To learn more visit /docs/linters/DUO105.md . - Why DUO ? Dlint was originally developed by the Duo Labs team. The --select=DUO flag tells flake8 to only run Dlint lint rules. From here, we can easily run Dlint against a directory of Python code: To fine-tune your linting, check out the flake8 help: Inline Editor Dlint results can also be included inline in your editor for fast feedback. This typically requires an editor plugin or extension. Here are some starting points for common editors: - Vim: https://github.com/vim-syntastic/syntastic - Emacs: https://github.com/flycheck/flycheck - Sublime: https://github.com/SublimeLin","default_branch":null,"files":null,"tree":[],"storefront":"/r/dlint-py","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dlint-py/dlint/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}