Re: Running Lintian against a debian/ directory?

2024-01-03 Thread Paul Wise
On Fri, 2023-12-29 at 10:22 +0100, Niels Thykier wrote:

> Alternatively, for spell-checks, I think someone once wrote a 
> "spellintian" that could use lintian's dataset for spell checking 
> without running the full lintian program. Not sure what became of it.

In 2015 you added Jakub Wilk's spellintian to lintian at my request :)

   $ dpkg -S `which spellintian`
   lintian: /usr/bin/spellintian
   
   $ apt changelog lintian
   
   lintian (2.5.32) unstable; urgency=medium
   
     * commands/spellintian.pm:
       + [JW,NT] Import Jakub Wilk's spellintian tool with minor
     modifications.
   
     * debian/{lintian.links,manpages}:
       + [NT] Install spellintian in PATH and install its manpage.
     Thanks to Paul Wise for the suggestion.  (Closes: #767867)
   
    -- Niels Thykier   Sun, 28 Jun 2015 14:08:29 +0200

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Re: Running Lintian against a debian/ directory?

2023-12-29 Thread Otto Kekäläinen
> Paul already answered the lintian part, so I will skip that. But I also
> wanted to suggest looking into integrated spell-checking in your editor
> if possible. Having integrated spell-check will enable a much faster
> feedback loop.

Thanks the reply, but basic spell checking is pretty much already
solved (ignoring the fact that we have hunspell, nuspell and aspell
trying to solve the same problem but none of them doing it perfectly -
that is another story).

I use Pulsar and have in it
https://web.pulsar-edit.dev/packages/spell-check with hunspell as
backend.

Additionally I occasionally run these spell checkers from the
command-line manually (sharing in case others want to try them out):

codespell --write --check-filenames --check-hidden debian/
find debian/ -type f | xargs spellintian --picky
aspell --mode=debctrl -c debian/control



Re: Running Lintian against a debian/ directory?

2023-12-29 Thread Niels Thykier

Otto Kekäläinen:

Hi!

Currently Lintian requires a (source or binary) package to check[1].
However, many of the Lintian source package checks (e.g. spelling of
debian/changelog entries) don't strictly depend on anything being built.

Is anyone aware of a way to run lintian directly on a debian/ directory
contents as-is without doing a source build first?

I am exploring this in order to get my text editor to nag about findings
immediately without separate source build steps.

Otto

[1] https://manpages.debian.org/bookworm/lintian/lintian.1.en.html



Paul already answered the lintian part, so I will skip that. But I also 
wanted to suggest looking into integrated spell-checking in your editor 
if possible. Having integrated spell-check will enable a much faster 
feedback loop.
  As an example, if you are using a Jetbrains IDE (such as CLion or 
PyCharm Community Edition), then I added a plugin (`Debian Packaging 
Support`), which among other has spell-checking of d/changelog + the 
description fields inside d/control.


Alternatively, for spell-checks, I think someone once wrote a 
"spellintian" that could use lintian's dataset for spell checking 
without running the full lintian program. Not sure what became of it.


Best regards,
Niels



Re: Running Lintian against a debian/ directory?

2023-12-24 Thread Paul Wise
On Fri, 2023-12-22 at 16:43 +0800, Otto Kekäläinen wrote:

> Currently Lintian requires a (source or binary) package to check[1].

(and some checks require *both* source and binary packages available)

> Is anyone aware of a way to run lintian directly on a debian/
> directory contents as-is without doing a source build first?

I don't think this is supported yet, there is a bug open since 2004:

https://bugs.debian.org/262783

> I am exploring this in order to get my text editor to nag about
> findings immediately without separate source build steps.

This will miss the binary-only and source-and-binary checks,
but it would indeed be quite useful for the source-only checks.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Running Lintian against a debian/ directory?

2023-12-22 Thread Otto Kekäläinen
Hi!

Currently Lintian requires a (source or binary) package to check[1].
However, many of the Lintian source package checks (e.g. spelling of
debian/changelog entries) don't strictly depend on anything being built.

Is anyone aware of a way to run lintian directly on a debian/ directory
contents as-is without doing a source build first?

I am exploring this in order to get my text editor to nag about findings
immediately without separate source build steps.

Otto

[1] https://manpages.debian.org/bookworm/lintian/lintian.1.en.html