Detect exceptions in PyPluralNamingBear
For this task, you will have to choose a python project and run our PyPluralNamingBear over your chosen project, and observe the naming issues reported by the Bear and report incorrectly raised issues back.
The bear is supposed to flag all variables which are assigned to a sequence (i.e a dictionary or a list) and then check whether they are named plural or not. Your task is to identify if the variable name reported is actually plural / usually refers to a collection and report all instances where a variable that is actually plural is reported.
For example, in index = []
, index
is a name that refers to a collection of objects in the English language, and this is an appropriate name for a list even though it is not plural (plural of index is indices). Thus it is a false positive if the bear incorrectly raises it.
Once you have identified such false positives, you need to report them by providing us a link to the code sample on your GitHub fork of the project (or it can be a fresh GitHub project if you've taken some code from elsewhere), complete with integration of Travis CI whose logs show the error clearly . You also need to provide the original source of the project.
For this task, you will be requiring the coala-antlr
repository.
Visit GCI-2018---Reference-information for more information on how to write PyPluralNamingBear
in .coafile
and a sample .travis.yml
file for Travis CI integration.