Skip to content

Commit

Permalink
move rules into the Processor_2015 class
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnen committed Feb 21, 2018
1 parent 0801607 commit 58856b5
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion socorro/processor/processor_2015.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,42 @@ def __init__(self, config, rules=None, quit_check_callback=None):
else:
self.quit_check = lambda: False

rule_set = rules or list(default_rule_set)
rule_set = rules or [
# rules to change the internals of the raw crash
ProductRewrite,
ESRVersionRewrite,
PluginContentURL,
PluginUserComment,
# rules to transform a raw crash into a processed crash
IdentifierRule,
BreakpadStackwalkerRule2015,
ProductRule,
UserDataRule,
EnvironmentRule,
PluginRule,
AddonsRule,
DatesAndTimesRule,
OutOfMemoryBinaryRule,
JavaProcessRule,
Winsock_LSPRule,
# post processing of the processed crash
CrashingThreadRule,
CPUInfoRule,
OSInfoRule,
BetaVersionRule,
ExploitablityRule,
AuroraVersionFixitRule,
FlashVersionRule,
OSPrettyVersionRule,
TopMostFilesRule,
MissingSymbolsRule,
ThemePrettyNameRule,
MemoryReportExtraction,
# a set of classifiers to help with jit crashes
JitCrashCategorizeRule,
# generate signature now that we've done all the processing it depends on
SignatureGeneratorRule,
]

self.rules = []
for a_rule_class in rule_set:
Expand Down

0 comments on commit 58856b5

Please sign in to comment.