Skip to content

Commit

Permalink
Update docs about rpmlintrc auto-loading.
Browse files Browse the repository at this point in the history
Fixes: #857
  • Loading branch information
marxin committed May 9, 2022
1 parent c8ed276 commit 85a829e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ it can be normal `toml` file if you wish:
setBadness('check', 0)
addFilter('test-i-ignore')

The location of `rpmlintrc` can be set using `--rpmlintrc` option. Or you can have any `*.rpmlintrc` or
`*-rpmlintrc` file in the current working directory. The best practice is to store the name in `$PACKAGE_NAME.rpmlintrc`.
The location of `rpmlintrc` can be set using `--rpmlintrc` option.
Or it can load any `*.rpmlintrc` or `*-rpmlintrc` that are located in the same
folder as check RPM file (or a specfile). Note the auto-loading happens only
when one RPM file (or a specfile) is used.
The best practice is to store the name in `$PACKAGE_NAME.rpmlintrc`.

`setBadness` overrides a default badness for a given check and `addFilter` ignores all errors
that match the given regular expression (one cannot filter out errors that are listed in `BlockedFilters`
Expand Down

0 comments on commit 85a829e

Please sign in to comment.