src/nitpick/plugins/text.py
def enforce_rules(self) -> Iterator[Fuss]:
        """Enforce rules for missing lines."""
        expected = OrderedSet(self._expected_lines())
        actual = OrderedSet(self.file_path.read_text().split("\n"))
        missing = expected - actual
        if missing:
            yield self.reporter.make_fuss(Violations.MISSING_LINES, "\n".join(sorted(missing)))
Enforce rules for missing lines.
Enforce rules for missing lines.
Enforce rules for missing lines .
def enforce_rules(self) -> Iterator[Fuss]:
        expected = OrderedSet(self._expected_lines())
        actual = OrderedSet(self.file_path.read_text().split("\n"))
        missing = expected - actual
        if missing:
            yield self.reporter.make_fuss(Violations.MISSING_LINES, "\n".join(sorted(missing)))
def enforce_rules ( self ) -> Iterator [ Fuss ] : expected = OrderedSet ( self . _expected_lines ( ) ) actual = OrderedSet ( self . file_path . read_text ( ) . split ( "\n" ) ) missing = expected - actual if missing : yield self . reporter . make_fuss ( Violations . MISSING_LINES , "\n" . join ( sorted ( missing ) ) )
Enforce rules for missing lines.
Enforce rules for missing lines .
"""Enforce rules for missing lines."""
self