Skip to content

Commit

Permalink
Merge pull request #5972 from brave/maxk-fix-lint-script
Browse files Browse the repository at this point in the history
Fixes lint script.
  • Loading branch information
mkarolin committed Sep 14, 2019
1 parent b929fed commit 1f45bb2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import git_cl
import git_common
import auth

def main(args):
"""Runs cpplint on the current changelist."""
Expand All @@ -29,9 +28,7 @@ def main(args):
help='Comma-separated list of cpplint\'s category-filters')
parser.add_option('--project_root')
parser.add_option('--base_branch')
auth.add_auth_options(parser)
options, args = parser.parse_args(args)
auth_config = auth.extract_auth_config_from_options(options)

# Access to a protected member _XX of a client class
# pylint: disable=protected-access
Expand All @@ -48,7 +45,7 @@ def main(args):
previous_cwd = os.getcwd()
os.chdir(settings.GetRoot())
try:
cl = git_cl.Changelist(auth_config=auth_config)
cl = git_cl.Changelist()
change = cl.GetChange(git_common.get_or_create_merge_base(cl.GetBranch(), options.base_branch), None)
files = [f.LocalPath() for f in change.AffectedFiles()]
if not files:
Expand Down

0 comments on commit 1f45bb2

Please sign in to comment.