exercism / exercism/java-analyzer

Skip analysis of non-solution files

Ouverte
#132 2 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
x:action/improve x:knowledge/intermediate x:module/analyzer x:size/medium x:type/coding
Langage dominant
Java
Étoiles
13
Forks
27
Merge moyen
4 j 17 h
PR mergées (30 j)
7

Description

Some exercises consist of more than one file in the `src/main/java` folder, and some of them are designed to be read-only files. These are marked as such in the exercise's `.meta/config.json` file, because they should be listed in the `files.editor` list.

For example, the [configuration for the `wizards-and-warriors-2` exercise](https://github.com/exercism/java/blob/main/exercises/concept/wizards-and-warriors-2/.meta/config.json) lists the following files as read-only:

- `src/main/java/Character.java`
- `src/main/java/Destination.java`
- `src/main/java/TravelMethod.java`

The goal of this issue is to make sure that read-only files are never processed by the analyzer.

In most cases processing these files may not introduce any issues, but just in case one of them contains code that triggers an analyzer comment we should skip them by default. If not, a student may receive feedback on a file that they did not write and cannot edit, which is just confusing.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par exercises/concept/wizards-and-warriors-2/.meta/config.json et suivez la façon dont l’analyseur lit sa liste files.editor. Le travail est terminé lorsque les fichiers qui y sont marqués en lecture seule sont exclus de l’analyse, tandis que les fichiers de solution modifiables continuent d’être traités.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
tooling
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.