Skip to content

Allow suppress Fiesta annotation outputs. #2

Description

@roll-w

In some cases, we don't want the log output of a lower priority issue to bother us.

We planning add a new annotation @SuppressFiesta to disable log output in some cases.

e.g.:

If you have annotated on a class, and you use the class in the other place, usually there will be a output:

@Dangerous("You are using the DangerousClass!")
public class DangerousClass {
}


public void doSomething() {
    DangerousClass danger = // do something...
}

Output will be like:

SomeClass.java:[1,1] Dangerous: You are using the DangerousClass! 

With the new @SuppressFiesta annotation, we could disable the output in this way:

@SuppressFiesta(Dangerous.class)
public void doSomething() {
    DangerousClass danger = // do something...
}

Further, we could using the SuppressWarnings annotation that defined in Java, like @SuppressWarnings("FiestaDanger") to disable the output.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions