Examples of SourceFile


Examples of org.codenarc.source.SourceFile

        };
    }

    private void processFile(File baseDir, String filePath, RuleSet ruleSet) {
        File file = new File(baseDir, filePath);
        SourceFile sourceFile = new SourceFile(file);
        List<Violation> allViolations = collectViolations(sourceFile, ruleSet);
        FileResults fileResults = null;
        if (allViolations != null && !allViolations.isEmpty()) {
            fileResults = new FileResults(PathUtil.normalizePath(filePath), allViolations);
        }
View Full Code Here

Examples of org.epic.core.model.SourceFile

    public void refresh()
    {
        if (source != null)
        {
            SourceFile sameSource = source;
            source = null;
            updateContent(sameSource);
            contentProvider.correctViewerExpansion();
        }
    }
View Full Code Here

Examples of org.epic.core.model.SourceFile

    private SourceFile loadSourceFile(String file) throws Exception
    {
        Document doc = new Document(readFile(file));
        new PerlPartitioner(new Log(), doc);

        return new SourceFile(getLoggerForTests(), doc);
    }
View Full Code Here

Examples of org.exoplatform.services.rest.ext.groovy.SourceFile

    */
   public Class<?>[] compile(SourceFolder[] src, UnifiedNodeReference... sourceReferences) throws IOException
   {
      SourceFile[] files = new SourceFile[sourceReferences.length];
      for (int i = 0; i < sourceReferences.length; i++)
         files[i] = new SourceFile(sourceReferences[i].getURL());
      return doCompile((JcrGroovyClassLoader)classLoaderProvider.getGroovyClassLoader(src), files);
   }
View Full Code Here

Examples of org.exoplatform.services.rest.ext.groovy.SourceFile

            }
            else
            {
               url = new URL(str);
            }
            srcFiles[i] = new SourceFile(url);
         }
      }
      return srcFiles;
   }
View Full Code Here

Examples of org.sonar.squid.api.SourceFile

  @Rule
  public CheckMessagesVerifierRule checkMessagesVerifier = new CheckMessagesVerifierRule();

  @Test
  public void detected() {
    SourceFile file = CxxAstScanner.scanSingleFile(new File("src/test/resources/checks/TodoTagPresenceCheck.cc"), new TodoTagPresenceCheck());
    checkMessagesVerifier.verify(file.getCheckMessages())
      .next().atLine(3).withMessage("Complete the task associated to this TODO comment.")
      .next().atLine(7)
      .next().atLine(8)
      .next().atLine(11)
      .next().atLine(13)
View Full Code Here

Examples of org.sonar.squidbridge.api.SourceFile

  @Test
  public void test() {
    LineLengthCheck check = new LineLengthCheck();
    check.maximumLineLength = 30;

    SourceFile file = JavaScriptAstScanner.scanSingleFile(new File("src/test/resources/checks/lineLength.js"), check);
    CheckMessagesVerifier.verify(file.getCheckMessages())
        .next().atLine(2).withMessage("The line contains 44 characters which is greater than 30 authorized.")
        .noMore();
  }
View Full Code Here

Examples of railo.runtime.SourceFile

    }
   
   
   

    SourceFile source=cfml.getSourceFile();
   
    Page page=new Page(config,source.getPhyscalFile(),source.getFullClassName(),Info.getFullVersionInfo(),sourceLastModified,cfml.getWriteLog(),config.getSupressWSBeforeArg());
    TagData data = new TagData(_tlibs,flibs,config.getCoreTagLib().getScriptTags(),cfml,dotNotationUpperCase,page);
   
    //Body body=page;
    try {
      do {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.