Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CodeAnalyzer:
- def __init__(self):
- self.file_path = ''
- self.file = ''
- self.line = 0
- def reader(self):
- self.file = open(self.file_path, 'r')
- for line in self.file:
- self.line += 1
- if len(line) > 79:
- print(f'Line {self.line}: S001 Too long')
- else:
- continue
- def main(self):
- self.file_path = input()
- self.reader()
- if __name__ == '__main__':
- code = CodeAnalyzer()
- code.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement