Skip to content

Commit

Permalink
bump version + lint qa (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham authored Apr 5, 2024
1 parent 40ff09e commit e255017
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion njsscan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__title__ = 'njsscan'
__authors__ = 'Ajin Abraham'
__copyright__ = f'Copyright {datetime.now().year} Ajin Abraham, OpenSecurity'
__version__ = '0.3.6'
__version__ = '0.3.7'
__version_info__ = tuple(int(i) for i in __version__.split('.'))
__all__ = [
'__title__',
Expand Down
4 changes: 2 additions & 2 deletions njsscan/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from njsscan.njsscan import NJSScan
from njsscan.formatters import (
cli,
json,
json_out,
sarif,
sonarqube,
)
Expand Down Expand Up @@ -81,7 +81,7 @@ def main():
scan_results,
__version__)
elif args.json:
json.json_output(
json_out.json_output(
args.output,
scan_results,
__version__)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion njsscan/formatters/sonarqube.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf_8 -*-
"""Sonarqube output format."""

from njsscan.formatters.json import json_output
from njsscan.formatters.json_out import json_output


def get_sonarqube_issue(njsscan_issue):
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_nodejs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
)

from njsscan.formatters import (
json,
json_out,
sarif,
sonarqube,
)
Expand Down Expand Up @@ -161,8 +161,8 @@ def nodejs_rule_trigger_count(res):


def json_output(res):
json_out = json.json_output(None, res, '0.0.0')
assert json_out is not None
jout = json_out.json_output(None, res, '0.0.0')
assert jout is not None


def sonar_output(res):
Expand Down

0 comments on commit e255017

Please sign in to comment.