GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch 13-set-up-scrutinizer (8eece6)
by Yngve
01:57
created

tests.pyre_strict_test   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 5

1 Method

Rating   Name   Duplication   Size   Complexity  
A PyreStrictTest.test_strict_mode_all_python_files() 0 15 5
1
# pyre-strict
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
2
3
import unittest
4
import os
5
6
7
class PyreStrictTest(unittest.TestCase):
1 ignored issue
show
Coding Style introduced by
This class should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
Unused Code introduced by
The variable __class__ seems to be unused.
Loading history...
8
    def test_strict_mode_all_python_files(self) -> None:
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
Coding Style Naming introduced by
The name test_strict_mode_all_python_files does not conform to the method naming conventions ((([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$).

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
Coding Style introduced by
This method should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
9
        for directory, _directories, files in os.walk('.'):
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
10
            for file in files:
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
11
                if not file.endswith('.py'):
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
12
                    continue
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
13
14
                path = os.path.join(directory, file)
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
15
16
                with open(path) as f:
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
Coding Style Naming introduced by
The name f does not conform to the variable naming conventions ((([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$).

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
17
                    first_line: str = f.readline()
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
18
19
                    self.assertEqual(
1 ignored issue
show
Coding Style introduced by
Found indentation with spaces instead of tabs
Loading history...
20
                        first_line,
1 ignored issue
show
Comprehensibility Best Practice introduced by
The variable first_line does not seem to be defined.
Loading history...
21
                        '# pyre-strict\n',
22
                        path + ' is not set to Pyre strict mode.',
23
                    )
24