Method: pylint.lint.pylinter.PyLinter._parse_error_mode
Calls: 1062, Exceptions: 0, Paths: 2Back
Path 1: 1056 calls (0.99)
None (1056)
1def _parse_error_mode(self) -> None:
2 """Parse the current state of the error mode.
3
4 Error mode: enable only errors; no reports, no persistent.
5 """
6 if not self._error_mode:
7 return
8
9 self.disable_noerror_messages()
10 self.disable("miscellaneous")
11 self.set_option("reports", False)
12 self.set_option("persistent", False)
13 self.set_option("score", False)
Path 2: 6 calls (0.01)
1def _parse_error_mode(self) -> None:
2 """Parse the current state of the error mode.
3
4 Error mode: enable only errors; no reports, no persistent.
5 """
6 if not self._error_mode:
7 return
8
9 self.disable_noerror_messages()
10 self.disable("miscellaneous")
11 self.set_option("reports", False)
12 self.set_option("persistent", False)
13 self.set_option("score", False)