-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Enforce Grammar for default_off Messages #9906
Comments
Aren't |
|
@Bisaloo You're right, I will modify the list according. |
|
Remark
|
I see. I would put that as
No, I agree. I think we can also merge |
Alright. Let's put Updated I think that we will need add a section for the |
I'm not really happy with EDIT: Sorry, accidentally closed. |
What exactly is the "ruleset auditing process" mentioned in #9906 (comment)? The specific process should make a difference in what keywords we want. (And if it doesn't make a difference, then what's the point of this issue anyway?) I'm not sure what We should have only a small number of categories. Each extra category is one more thing to get confused about and one more potential argument to have with contributors. For a while now in reviewing rulesets I've preferred I think Small, infrequent problems l should be moved into I don't know what We might want to allow extra attributes, such as Without knowing more about what an audit looks like, I would prefer just these keywords: |
I just want to add that I think it's great people are working on automating the review process 😃 |
@jeremyn thank you for joining the discussion!
To me, the audit process means to re-activate (or delete) the In particular, a contributor might want to focus on a specific type of
Yes. There is only 5 files will be applying the
I agree that we should have fewer categories. Suppose that we have an automated process since they are basically the same to a robot (or a script), but I am not sure if this will affect manual audit or not. (I use a bot to re-generate a ruleset for a I am OK with
If adding extra attributes is an option, I would really love to see an
Which category should |
@cschanaj I get the gist of what the auditing process is -- someone does a manual or semi-automated search over the rulesets looking for categories of Perhaps more compelling is that I don't like the idea of the hassle of constraining For
I disagree with a
|
@Hainish This issue is getting slightly complicated and has future maintenance implications, so you may want to review this and provide feedback. |
@zoracon Do you think this should be enforced by ruleset checker at some point? |
To be honest, not sure. I want to go over the ruleset checker at some point after I finally get the fetch test issues resolved. But closing this for now since it seems like this came to a decent conclusion. |
Reason
Unlike the
platform
attribute, there is not any grammatical requirement on thedefault_off
attribute, This make the process of performing automated check to re-activatedisable ruleset
difficult.To illustrate the situation, we have
mismatch
,mismatches
,mismatched
and their capitalization variants for themismatched
error. These variants make it hard for contributors to perform audit. See #9582, #9842A particularly bad example could be
BufferedIO.xml
. It should be aplatform=cacert
ruleset, but the message is given indefault_off
. (It is amismatch
now)Goal
The goal is to standardize the
default_off
attributes and to enforce the grammar withrelaxng.xml
such that automated audit can be done easier.Steps
Modify
default_off
attributes in the existingruleset
to an agreed set ofkeyword
, add theruleset
toruleset-coverage-whitelist.txt
if necessary. See Update default_off="mismatched" rulesets #9884.Update
CONTRIBUTING.md
to explain thekeyword
we use.Enforce the grammar with
relaxng.xml
.Resource
Patterns
Each keyword should be separated by a comma and a space
Note
Some rule use
'
(single quote) instead of"
(double quote), it will be great if you can do a replacement as wel; :)Keywords
Existing Variants (200+ Variants)
Updated 2017.06.28 Please refer to
default-off-attributes.txt
The text was updated successfully, but these errors were encountered: