Skip to content

Commit

Permalink
Mention the new type of comment in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RKushnir committed Feb 19, 2023
1 parent 8a0ec98 commit 8c9b42b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,18 @@ defmodule MyModule do
end
```
Use comment `coveralls-ignore-next-line` to ignore only the next line.
```elixir
defmodule MyModule do
def covered do
# coveralls-ignore-next-line
"ignored"
"covered"
end
end
```
### Silence OTP Cover Warnings
To remove OTP warnings about modules or specific logging, you can copy the `cover.erl` file under `src/` of your Elixir project and modify it to remove the warnings, as a tentative solution.
Expand Down

0 comments on commit 8c9b42b

Please sign in to comment.