malept/pyoath-toolkit

View on GitHub
oath_toolkit/__init__.py

Summary

Maintainability
B
4 hrs
Test Coverage

File __init__.py has 280 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-
#
# Copyright 2013, 2014 Mark Lee
#
# Licensed under the Apache License, Version 2.0 (the "License");
Severity: Minor
Found in oath_toolkit/__init__.py - About 2 hrs to fix

    Function totp_validate has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def totp_validate(self, secret, now, time_step_size, start_offset, window,
    Severity: Minor
    Found in oath_toolkit/__init__.py - About 45 mins to fix

      Function hotp_generate has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def hotp_generate(self, secret, moving_factor, digits, add_checksum=False,
      Severity: Minor
      Found in oath_toolkit/__init__.py - About 35 mins to fix

        Function totp_generate has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def totp_generate(self, secret, now, time_step_size, time_offset, digits):
        Severity: Minor
        Found in oath_toolkit/__init__.py - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status