Skip to content

When FAA0002, FAA0003 or FAA0004, also apply fix for FAA0001 if possible #55

@bkqc

Description

@bkqc

In multiple cases, once we use the autofix for FAA0002-4, we end up with a new FAA0001. Why not apply the fix at the same time if it is a better fix?
For instance,

Assert.IsTrue(modele.Journalisation.CritereRecherche.Any(x => x.StartsWith("Etat traitement")));

would, after FAA0003 auto fix, become

modele.Journalisation.CritereRecherche.Any(x => x.StartsWith("Etat traitement")).Should().BeTrue();

but create an FAA0001 whose fix would end up with

modele.Journalisation.CritereRecherche.Should().Contain(x => x.StartsWith("Etat traitement"));

which is way better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions