-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to store all current violations of a rule and successively only report new ones #181
Commits on Jul 4, 2019
-
Make CollectsLines deprecated. The API seems pretty useless, naturall…
…y pretty much every implementation will simply add the lines of the violations to the supplied CollectsLines, and every client that is interested in the raw message lines has to write a dummy wrapper around a collection to access the lines. Thus a simple method getDescriptionLines() seems way more reasonable here. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for a3c447d - Browse repository at this point
Copy the full SHA a3c447dView commit details -
Initial draft of an "FreezingArchRule" capable to wrap a given ArchRu…
…le to provide support for legacy applications where this rule will initially be violated many times. Provides two hooks for extension, first a ViolationStore to determine how the given result will be stored. This should enable to pass a simple file based store, but also implement a custom store that persists to a database or a REST endpoint. Second a ViolationLineMatcher to configure how "rough" stored lines of violations should be compared to actual lines of violations on consecutive evaluation of the given rule. This way it is possible to ignore line numbers or details of given messages to make the comparison more robust against refactorings. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 4cd639f - Browse repository at this point
Copy the full SHA 4cd639fView commit details -
Extended ArchConfiguration to make it possible to add further propert…
…ies for example for FreezingArchRule as a first client of custom properties. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 350257e - Browse repository at this point
Copy the full SHA 350257eView commit details -
Added DefaultViolationStoreFactory which returns a simple file based …
…ViolationStore. Also made ViolationStore to use configurable through archunit.properties. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 278e8b7 - Browse repository at this point
Copy the full SHA 278e8b7View commit details -
Made ViolationLineMatcher configurable via archunit.properties.
Improved visibility by moving everything (default)factory specific to package private classes. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 7da683c - Browse repository at this point
Copy the full SHA 7da683cView commit details -
TextFileBasedViolationStore should create configured folder if it doe…
…s not exist, instead of throwing an exception. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 2baef23 - Browse repository at this point
Copy the full SHA 2baef23View commit details -
Improved handling of known violations. So far if a condition event ad…
…ded multiple lines (like AndConditionEvent) and a new line appeared, all lines would be reported as violation. Now only the new line will be reported. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for fed0a45 - Browse repository at this point
Copy the full SHA fed0a45View commit details -
Fixed violation handling for filtered events. Also added some logging.
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 103e1d3 - Browse repository at this point
Copy the full SHA 103e1d3View commit details -
Added examples and integration test
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 0479763 - Browse repository at this point
Copy the full SHA 0479763View commit details -
Improve FreezingArchRule to only use LineMatcher once. Also fixed beh…
…avior where FreezingArchRule would not fail if the count of an already recorded violation with respect to the given matcher was raised. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 46b296b - Browse repository at this point
Copy the full SHA 46b296bView commit details -
Improve performance: Using a regex within the default line matcher ha…
…s a massive performance impact (tested on hibernate core where evaluation time was reduced by 50% with this algorithm) Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for bf8274a - Browse repository at this point
Copy the full SHA bf8274aView commit details -
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 7747711 - Browse repository at this point
Copy the full SHA 7747711View commit details -
some review comments on FreezingArchRule PR#181
Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for e1e2c4b - Browse repository at this point
Copy the full SHA e1e2c4bView commit details -
some review comments on FreezingArchRule PR#181 (documentation)
Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for c8c98c6 - Browse repository at this point
Copy the full SHA c8c98c6View commit details -
Further improve docs by documenting how to configure ViolationStore a…
…nd ViolationLineMatcher within archunit.properties. Also introduced custom exception for failed initialization of configured ViolationLineMatcher instead of (falsely) throwing a StoreInitializationFailedException. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for afc10e6 - Browse repository at this point
Copy the full SHA afc10e6View commit details -
Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 41b25d9 - Browse repository at this point
Copy the full SHA 41b25d9View commit details -
allow for rule-violations stored in files whose name is not a UUID
Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 5feb2fa - Browse repository at this point
Copy the full SHA 5feb2faView commit details -
Log of existing rule should not be level error, since this will happe…
…n during the normal flow if an existing stored violation is adjusted. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Configuration menu - View commit details
-
Copy full SHA for 8b0b6a9 - Browse repository at this point
Copy the full SHA 8b0b6a9View commit details