Check NeoJoin view definitions before the build

Aperta
#54 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ZuraKajaia565 ci sta già lavorando.

Dal 4/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Context

VsumBuildRequest.java:63 reads viewFiles with read(viewFiles, "view definition", null), so any
file extension is accepted. The only check is for duplicate names. Source.VIEWS exists in
BuildProblem/ProblemReport, but nothing produces it. Reactions are already checked before Maven
runs (ReactionsChecker); views should get the same.

Tasks
  • Add the constant .nj and accept only that extension (analogous to .reactions / .ocl)
  • NeoJoinChecker:
    • parse every file with NeoJoin (NeoJoinStandaloneSetup), using the uploaded and processed
      metamodels as the meta-model path
    • report syntax errors, unresolved import nsURIs and Xbase type errors as
      BuildProblem{source: VIEWS, file, line, column, message}
  • Report duplicate export names / view-type nsURIs across files
  • Run the checker through the same code path in /build, /jar and /validate (#52)
  • Tests:
    • a valid query
    • a syntax error
    • an unknown import
    • a wrong file extension
Acceptance criteria
  • A broken .nj file fails the build before Maven runs, with a problem that points to the file and
    line.
Lingua principale
Java
Stelle
0
Fork
0
Merge medio
8h 5m
PR unite (30g)
15

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vitruv-tools/Methodologist-SetupService

Tutte le issue di vitruv-tools/Methodologist-SetupService

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.