``` from pants.backend.jvm.tasks.checkstyle import...
# general
f
Copy code
from pants.backend.jvm.tasks.checkstyle import Checkstyle
from pants.backend.jvm.tasks.scalastyle import Scalastyle
from pants.goal.task_registrar import TaskRegistrar as task


def register_goals():
    task(name='checkstyle', action=Checkstyle).install('compile')
    task(name='scalastyle', action=Scalastyle).install('compile')