We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Deadcode - a tool to find and fix unused (dead) Python code

00:00

Formale Metadaten

Titel
Deadcode - a tool to find and fix unused (dead) Python code
Serientitel
Anzahl der Teile
131
Autor
Mitwirkende
Lizenz
CC-Namensnennung - keine kommerzielle Nutzung - Weitergabe unter gleichen Bedingungen 3.0 Unported:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen und nicht-kommerziellen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen und das Werk bzw. diesen Inhalt auch in veränderter Form nur unter den Bedingungen dieser Lizenz weitergeben
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
No longer needed code creates technical debt if it is not removed from the code base. Unused code has to be maintained, it complicates code base and increases cognitive load. It might even depend on no longer necessary dependencies with vulnerabilities and might increase attack surface. Therefore, removing dead code saves time, money and reduces security risks. Recently, Ruff has became a de facto linter, which provides almost all existing linting rules from other linters. However, it is only capable to detect locally unused Python code, which is only a tiny portion of unused code. Vulture is the best known tool for detecting globally unused Python code. However, its configuration is not very flexible and disabling false positives in a larger code base might require a lot of effort. Also, unused code detection is sometimes inaccurate, because scopes are not taken into account, when detecting unused code. This presentation introduces a new Python package called `deadcode`, which tries to move globally unused Python code detection to the next level. First, it provides a large set of options to flexibly disable various types of false positives. Second, deadcode implements more rules for detecting unused code than Vulture. Third, an improved strategy which tracks scopes and namespaces into account is being used to more accurately identify unused code items. Fourth, a --fix option is provided, which allows to automatically remove detected unused code items. In addition, an idea to prune Python code in order to reduce its size will be consider, which might be relevant when serving Python code in a browser. Lets make Python ecosystem even more awesome!
CodeAggregatzustandStrom <Mathematik>Strategisches SpielTypentheorieCodeCoxeter-GruppeBenutzerfreundlichkeitStrategisches SpielMereologieAggregatzustandComputeranimationVorlesung/Konferenz
AggregatzustandCodeGarbentheorieStrom <Mathematik>VerschiebungsoperatorBitrateKanalkapazitätInformationsverarbeitungVersionsverwaltungComputersicherheitBruchrechnungVariableSchlussregelCodeBenutzerfreundlichkeitVersionsverwaltungKanalkapazitätParametersystemStellenringMomentenproblemCASE <Informatik>NummernsystemAttributierte GrammatikMeta-TagAdditionOverhead <Kommunikationstechnik>Klasse <Mathematik>VariableBruchrechnungComputersicherheitOrtsoperatorEndliche ModelltheorieKonfiguration <Informatik>SchlussregelSoftwareschwachstelleMultiplikationsoperatorAutorisierungMatrizenrechnungData MiningSoftwarewartungComputeranimation
GarbentheoriePrototypingCodeVerschiebungsoperatorTypentheorieMaß <Mathematik>Elektronische PublikationSehne <Geometrie>Vollständiger VerbandVerteilte ProgrammierungKategorie <Mathematik>TermBitrateKonfiguration <Informatik>Ganze FunktionKlasse <Mathematik>VariableFunktion <Mathematik>SortierverfahrenVererbungshierarchieRechenwerkDatenmodellEndliche ModelltheorieCodeSchlussregelFahne <Mathematik>TypentheorieElektronische PublikationDifferenz <Mathematik>Konfiguration <Informatik>BenutzerfreundlichkeitVererbungshierarchieOrtsoperatorKlasse <Mathematik>DifferenteEndliche ModelltheorieBildgebendes VerfahrenTermArithmetischer AusdruckMereologieProjektive EbeneCASE <Informatik>GeradeZahlensystemVollständigkeitTUNIS <Programm>Computeranimation
GarbentheorieFunktion <Mathematik>HochdruckKlasse <Mathematik>InstantiierungSystem-on-ChipOffene MengeVerschiebungsoperatorInstallation <Informatik>CodeVariableZahlensystemMailing-ListeCLIFunktion <Mathematik>Elektronische PublikationGeradeBenutzerfreundlichkeitTUNIS <Programm>CodeOrtsoperatorDifferenz <Mathematik>Konfiguration <Informatik>Installation <Informatik>Computeranimation
CodeGarbentheorieRelation <Informatik>Abstrakter SyntaxbaumKomplex <Algebra>Strategisches SpielMereologieCodeCoxeter-GruppeNamensraumGeradeBitCASE <Informatik>TaskResultanteZweiSoundverarbeitungRelativitätstheorieAbstrakte SyntaxKlasse <Mathematik>AssoziativgesetzFaserbündelBrowserMetadatenHuffman-CodeGrenzschichtablösungAbstrakter SyntaxbaumKomplex <Algebra>Computeranimation
CodeVerschiebungsoperatorPseudodifferentialoperatorFreewareSinusfunktionSystem-on-ChipZweiGewöhnliche DifferentialgleichungSatellitensystemSchriftzeichenerkennungVersuchsplanungObjektorientiertes DesignCodeBefehl <Informatik>Radikal <Mathematik>Plug inDynamisches SystemProgrammbibliothekHydrostatikFunktionalMailing-ListeKette <Mathematik>Schreib-Lese-KopfMereologieRechter WinkelCASE <Informatik>Produkt <Mathematik>BenutzerfreundlichkeitGeradeSprachsyntheseVariableReelle ZahlSystemaufrufMultiplikationsoperatorKonfiguration <Informatik>RefactoringPrototypingBitAbstraktionsebeneProjektive EbeneMathematikDelisches ProblemMathematische LogikAlgorithmische ProgrammierspracheWeb-SeiteNetiquetteImplementierungSoftwareentwicklerAlgorithmusInterface <Schaltung>Quick-SortSchlussregelCracker <Computerkriminalität>HyperbelverfahrenComputeranimationVorlesung/KonferenzBesprechung/Interview
Transkript: Englisch(automatisch erzeugt)