homework_checker/core/tasks.py
def _code_style_errors(self: CppTask) -> Optional[tools.CmdResult]:
        """Check if code conforms to Google Style."""
        command = (
            "cpplint --counting=detailed "
            + "--filter=-legal,-readability/todo,"
            + "-build/include_order,-runtime/threadsafe_fn,"
            + "-runtime/arrays"
            + ' $( find . -name "*.h" -o -name "*.cpp" | grep -vE "^./build/" )'
        )
        result = tools.run_command(
            command,
            cwd=self._student_task_folder,
            timeout=self._build_timeout,
        )
        if result.stderr and TOTAL_ERRORS_FOUND_TAG in result.stderr:
            return result
        if result.stdout and TOTAL_ERRORS_FOUND_TAG in result.stdout:
            return result
        return None
Check if code conforms to Google Style.
Check if code conforms to Google Style.
Check if code conforms to Google Style .
def _code_style_errors(self: CppTask) -> Optional[tools.CmdResult]:
        command = (
            "cpplint --counting=detailed "
            + "--filter=-legal,-readability/todo,"
            + "-build/include_order,-runtime/threadsafe_fn,"
            + "-runtime/arrays"
            + ' $( find . -name "*.h" -o -name "*.cpp" | grep -vE "^./build/" )'
        )
        result = tools.run_command(
            command,
            cwd=self._student_task_folder,
            timeout=self._build_timeout,
        )
        if result.stderr and TOTAL_ERRORS_FOUND_TAG in result.stderr:
            return result
        if result.stdout and TOTAL_ERRORS_FOUND_TAG in result.stdout:
            return result
        return None
def _code_style_errors ( self : CppTask ) -> Optional [ tools . CmdResult ] : command = ( "cpplint --counting=detailed " + "--filter=-legal,-readability/todo," + "-build/include_order,-runtime/threadsafe_fn," + "-runtime/arrays" + ' $( find . -name "*.h" -o -name "*.cpp" | grep -vE "^./build/" )' ) result = tools . run_command ( command , cwd = self . _student_task_folder , timeout = self . _build_timeout , ) if result . stderr and TOTAL_ERRORS_FOUND_TAG in result . stderr : return result if result . stdout and TOTAL_ERRORS_FOUND_TAG in result . stdout : return result return None
Check if code conforms to Google Style.
Check if code conforms to Google Style .
"""Check if code conforms to Google Style."""
self
CppTask