forked from astral-sh/ruff
-
Notifications
You must be signed in to change notification settings - Fork 0
Consecutive underscores in name #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| WPS116 | 473 | 473 | 0 | 0 | 0 |
| ANN001 | 412 | 0 | 412 | 0 | 0 |
| ANN201 | 198 | 0 | 198 | 0 | 0 |
| COM812 | 170 | 0 | 170 | 0 | 0 |
| PT019 | 76 | 0 | 76 | 0 | 0 |
| ARG002 | 60 | 0 | 60 | 0 | 0 |
| D102 | 35 | 0 | 35 | 0 | 0 |
| SLF001 | 33 | 0 | 33 | 0 | 0 |
| PLR6301 | 32 | 0 | 32 | 0 | 0 |
| D212 | 29 | 1 | 28 | 0 | 0 |
| D103 | 27 | 0 | 27 | 0 | 0 |
| PLC0415 | 24 | 0 | 24 | 0 | 0 |
| ANN202 | 21 | 0 | 21 | 0 | 0 |
| C408 | 20 | 0 | 20 | 0 | 0 |
| CPY001 | 18 | 0 | 18 | 0 | 0 |
| ANN002 | 16 | 0 | 16 | 0 | 0 |
| ANN003 | 16 | 0 | 16 | 0 | 0 |
| DOC201 | 15 | 0 | 15 | 0 | 0 |
| T201 | 14 | 0 | 14 | 0 | 0 |
| ARG001 | 11 | 0 | 11 | 0 | 0 |
| RUF012 | 11 | 0 | 11 | 0 | 0 |
| F841 | 11 | 0 | 11 | 0 | 0 |
| D200 | 10 | 1 | 9 | 0 | 0 |
| PGH003 | 10 | 0 | 10 | 0 | 0 |
| D205 | 10 | 0 | 10 | 0 | 0 |
| AIR001 | 9 | 0 | 9 | 0 | 0 |
| ANN204 | 8 | 0 | 8 | 0 | 0 |
| D101 | 8 | 0 | 8 | 0 | 0 |
| PLR0913 | 7 | 0 | 7 | 0 | 0 |
| S108 | 7 | 0 | 7 | 0 | 0 |
| D100 | 6 | 0 | 6 | 0 | 0 |
| SIM117 | 6 | 0 | 6 | 0 | 0 |
| SIM910 | 6 | 0 | 6 | 0 | 0 |
| D400 | 6 | 0 | 6 | 0 | 0 |
| PLC1901 | 5 | 0 | 5 | 0 | 0 |
| D415 | 5 | 0 | 5 | 0 | 0 |
| D401 | 5 | 0 | 5 | 0 | 0 |
| N806 | 4 | 0 | 4 | 0 | 0 |
| C901 | 4 | 0 | 4 | 0 | 0 |
| PLR0917 | 4 | 0 | 4 | 0 | 0 |
| PTH123 | 4 | 0 | 4 | 0 | 0 |
| ARG003 | 4 | 0 | 4 | 0 | 0 |
| PTH118 | 4 | 0 | 4 | 0 | 0 |
| D202 | 4 | 0 | 4 | 0 | 0 |
| S101 | 4 | 0 | 4 | 0 | 0 |
| PLR0915 | 3 | 0 | 3 | 0 | 0 |
| PLW2901 | 3 | 0 | 3 | 0 | 0 |
| FBT003 | 3 | 0 | 3 | 0 | 0 |
| RUF005 | 3 | 0 | 3 | 0 | 0 |
| TRY003 | 3 | 0 | 3 | 0 | 0 |
| EM101 | 3 | 0 | 3 | 0 | 0 |
| PTH107 | 3 | 0 | 3 | 0 | 0 |
| ANN401 | 3 | 0 | 3 | 0 | 0 |
| PLR0912 | 3 | 0 | 3 | 0 | 0 |
| E501 | 2 | 0 | 2 | 0 | 0 |
| D107 | 2 | 0 | 2 | 0 | 0 |
| PLW0603 | 2 | 0 | 2 | 0 | 0 |
| E731 | 2 | 0 | 2 | 0 | 0 |
| B015 | 2 | 0 | 2 | 0 | 0 |
| PT006 | 2 | 0 | 2 | 0 | 0 |
| ARG004 | 2 | 0 | 2 | 0 | 0 |
| PLR2004 | 2 | 0 | 2 | 0 | 0 |
| PLC2701 | 2 | 0 | 2 | 0 | 0 |
| S105 | 2 | 0 | 2 | 0 | 0 |
| TCH003 | 2 | 0 | 2 | 0 | 0 |
| ERA001 | 2 | 0 | 2 | 0 | 0 |
| FURB101 | 2 | 0 | 2 | 0 | 0 |
| PLW1514 | 2 | 0 | 2 | 0 | 0 |
| FIX002 | 2 | 0 | 2 | 0 | 0 |
| TD002 | 2 | 0 | 2 | 0 | 0 |
| TD003 | 2 | 0 | 2 | 0 | 0 |
| TCH002 | 2 | 0 | 2 | 0 | 0 |
| TRY300 | 2 | 0 | 2 | 0 | 0 |
| D404 | 2 | 0 | 2 | 0 | 0 |
| A001 | 2 | 0 | 2 | 0 | 0 |
| SIM108 | 2 | 0 | 2 | 0 | 0 |
| B007 | 2 | 0 | 2 | 0 | 0 |
| BLE001 | 1 | 0 | 1 | 0 | 0 |
| RET504 | 1 | 0 | 1 | 0 | 0 |
| S324 | 1 | 0 | 1 | 0 | 0 |
| N813 | 1 | 0 | 1 | 0 | 0 |
| S606 | 1 | 0 | 1 | 0 | 0 |
| B010 | 1 | 0 | 1 | 0 | 0 |
| PLW0108 | 1 | 0 | 1 | 0 | 0 |
| RUF022 | 1 | 0 | 1 | 0 | 0 |
| RET501 | 1 | 0 | 1 | 0 | 0 |
| S608 | 1 | 0 | 1 | 0 | 0 |
| FBT002 | 1 | 0 | 1 | 0 | 0 |
| S404 | 1 | 0 | 1 | 0 | 0 |
| PLR0904 | 1 | 0 | 1 | 0 | 0 |
| PLR1704 | 1 | 0 | 1 | 0 | 0 |
| PTH120 | 1 | 0 | 1 | 0 | 0 |
| PTH110 | 1 | 0 | 1 | 0 | 0 |
| ANN206 | 1 | 0 | 1 | 0 | 0 |
| DTZ001 | 1 | 0 | 1 | 0 | 0 |
| UP007 | 1 | 0 | 1 | 0 | 0 |
| TRY002 | 1 | 0 | 1 | 0 | 0 |
| D105 | 1 | 0 | 1 | 0 | 0 |
| UP035 | 1 | 0 | 1 | 0 | 0 |
| RUF031 | 1 | 0 | 1 | 0 | 0 |
| PLR6201 | 1 | 0 | 1 | 0 | 0 |
| A002 | 1 | 0 | 1 | 0 | 0 |
| RET505 | 1 | 0 | 1 | 0 | 0 |
| DOC501 | 1 | 0 | 1 | 0 | 0 |
| D209 | 1 | 0 | 1 | 0 | 0 |
| SIM103 | 1 | 0 | 1 | 0 | 0 |
| PLR0914 | 1 | 0 | 1 | 0 | 0 |
| FBT001 | 1 | 0 | 1 | 0 | 0 |
Lokejoke
added a commit
that referenced
this pull request
Dec 3, 2024
* Created plugin for wps-light * [wps-light] Add consecutive-undescores-in-name (WPS116) * Accepted test snap * [wps-light] Implemented use-of-unused-marked-variables (WPS121) * Accepted test snap (#1) Co-authored-by: xbrtnik1 <524841@mail.muni.cz> * [wps-light] Implemented getter-without-return-value (WPS463) * Corrected typo * This branch should be only a placeholder for future rules without merging * [wps-light] Implement list-multiplication (WPS435) * Format rule * Fixed fmt of docs example * Add rule * Md doc formatted * Md doc formatted * Md doc formatted * Seperate this rule from others * Seperate this rule from others * Seperate rule * Added rule underscores_in_number (WPS303) * Add always fixable violation attribute * fix doc fault * Fixed rule doc * Implemented assignment-to-subscript-slice (362) * Fixed rule docs * fix comments * last doc changes * Implemented reserved-argument-as-variable (WPS117) * implemented wps rule wrong class body content * Reformated * Implemented wps rule in-compare-with-single-item-container * Implemented wps rule in-compare-with-single-item-container * Implemented wps rule unused-variable- * Allowed IfStmt in stubs, allowed pass and ellipsis * return None is also valid getter output * updated snap * Query reworked; changed fix_title * violation changes * Updated snap * removed old snap * Restructured filters, filtering out non-dummy variables * Edited error msgs and filtering * Fmt * Removed unused code * Catching all dummy vars * Renamed rule to dummy-variable-accessed * Fix is now available * Update crates/ruff_linter/src/rules/ruff/rules/dummy_variable_accessed.rs Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Diagnostic is applied only on the binding definition, changed visibility of is_keyword * Last touches, no changes to snap though * fmt * Applied proposed changes * idc * added all wps-plugin rules * fmt * added --------- Co-authored-by: xbrtnik1 <524841@mail.muni.cz> Co-authored-by: xbrtnik1 <xbrtnik1@mail.muni.cz> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Test Plan