Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick review of existing structure before we move onto adding more rules. #78

Closed
muffinresearch opened this issue Oct 13, 2015 · 7 comments

Comments

@muffinresearch
Copy link
Contributor

Before we go too far and add lots of rules I think it might be worth taking a step back briefly to look at what we have in terms of parsers and how they are integrated and make sure we are being as consistent in our approach as possible for each parser so far.

Kind of questions I have in mind are:

  • Use of rule functions vs class methods.
  • How are the message objects setup and passed back to the collector.

We can then file issues for any things that need to be changed if necessary.

@tofumatt
Copy link
Contributor

tofumatt commented Oct 13, 2015 via email

@muffinresearch
Copy link
Contributor Author

Yeah I went something along the lines of that direction with the CSS scanner as I thought the eslint style of rule funcs seemed quite a nice approach.

A file per rule might be a bit much but depends it might be best if there are loads.

As a side note I noticed coverage didn't seem to see the js rules but I suspect that's because they're not directly imported due to eslint.

@muffinresearch
Copy link
Contributor Author

Definitely, something in the back of our minds should be making it super easy for new rules to be added. This way it will make it much easier to get help with the not insignificant amount of rules that need to be implemented.

@tofumatt
Copy link
Contributor

tofumatt commented Oct 13, 2015 via email

@tofumatt
Copy link
Contributor

Okay cool, I'll move the #70 rules to that "rule-per-file" style, as well as the RDF ones: #79.

@tofumatt tofumatt self-assigned this Oct 14, 2015
tofumatt added a commit that referenced this issue Oct 14, 2015
Related to #78; this moves the RDF rules into their own folder.

Next step would be to move rule tests into their own sections.
tofumatt added a commit that referenced this issue Oct 14, 2015
Related to #78; this moves the RDF rules into their own folder.

Next step would be to move rule tests into their own sections.
tofumatt added a commit that referenced this issue Oct 14, 2015
Related to #78; this moves the RDF rules into their own folder.

Next step would be to move rule tests into their own sections.
tofumatt added a commit that referenced this issue Oct 14, 2015
Related to #78; this moves the RDF rules into their own folder.

Next step would be to move rule tests into their own sections.
@tofumatt
Copy link
Contributor

We assessed a fair bit of stuff and made it better... we can close this now I think. Thoughts @muffinresearch?

@muffinresearch
Copy link
Contributor Author

Yep lets close this and raise issues for specifics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants