Add “Ignore warning” option to cabal check
* Introduce `-i/--ignore` command-line option. e.g. cabal check --ignore=missing-upper-bounds will not display “Missing upper bounds” warnings. * Additionally, a filterPackageChecksById function is now exported in Distribution.PackageDescription.Check.Warning; this can be used by third party tools. * Add CheckExplanationIDString to `cabal check` messages. e.g. from Error: The 'license' field is missing or is NONE. to Error: [license-none] The 'license' field is missing or is NONE. This makes using the cabal check `--ignore` option more immediate. * Spool `MissingField` into separate constructors. Introducing five new constructors for `CheckExplanation` MissingFieldCategory MissingFieldMaintainer MissingFieldSynopsis MissingFieldDescription MissingFieldSynOrDesc This provides better ergonomic for `cabal check --ignore` and makes it easier to update the manual if the need arises. * Add tests for desiderable `--ignore` string qualities (not too long, without too many '-', unique). * Warn when `--ignore` string is not recognised. Also add a test for this. * Add documentation. * Add changelog.
Showing
- Cabal-tests/Cabal-tests.cabal 1 addition, 0 deletionsCabal-tests/Cabal-tests.cabal
- Cabal-tests/tests/ParserTests/regressions/all-upper-bound.check 1 addition, 1 deletion...tests/tests/ParserTests/regressions/all-upper-bound.check
- Cabal-tests/tests/ParserTests/regressions/assoc-cpp-options.check 1 addition, 1 deletion...sts/tests/ParserTests/regressions/assoc-cpp-options.check
- Cabal-tests/tests/ParserTests/regressions/bad-glob-syntax.check 2 additions, 2 deletions...tests/tests/ParserTests/regressions/bad-glob-syntax.check
- Cabal-tests/tests/ParserTests/regressions/cc-options-with-optimization.check 1 addition, 1 deletion...arserTests/regressions/cc-options-with-optimization.check
- Cabal-tests/tests/ParserTests/regressions/cxx-options-with-optimization.check 1 addition, 1 deletion...rserTests/regressions/cxx-options-with-optimization.check
- Cabal-tests/tests/ParserTests/regressions/decreasing-indentation.check 1 addition, 1 deletion...ests/ParserTests/regressions/decreasing-indentation.check
- Cabal-tests/tests/ParserTests/regressions/denormalised-paths.check 14 additions, 14 deletions...ts/tests/ParserTests/regressions/denormalised-paths.check
- Cabal-tests/tests/ParserTests/regressions/extensions-paths-5054.check 1 addition, 1 deletion...tests/ParserTests/regressions/extensions-paths-5054.check
- Cabal-tests/tests/ParserTests/regressions/ghc-option-j.check 2 additions, 2 deletionsCabal-tests/tests/ParserTests/regressions/ghc-option-j.check
- Cabal-tests/tests/ParserTests/regressions/issue-6288-d.check 1 addition, 1 deletionCabal-tests/tests/ParserTests/regressions/issue-6288-d.check
- Cabal-tests/tests/ParserTests/regressions/issue-774.check 5 additions, 5 deletionsCabal-tests/tests/ParserTests/regressions/issue-774.check
- Cabal-tests/tests/ParserTests/regressions/issue-7776-a.check 1 addition, 1 deletionCabal-tests/tests/ParserTests/regressions/issue-7776-a.check
- Cabal-tests/tests/ParserTests/regressions/issue-7776-b.check 1 addition, 1 deletionCabal-tests/tests/ParserTests/regressions/issue-7776-b.check
- Cabal-tests/tests/ParserTests/regressions/issue-7776-c.check 1 addition, 1 deletionCabal-tests/tests/ParserTests/regressions/issue-7776-c.check
- Cabal-tests/tests/ParserTests/regressions/multiple-libs-2.check 5 additions, 5 deletions...tests/tests/ParserTests/regressions/multiple-libs-2.check
- Cabal-tests/tests/ParserTests/regressions/nothing-unicode.check 6 additions, 6 deletions...tests/tests/ParserTests/regressions/nothing-unicode.check
- Cabal-tests/tests/ParserTests/regressions/pre-1.6-glob.check 1 addition, 1 deletionCabal-tests/tests/ParserTests/regressions/pre-1.6-glob.check
- Cabal-tests/tests/ParserTests/regressions/pre-2.4-globstar.check 3 additions, 3 deletions...ests/tests/ParserTests/regressions/pre-2.4-globstar.check
- Cabal-tests/tests/ParserTests/regressions/pre-3.8-globstar-literal.check 1 addition, 1 deletion...ts/ParserTests/regressions/pre-3.8-globstar-literal.check
Loading
Please register or sign in to comment