You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[
{
"index": "1724830895",
"title": "Controller class must have a service field",
"description": "Controller class must have service class field to handle business logic processing",
"tags": [],
"checkForFilesFoldersConstraints": "INCLUDE",
"checkForFilesFolders": [
"hexlet-correction/src/main/java/io/hexlet/typoreporter/controller"
],
"processFilesFolders": "WITHIN",
"quantifierXPathQuery": [
"src:unit/src:class"
],
"constraintXPathQuery": [
"src:unit/src:class[src:annotation/src:name[text()=\"Controller\"] and src:specifier[text()=\"public\"] and src:name[substring(text(),string-length(text())-string-length(\"Controller\")+1)=\"Controller\"] and descendant-or-self::src:decl_stmt/src:decl[(src:specifier[text()=\"private\"] and src:specifier[text()=\"final\"] and src:name[substring(text(),string-length(text())-string-length(\"Service\")+1)=\"Service\"])]]"
],
"grammar": "class with declaration statement with ( visibility \"private\" and specifier \"final\" and name \"...Service\" ) must have annotation \"Controller\" and visibility \"public\" and name \"...Controller\" and declaration statement with ( visibility \"private\" and specifier \"final\" and name \"...Service\" )"
}
]
The text was updated successfully, but these errors were encountered:
RulePad:
Code:
The text was updated successfully, but these errors were encountered: