XML rules
tx0 checks .xml files and XML formats such as .csproj and .xsl with 61 rules, 20 of them in the default tier. Files that say a tool generated them are skipped. Each rule's page explains what it finds and what it leaves alone.
Default: 20 rules
Bugs and security problems with measured precision. They run without a tx0.toml.
-
tx0/xml:android-debuggabledefaultAn Android app is built debuggable
-
tx0/xml:cdata-end-in-textdefaultText holds the end marker of a CDATA section
-
tx0/xml:control-characterdefaultText holds a control character that XML does not allow
-
tx0/xml:declaration-not-firstdefaultThe XML declaration is not at the start of the file
-
tx0/xml:dotnet-duplicate-packagedefaultA .NET project references the same package twice
-
tx0/xml:double-dash-in-commentdefaultA comment contains two hyphens in a row
-
tx0/xml:duplicate-attributedefaultAn element has the same attribute twice
-
tx0/xml:encoding-mismatchdefaultThe declared encoding differs from the encoding of the file
-
tx0/xml:invalid-standalonedefaultThe standalone declaration is neither yes nor no
-
tx0/xml:less-than-in-valuedefaultAn attribute value holds an unescaped less-than sign
-
tx0/xml:maven-duplicate-dependencydefaultA Maven dependency is declared twice in one list
-
tx0/xml:maven-duplicate-plugindefaultA Maven plugin is declared twice in one list
-
tx0/xml:maven-missing-model-versiondefaultA Maven project does not declare its model version
-
tx0/xml:several-root-elementsdefaultA document has more than one root element
-
tx0/xml:spring-duplicate-beandefaultTwo Spring beans in one file have the same id
-
tx0/xml:text-outside-rootdefaultA document has text outside its root element
-
tx0/xml:undeclared-prefixdefaultA name uses a namespace prefix that is not declared
-
tx0/xml:undefined-entitydefaultA reference names an entity that is not defined
-
tx0/xml:unescaped-ampersanddefaultAn ampersand does not start a reference
-
tx0/xml:web-undefined-servletdefaultA web.xml mapping names a servlet or filter that is not defined
Recommended: 30 rules
Likely bugs, resource and performance problems.
-
tx0/xml:android-backup-allowedrecommendedAn Android app lets its private data be backed up
-
tx0/xml:android-cleartext-configrecommendedA network security configuration permits cleartext or user certificates
-
tx0/xml:android-cleartext-trafficrecommendedAn Android app allows unencrypted network traffic
-
tx0/xml:android-exported-without-permissionrecommendedAn exported Android component has no permission
-
tx0/xml:android-implicit-exportrecommendedAn Android component with an intent filter does not say whether it is exported
-
tx0/xml:android-normal-permissionrecommendedA custom Android permission can be granted to any app
-
tx0/xml:android-secret-in-manifestrecommendedAn Android manifest holds a secret in a meta-data value
-
tx0/xml:android-shared-user-idrecommendedAn Android app shares its user id with other apps
-
tx0/xml:android-test-onlyrecommendedAn Android app is marked for tests only
-
tx0/xml:dotnet-absolute-hint-pathrecommendedA .NET reference points at an absolute path
-
tx0/xml:dotnet-floating-versionrecommendedA .NET package reference floats to whatever version is newest
-
tx0/xml:maven-dependency-without-versionrecommendedA Maven dependency has no version and nothing manages one
-
tx0/xml:maven-dynamic-versionrecommendedA Maven version is resolved anew on every build
-
tx0/xml:maven-insecure-repositoryrecommendedA Maven repository is reached over unencrypted HTTP
-
tx0/xml:maven-legacy-propertyrecommendedA Maven expression uses a deprecated property prefix
-
tx0/xml:maven-plugin-without-versionrecommendedA Maven build plugin has no version
-
tx0/xml:maven-skipped-testsrecommendedA Maven project turns its tests off
-
tx0/xml:maven-snapshot-in-releaserecommendedA released Maven project depends on a snapshot
-
tx0/xml:maven-system-scoperecommendedA Maven dependency uses the deprecated system scope
-
tx0/xml:password-in-configrecommendedA configuration file holds a password in plain text
-
tx0/xml:remote-dtdrecommendedThe document type declaration loads its DTD over unencrypted HTTP
-
tx0/xml:spring-csrf-disabledrecommendedA Spring Security configuration turns off protection against request forgery
-
tx0/xml:svg-event-handlerrecommendedAn SVG image holds an event handler
-
tx0/xml:svg-scriptrecommendedAn SVG image holds a script
-
tx0/xml:unknown-encodingrecommendedThe XML declaration names an encoding that does not exist
-
tx0/xml:web-constraint-without-authrecommendedA web.xml security constraint restricts nobody
-
tx0/xml:web-directory-listingrecommendedA web server lists the files of directories
-
tx0/xml:web-insecure-session-cookierecommendedThe session cookie of a web application is not http-only and secure
-
tx0/xml:web-method-constraintrecommendedA web.xml constraint covers only the methods it lists
-
tx0/xml:xslt-unescaped-outputrecommendedAn XSLT stylesheet writes input text without escaping it
Strict: 11 rules
Code that can be written more plainly.
-
tx0/xml:android-backup-unsetstrictAn Android app leaves backups of its private data on by default
-
tx0/xml:android-task-hijackingstrictAn Android activity can be joined by another app's task
-
tx0/xml:dotnet-end-of-life-frameworkstrictA .NET project targets a framework that is out of support
-
tx0/xml:dotnet-unsafe-blocksstrictA .NET project allows unsafe code
-
tx0/xml:external-entitystrictA document declares an external entity
-
tx0/xml:maven-missing-encodingstrictA Maven project does not set its source encoding
-
tx0/xml:nesting-depthstrictElements are nested deeper than the configured maximum
-
tx0/xml:todo-commentstrictA comment marks unfinished work
-
tx0/xml:web-long-sessionstrictA web application session lasts longer than the configured maximum
-
tx0/xml:web-missing-error-pagestrictA web application shows the container's default error page
-
tx0/xml:web-transport-not-confidentialstrictA protected web resource may be reached over unencrypted HTTP