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.

dummy_plugin.py 788B

123456789101112131415161718192021222324252627282930
  1. from pylint.checkers import BaseChecker
  2. class DummyPlugin1(BaseChecker):
  3. name = 'dummy_plugin'
  4. msgs = {'I9061': ('Dummy short desc 01', 'dummy-message-01', 'Dummy long desc')}
  5. options = (
  6. ('dummy_option_1', {
  7. 'type': 'string',
  8. 'metavar': '<string>',
  9. 'help': 'Dummy option 1',
  10. }),
  11. )
  12. class DummyPlugin2(BaseChecker):
  13. name = 'dummy_plugin'
  14. msgs = {'I9060': ('Dummy short desc 02', 'dummy-message-02', 'Dummy long desc')}
  15. options = (
  16. ('dummy_option_2', {
  17. 'type': 'string',
  18. 'metavar': '<string>',
  19. 'help': 'Dummy option 2',
  20. }),
  21. )
  22. def register(linter):
  23. linter.register_checker(DummyPlugin1(linter))
  24. linter.register_checker(DummyPlugin2(linter))