예제 #1
0
 private void reportUnknownVariablesInTagsSetting(
     final TestCase testCase, final Set<String> variables) {
   final List<TestCaseTags> tags = testCase.getTags();
   for (final TestCaseTags testCaseTags : tags) {
     final List<RobotToken> tagsTokens = testCaseTags.getTags();
     for (final RobotToken tagToken : tagsTokens) {
       final List<VariableDeclaration> variablesDeclarationsInTag =
           new VariableExtractor()
               .extract(tagToken, validationContext.getFile().getName())
               .getCorrectVariables();
       if (!variablesDeclarationsInTag.isEmpty()) {
         reportUnknownVariablesInSettingWithoutExeRows(
             validationContext, reporter, variablesDeclarationsInTag, variables);
       }
     }
   }
 }