Class JsHint

    • Constructor Detail

      • JsHint

        public JsHint()
    • Method Detail

      • getWorkerProcessBuilderFactory

        @Inject
        protected org.gradle.process.internal.worker.WorkerProcessFactory getWorkerProcessBuilderFactory()
      • getSource

        @PathSensitive(RELATIVE)
        public FileTree getSource()
        Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.

        The PathSensitivity for the sources is configured to be PathSensitivity.ABSOLUTE. If your sources are less strict, please change it accordingly by overriding this method in your subclass.

        Overrides:
        getSource in class SourceTask
        Returns:
        The source.
      • setRhinoClasspath

        public void setRhinoClasspath​(FileCollection rhinoClasspath)
        Sets Rhino classpath.
        Since:
        4.0
      • setRhinoClasspath

        public void setRhinoClasspath​(Object rhinoClasspath)
      • setJsHint

        public void setJsHint​(FileCollection jsHint)
        Sets jshint file.
        Since:
        4.0
      • setJsHint

        public void setJsHint​(Object jsHint)
      • setEncoding

        public void setEncoding​(String encoding)
      • setJsonReport

        public void setJsonReport​(File jsonReport)
        Sets JSON report file.
        Since:
        4.0
      • setJsonReport

        public void setJsonReport​(Object jsonReport)
      • doJsHint

        public void doJsHint()