Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'warnings by module' table missing in a report #9145

Open
zasca opened this issue Oct 12, 2023 · 0 comments · May be fixed by #9146
Open

'warnings by module' table missing in a report #9145

zasca opened this issue Oct 12, 2023 · 0 comments · May be fixed by #9146
Labels
Bug 🪲 Needs PR This issue is accepted, sufficiently specified and now needs an implementation
Milestone

Comments

@zasca
Copy link

zasca commented Oct 12, 2023

Bug description

Table 'warnings by module' missing in a report

Configuration

No response

Command used

echo foo > module1.py
echo bar > module1.py
pylint -ry module1.py module2.py

Pylint output

************* Module module1
module1.py:1:0: C0114: Missing module docstring (missing-module-docstring)
module1.py:1:0: W0104: Statement seems to have no effect (pointless-statement)
module1.py:1:0: E0602: Undefined variable 'foo' (undefined-variable)
************* Module module2
module2.py:1:0: C0114: Missing module docstring (missing-module-docstring)
module2.py:1:0: W0104: Statement seems to have no effect (pointless-statement)
module2.py:1:0: E0602: Undefined variable 'bar' (undefined-variable)


Report
======
2 statements analysed.

Statistics by type
------------------

+---------+-------+-----------+-----------+------------+---------+
|type     |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module   |2      |NC         |NC         |0.00        |0.00     |
+---------+-------+-----------+-----------+------------+---------+
|class    |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|method   |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|function |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+



6 lines have been analyzed

Raw metrics
-----------

+----------+-------+------+---------+-----------+
|type      |number |%     |previous |difference |
+==========+=======+======+=========+===========+
|code      |4      |66.67 |NC       |NC         |
+----------+-------+------+---------+-----------+
|docstring |0      |0.00  |NC       |NC         |
+----------+-------+------+---------+-----------+
|comment   |0      |0.00  |NC       |NC         |
+----------+-------+------+---------+-----------+
|empty     |2      |33.33 |NC       |NC         |
+----------+-------+------+---------+-----------+



Duplication
-----------

+-------------------------+------+---------+-----------+
|                         |now   |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines      |0     |NC       |NC         |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |NC       |NC         |
+-------------------------+------+---------+-----------+



Messages by category
--------------------

+-----------+-------+---------+-----------+
|type       |number |previous |difference |
+===========+=======+=========+===========+
|convention |2      |NC       |NC         |
+-----------+-------+---------+-----------+
|refactor   |0      |NC       |NC         |
+-----------+-------+---------+-----------+
|warning    |2      |NC       |NC         |
+-----------+-------+---------+-----------+
|error      |2      |NC       |NC         |
+-----------+-------+---------+-----------+



Messages
--------

+-------------------------+------------+
|message id               |occurrences |
+=========================+============+
|undefined-variable       |2           |
+-------------------------+------------+
|pointless-statement      |2           |
+-------------------------+------------+
|missing-module-docstring |2           |
+-------------------------+------------+




-----------------------------------
Your code has been rated at 0.00/10

Expected behavior

************* Module module1
module1.py:1:0: C0114: Missing module docstring (missing-module-docstring)
module1.py:1:0: W0104: Statement seems to have no effect (pointless-statement)
module1.py:1:0: E0602: Undefined variable 'foo' (undefined-variable)
************* Module module2
module2.py:1:0: C0114: Missing module docstring (missing-module-docstring)
module2.py:1:0: W0104: Statement seems to have no effect (pointless-statement)
module2.py:1:0: E0602: Undefined variable 'bar' (undefined-variable)


Report
======
2 statements analysed.

Statistics by type
------------------

+---------+-------+-----------+-----------+------------+---------+
|type     |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module   |2      |2          |=          |0.00        |0.00     |
+---------+-------+-----------+-----------+------------+---------+
|class    |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|method   |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|function |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+



6 lines have been analyzed

Raw metrics
-----------

+----------+-------+------+---------+-----------+
|type      |number |%     |previous |difference |
+==========+=======+======+=========+===========+
|code      |4      |66.67 |4        |=          |
+----------+-------+------+---------+-----------+
|docstring |0      |0.00  |NC       |NC         |
+----------+-------+------+---------+-----------+
|comment   |0      |0.00  |NC       |NC         |
+----------+-------+------+---------+-----------+
|empty     |2      |33.33 |2        |=          |
+----------+-------+------+---------+-----------+



Duplication
-----------

+-------------------------+------+---------+-----------+
|                         |now   |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines      |0     |0        |0          |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |0.000    |=          |
+-------------------------+------+---------+-----------+



Messages by category
--------------------

+-----------+-------+---------+-----------+
|type       |number |previous |difference |
+===========+=======+=========+===========+
|convention |2      |2        |2          |
+-----------+-------+---------+-----------+
|refactor   |0      |0        |0          |
+-----------+-------+---------+-----------+
|warning    |2      |2        |2          |
+-----------+-------+---------+-----------+
|error      |2      |2        |2          |
+-----------+-------+---------+-----------+



% errors / warnings by module
-----------------------------

+--------+------+--------+---------+-----------+
|module  |error |warning |refactor |convention |
+========+======+========+=========+===========+
|module2 |50.00 |50.00   |0.00     |50.00      |
+--------+------+--------+---------+-----------+
|module1 |50.00 |50.00   |0.00     |50.00      |
+--------+------+--------+---------+-----------+



Messages
--------

+-------------------------+------------+
|message id               |occurrences |
+=========================+============+
|undefined-variable       |2           |
+-------------------------+------------+
|pointless-statement      |2           |
+-------------------------+------------+
|missing-module-docstring |2           |
+-------------------------+------------+




------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)

Pylint version

pylint 2.15.5
astroid 2.12.12
Python 3.10.8 (main, Nov 10 2022, 12:59:17) [GCC 11.2.1 20220219]

OS / Environment

Alpine Linux v3.16.3 (Dockerfile)

Additional dependencies

No response

@zasca zasca added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Oct 12, 2023
zasca added a commit to zasca/pylint that referenced this issue Oct 12, 2023
@zasca zasca linked a pull request Oct 12, 2023 that will close this issue
@zasca zasca changed the title Table 'warnings by module' missing in a report 'warnings by module' table missing in a report Oct 12, 2023
@jacobtylerwalls jacobtylerwalls added this to the 3.0.2 milestone Oct 13, 2023
@jacobtylerwalls jacobtylerwalls added Needs PR This issue is accepted, sufficiently specified and now needs an implementation Bug 🪲 and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Oct 13, 2023
@jacobtylerwalls jacobtylerwalls modified the milestones: 3.0.2, 3.0.3 Oct 22, 2023
@jacobtylerwalls jacobtylerwalls modified the milestones: 3.0.3, 3.0.4 Dec 11, 2023
@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 3.0.4, 3.1.1 Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Needs PR This issue is accepted, sufficiently specified and now needs an implementation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants