Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docstrings.py 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # pylint: disable=R0201
  2. # -1: [missing-docstring]
  3. from __future__ import print_function
  4. # +1: [empty-docstring]
  5. def function0():
  6. """"""
  7. # +1: [missing-docstring]
  8. def function1(value):
  9. # missing docstring
  10. print(value)
  11. def function2(value):
  12. """docstring"""
  13. print(value)
  14. def function3(value):
  15. """docstring"""
  16. print(value)
  17. # +1: [missing-docstring]
  18. class AAAA(object):
  19. # missing docstring
  20. ## class BBBB:
  21. ## # missing docstring
  22. ## pass
  23. ## class CCCC:
  24. ## """yeah !"""
  25. ## def method1(self):
  26. ## pass
  27. ## def method2(self):
  28. ## """ yeah !"""
  29. ## pass
  30. # +1: [missing-docstring]
  31. def method1(self):
  32. pass
  33. def method2(self):
  34. """ yeah !"""
  35. pass
  36. # +1: [empty-docstring]
  37. def method3(self):
  38. """"""
  39. pass
  40. def __init__(self):
  41. pass
  42. class DDDD(AAAA):
  43. """yeah !"""
  44. def __init__(self):
  45. AAAA.__init__(self)
  46. # +1: [empty-docstring]
  47. def method2(self):
  48. """"""
  49. pass
  50. def method3(self):
  51. pass
  52. # +1: [missing-docstring]
  53. def method4(self):
  54. pass
  55. # pylint: disable=missing-docstring
  56. def function4():
  57. pass
  58. # pylint: disable=empty-docstring
  59. def function5():
  60. """"""
  61. pass
  62. def function6():
  63. """ I am a {} docstring.""".format("good")