-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Puppet incorrectly classified as Pascal #2318
Comments
New samples are always welcome! |
So I just drop these into /samples/Puppet, then they'll do their magic? It would probably be best to have a disambiguation in heuristics.rb but I don't know Pascal nor am I any good with regular expressions. |
Now I think about it, if someone could help come up with something that detects the first keyword in the file is either |
We usually prefer to add heuristic rules if the issue can't be solved only with the Bayesian classifier. We could first try to add new samples and if that doesn't solve it (we'll need incorrectly classified repositories to test it), we can build a new heuristic. |
Yes, please add some samples to |
I'm happy to open a PR, can you leave this issue open though? It's not fixed, I'm not sure why it was closed. |
Yep, sorry. |
This now looks to be fixed. Please feel free to comment/re-open if you're still having problems. |
This file is Puppet code, not Pascal: https://github.com/jfryman/puppet-nginx/blob/master/manifests/init.pp
It might help if a new sample is added which contains class parameters, none of the samples include this:
Example is from https://docs.puppetlabs.com/puppet/latest/reference/lang_classes.html#syntax
Also missing is an example of inheritance which the problem file also uses.
Modified from https://docs.puppetlabs.com/puppet/latest/reference/lang_classes.html#aside-when-to-inherit
The text was updated successfully, but these errors were encountered: