Fix types for lint warnings data
This commit is contained in:
parent
9eb1fa079c
commit
0113843a72
1 changed files with 52 additions and 11 deletions
|
|
@ -135,6 +135,32 @@ INNER JOIN lint_warning_messages
|
|||
ELSE 0
|
||||
END DESC"))
|
||||
|
||||
(map
|
||||
(match-lambda
|
||||
((lint_warning_id
|
||||
lint_checker_name
|
||||
translated_lint_checker_description
|
||||
translated_lint_checker_description_locale
|
||||
lint_checker_network_dependent
|
||||
package_name
|
||||
package_version
|
||||
location_file
|
||||
location_line
|
||||
location_column_number
|
||||
lint_warning_message
|
||||
lint_warning_message_locale)
|
||||
(list lint_warning_id
|
||||
lint_checker_name
|
||||
translated_lint_checker_description
|
||||
translated_lint_checker_description_locale
|
||||
(string=? "t" lint_checker_network_dependent)
|
||||
package_name
|
||||
package_version
|
||||
location_file
|
||||
(string->number location_line)
|
||||
(string->number location_column_number)
|
||||
lint_warning_message
|
||||
lint_warning_message_locale)))
|
||||
(exec-query conn query `(,commit-hash
|
||||
,locale
|
||||
,@(if package-query
|
||||
|
|
@ -142,7 +168,7 @@ INNER JOIN lint_warning_messages
|
|||
'())
|
||||
,@(if message-query
|
||||
(list message-query)
|
||||
'()))))
|
||||
'())))))
|
||||
|
||||
(define* (select-lint-warnings-by-revision-package-name-and-version conn
|
||||
commit-hash
|
||||
|
|
@ -207,9 +233,24 @@ WHERE packages.id IN (
|
|||
END DESC
|
||||
")
|
||||
|
||||
(map
|
||||
(match-lambda
|
||||
((lint_warning_id
|
||||
lint_checkers_name translated_lint_checker_description
|
||||
lint_checkers_network_dependent
|
||||
location_file location_line location_column_number
|
||||
lint_warning_message)
|
||||
(list lint_warning_id
|
||||
lint_checkers_name
|
||||
translated_lint_checker_description
|
||||
(string=? "t" lint_checkers_network_dependent)
|
||||
location_file
|
||||
(string->number location_line)
|
||||
(string->number location_column_number)
|
||||
lint_warning_message)))
|
||||
(exec-query conn
|
||||
query
|
||||
(list commit-hash name version locale)))
|
||||
(list commit-hash name version locale))))
|
||||
|
||||
(define (any-translated-lint-warnings? lint-warnings-data locale)
|
||||
(any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue