Skip to content

Commit

Permalink
Refactored: custom tests, presentation overview and dry vios
Browse files Browse the repository at this point in the history
  • Loading branch information
Malutthias committed Mar 21, 2024
1 parent 15d301d commit 879c758
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 332 deletions.
3 changes: 0 additions & 3 deletions logprep/abc/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,12 @@ class Config(Component.Config):

__slots__ = [
"rule_class",
"has_custom_tests",
"_event",
"_specific_tree",
"_generic_tree",
]

rule_class: "Rule"
has_custom_tests: bool
_event: dict
_specific_tree: RuleTree
_generic_tree: RuleTree
Expand All @@ -98,7 +96,6 @@ def __init__(self, name: str, configuration: "Processor.Config", logger: Logger)
generic_rules_targets=self._config.generic_rules,
specific_rules_targets=self._config.specific_rules,
)
self.has_custom_tests = False

@property
def _specific_rules(self):
Expand Down
1 change: 0 additions & 1 deletion logprep/processor/clusterer/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def __init__(self, name: str, configuration: Processor.Config, logger: Logger):
super().__init__(name=name, configuration=configuration, logger=logger)
self.matching_rules = []
self.sps = SignaturePhaseStreaming()
self.has_custom_tests = True

def process(self, event: dict):
self.matching_rules = []
Expand Down
Loading

0 comments on commit 879c758

Please sign in to comment.