docs: better packages docs

This commit is contained in:
张泊明518370910136 2025-02-18 06:21:17 -05:00
parent e9c3172e9a
commit 1150cc4697
GPG Key ID: D47306D7062CDA9D
9 changed files with 12 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import (
"strings"
"github.com/joint-online-judge/JOJ3/cmd/joj3/conf"
executors "github.com/joint-online-judge/JOJ3/internal/executor"
"github.com/joint-online-judge/JOJ3/internal/executor"
_ "github.com/joint-online-judge/JOJ3/internal/parser"
"github.com/joint-online-judge/JOJ3/internal/stage"
@ -139,7 +139,7 @@ func Run(
) (
stageResults []stage.StageResult, forceQuitStageName string, err error,
) {
executors.InitWithConf(
executor.InitWithConf(
conf.Stage.SandboxExecServer,
conf.Stage.SandboxToken,
)

View File

@ -1,4 +1,5 @@
package executors
// Package executor contains all the executors.
package executor
import (
_ "github.com/joint-online-judge/JOJ3/internal/executor/dummy"

View File

@ -1,4 +1,5 @@
package parsers
// Package parser contains all the parsers.
package parser
import (
_ "github.com/joint-online-judge/JOJ3/internal/parser/clangtidy"

View File

@ -1,4 +1,3 @@
// Referenced from https://github.com/yuriisk/clang-tidy-converter/blob/master/clang_tidy_converter/parser/clang_tidy_parser.py
package clangtidy
import (
@ -9,6 +8,7 @@ import (
"strings"
)
// Referenced from https://github.com/yuriisk/clang-tidy-converter/blob/master/clang_tidy_converter/parser/clang_tidy_parser.py
type Level int
const (

View File

@ -2,7 +2,6 @@
// dynamically. It is used for custom parsers.
// The plugin needs to be located at `ModPath` and export a symbol with name
// `SymName` that implements the stage.Parser interface.
package plugin
import "github.com/joint-online-judge/JOJ3/internal/stage"

View File

@ -1,6 +1,5 @@
// Package tierscore provides a parser for tiered scoring based on
// time and memory constraints. Leave the field empty or 0 to disable.
package tierscore
import "github.com/joint-online-judge/JOJ3/internal/stage"

View File

@ -1,3 +1,6 @@
// Package stage provides functionality to run stages. Each stage contains an
// executor and multiple parsers. The executor executes the command and parsers
// parse the output generated by the executor.
package stage
import (

View File

@ -1,3 +1,4 @@
// Package healthcheck provides a set of health checks for a repository.
package healthcheck
import (

View File

@ -1,3 +1,4 @@
// Package sample provides a sample function that returns a Result.
package sample
import (