コード例 #1
0
ファイル: checkstyle.py プロジェクト: reviewboard/ReviewBot
    def check_dependencies(self):
        """Verify the tool's dependencies are installed.

        Returns:
            bool:
            True if all dependencies for the tool are satisfied. If this
            returns False, the worker will not listen for this Tool's queue,
            and a warning will be logged.
        """
        checkstyle_path = config['checkstyle_path']
        return (checkstyle_path and is_exe_in_path(checkstyle_path) and
                is_exe_in_path('java'))
コード例 #2
0
ファイル: checkstyle.py プロジェクト: doevelopper/cfs-osal
    def check_dependencies(self):
        """Verify the tool's dependencies are installed.

        Returns:
            bool:
            True if all dependencies for the tool are satisfied. If this
            returns False, the worker will not listen for this Tool's queue,
            and a warning will be logged.
        """
        checkstyle_path = config['checkstyle_path']
        return (checkstyle_path and is_exe_in_path(checkstyle_path)
                and is_exe_in_path('java'))
コード例 #3
0
ファイル: clang.py プロジェクト: reviewboard/ReviewBot
    def check_dependencies(self):
        """Verify the tool's dependencies are installed.

        Returns:
            bool:
            True if all dependencies for the tool are satisfied. If this
            returns False, the worker will not listen for this Tool's queue,
            and a warning will be logged.
        """
        return is_exe_in_path('clang')
コード例 #4
0
    def check_dependencies(self):
        """Verify that the tool's dependencies are installed.

        Returns:
            bool:
            True if all dependencies for the tool are satisfied. If this
            returns False, the worker will not listed for this Tool's queue,
            and a warning will be logged.
        """
        return is_exe_in_path('pycodestyle')