##// END OF EJS Templates
deps: also report unseen known violations
Mads Kiilerich -
r8600:c7663810 default
parent child Browse files
Show More
@@ -153,7 +153,7 b' kallithea.templates.py'
153 shown_modules = normal_modules | top_modules
153 shown_modules = normal_modules | top_modules
154
154
155 # break the chains somehow - this is a cleanup TODO list
155 # break the chains somehow - this is a cleanup TODO list
156 known_violations = [
156 known_violations = set([
157 ('kallithea.lib.auth_modules', 'kallithea.lib.auth'), # needs base&facade
157 ('kallithea.lib.auth_modules', 'kallithea.lib.auth'), # needs base&facade
158 ('kallithea.lib.utils', 'kallithea.model'), # clean up utils
158 ('kallithea.lib.utils', 'kallithea.model'), # clean up utils
159 ('kallithea.lib.utils', 'kallithea.model.db'),
159 ('kallithea.lib.utils', 'kallithea.model.db'),
@@ -166,7 +166,7 b' known_violations = ['
166 ('kallithea.model', 'kallithea.lib.hooks'), # clean up hooks
166 ('kallithea.model', 'kallithea.lib.hooks'), # clean up hooks
167 ('kallithea.model', 'kallithea.model.scm'),
167 ('kallithea.model', 'kallithea.model.scm'),
168 ('kallithea.model.scm', 'kallithea.lib.hooks'),
168 ('kallithea.model.scm', 'kallithea.lib.hooks'),
169 ]
169 ])
170
170
171 extra_edges = [
171 extra_edges = [
172 ('kallithea.config', 'kallithea.controllers'), # through TG
172 ('kallithea.config', 'kallithea.controllers'), # through TG
@@ -271,6 +271,8 b' Usage:'
271
271
272 # verify dependencies by untangling dependency chain bottom-up:
272 # verify dependencies by untangling dependency chain bottom-up:
273 todo = set(normalized_dep_edges)
273 todo = set(normalized_dep_edges)
274 unseen_violations = known_violations.difference(todo)
275 assert not unseen_violations, unseen_violations
274 for x in known_violations:
276 for x in known_violations:
275 todo.remove(x)
277 todo.remove(x)
276
278
General Comments 0
You need to be logged in to leave comments. Login now