Files
openide/python/testData/grazie/Docs.py
Peter Gromov fc8165132e [grazie] ignore sentence capitalization issues in various doc tags
GitOrigin-RevId: e1563f745ea25399d4b62ae3661f38a76d8f24b6
2023-02-01 09:57:33 +00:00

80 lines
2.6 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# coding=utf-8
"""Module description <TYPO descr="Typo: In word 'eror'">eror</TYPO>"""
class ExampleClassWithNoTypos:
"""A group of *members*.
This class has no useful logic; it's just a documentation example.
Args:
name (str): the name of this group. And another sentence.
Attributes:
name (str): the name of this group. <warning descr="UPPERCASE_SENTENCE_START">and</warning> another sentence.
"""
def __init__(self, name):
self.name = name
def good_function(self, member):
"""
Adds a [member] to this group.
Args:
member (str): member to add to the group.
Returns:
int: the new size of the group.
"""
return 1 # no error comment
class ExampleClassWithTypos:
"""It <warning descr="IT_VBZ">are</warning> friend there
Args:
name (str): the <warning descr="COMMA_WHICH">name which</warning> group and some other English text
Attributes:
name (str): the <warning descr="COMMA_WHICH">name which</warning> group and some other English text
"""
def __init__(self, name):
self.name = name
def bad_function(self, member):
"""
It <warning descr="IT_VBZ">add</warning> a [member] to this <TYPO descr="Typo: In word 'grooup'">grooup</TYPO>.
Args:
member (str): member to add to the group.
Returns:
int: the new size of <warning descr="DT_DT">a the</warning> group.
"""
return 1 # It <warning descr="IT_VBZ">are</warning> <TYPO descr="Typo: In word 'eror'">eror</TYPO> comment
class ForMultiLanguageSupport:
"""
В коробке лежало <warning descr="Sklonenije_NUM_NN">пять карандаша</warning>.
А <warning descr="grammar_vse_li_noun">все ли ошибка</warning> найдены?
Это случилось <warning descr="INVALID_DATE">31 ноября</warning> 2014 г.
За весь вечер она <warning descr="ne_proronila_ni">не проронила и слово</warning>.
Собрание состоится в <warning descr="RU_COMPOUNDS">конференц зале</warning>.
<warning descr="WORD_REPEAT_RULE">Он он</warning> ошибка.
"""
def __init__(self):
"""
Er überprüfte die Rechnungen noch <TYPO descr="Typo: In word 'einal'">einal</TYPO>, um ganz <warning descr="COMPOUND_INFINITIV_RULE">sicher zu gehen</warning>.
Das ist <warning descr="FUEHR_FUER">führ</warning> Dich!
Das <TYPO descr="Typo: In word 'daert'">daert</TYPO> geschätzt fünf <warning descr="MANNSTUNDE">Mannstunden</warning>.
"""
pass