verifiers.py (11404:72b399971cbc) verifiers.py (11410:e51095583654)
1#!/usr/bin/env python
2#
3# Copyright (c) 2014, 2016 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 326 unchanged lines hidden (view full) ---

335
336
337class LineLength(LineVerifier):
338 languages = set(('C', 'C++', 'swig', 'python', 'asm', 'isa', 'scons'))
339 test_name = 'line length'
340 opt_name = 'length'
341
342 def check_line(self, line):
1#!/usr/bin/env python
2#
3# Copyright (c) 2014, 2016 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 326 unchanged lines hidden (view full) ---

335
336
337class LineLength(LineVerifier):
338 languages = set(('C', 'C++', 'swig', 'python', 'asm', 'isa', 'scons'))
339 test_name = 'line length'
340 opt_name = 'length'
341
342 def check_line(self, line):
343 return style.normalized_len(line) <= 78
343 return style.normalized_len(line) <= 79
344
345 def fix(self, filename, regions=all_regions):
346 self.ui.write("Warning: cannot automatically fix overly long lines.\n")
347
348 def fix_line(self, line):
349 pass
350
351class ControlCharacters(LineVerifier):

--- 42 unchanged lines hidden ---
344
345 def fix(self, filename, regions=all_regions):
346 self.ui.write("Warning: cannot automatically fix overly long lines.\n")
347
348 def fix_line(self, line):
349 pass
350
351class ControlCharacters(LineVerifier):

--- 42 unchanged lines hidden ---