`forbiddenPredicatesChecker` does not detect forbidden predicates used with `is` operator
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
Research direction
Look at grabPredicateIdentities in the code analysis module. The fix is to fully expand the arguments of the is operator so that forbidden predicates like mod/2 used within is expressions are detected. Verify by running the checker against the provided Prolog examples and confirming mod/2 is flagged.
Written by the indexing model from the issue text.
Description
codeAnalysis:
forbiddenPredicates:
- mod/2
p(X) :- 0 is X mod 2.
% or
p(X) :- 20 is (X mod 2) + (2 * 7).
The usage of mod/2 is not detected.
The detected predicates here are only p/1 and is/2. The fix would be to make grabPredicateIdentities fully expand the arguments of is.
- Dominant language
- Haskell
- Stars
- 0
- Forks
- 1
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 16
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fmidue/prolog-programming-task
-
Difficulty 3/5 Half a day Newbie friendliness 55/100
fmidue/prolog-programming-task#46 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
fmidue/prolog-programming-task#42 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
fmidue/prolog-programming-task#36 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
fmidue/prolog-programming-task#29 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
fmidue/prolog-programming-task#21 ·
Maintainers usually reply within 1 day
All issues in fmidue/prolog-programming-task
Similar issues
-
An empty line splits a signature where an ordinary comment is right above an argument's HaddockOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mrkkrp/tilia#213 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
dhall-lang/dhall-haskell#2870 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
alunduil/collection-json.hs#391 ·
Maintainers usually reply within 1 day
-
plutus
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
IntersectMBO/cardano-ledger#6152 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100