All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.py.rules.python.S1720.html Maven / Gradle / Ivy

The newest version!

Why is this an issue?

A string literal that is the first statement in a module, function, class, or method is a docstring. A docstring should document what a caller needs to know about the code. Information about what it does, what it returns, and what it requires are all valid candidates for documentation. Well written docstrings allow callers to use your code without having to first read it and understand its logic.

By convention, docstrings are enclosed in three sets of double-quotes.

Noncompliant code example

def my_function(a,b):

Compliant solution

def my_function(a,b):
      """Do X"""




© 2015 - 2025 Weber Informatics LLC | Privacy Policy