Skip to content
This repository has been archived by the owner on Jul 13, 2019. It is now read-only.

Add options to change extensions to cli arguments and the CPPLINT.cfg option file #17

Closed
wants to merge 1 commit into from

Conversation

tkruse
Copy link
Owner

@tkruse tkruse commented Apr 23, 2016

Rebasing this after #22 should remove several changes.

In addition to changes in #22, this should be extended to allow configuring:

  • header-extensions
  • source-extensions (exclude? already implemented?)
  • test-basename-suffixes

as argument and as entry in cpplint.CFG. (not #18 and #21 also add configuration options)

As comment in #22 says, these options should take care to avoid User confusion over changing file extensions while keeping other fixed values for classification of headers and non-headers.

@tkruse tkruse force-pushed the add_extensions branch 2 times, most recently from ebe2df0 to 7da0f37 Compare April 23, 2016 17:06
_valid_extensions = _valid_extensions.union(set(extensions))
except ValueError:
sys.stderr.write('Extensions should be a comma-separated list of values;'
'for example: extensions=hpp,cpp\n'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the example, I'd write ','.join(_valid_extensions), so if (when) it's copy-pasted, it can be used as a starting point that gives the same behavior as the default behavior.

@itamaro
Copy link
Contributor

itamaro commented Apr 23, 2016

please also add information about the extensions option to the usage docstring (around line 150)

@tkruse
Copy link
Owner Author

tkruse commented Apr 23, 2016

I unified this PR with #11, as they deal with the same thing. will copy your comments there

@tkruse tkruse closed this Apr 23, 2016
@tkruse
Copy link
Owner Author

tkruse commented Apr 23, 2016

no, sorry, this one is the good PR, closed #11

@tkruse tkruse reopened this Apr 23, 2016
@tkruse tkruse force-pushed the add_extensions branch 2 times, most recently from 25eec63 to 01c4e85 Compare April 23, 2016 18:59
@tkruse tkruse mentioned this pull request Apr 23, 2016
@tkruse
Copy link
Owner Author

tkruse commented Apr 23, 2016

should not be merged before #22

Using flag name to --headers as it makes more sense
Added the extensions option to the CPPLINT.cfg option file
@tkruse tkruse changed the title Added the extensions option to the CPPLINT.cfg option file Add options to change extensions to cli arguments and the CPPLINT.cfg option file Apr 24, 2016
@tkruse
Copy link
Owner Author

tkruse commented Apr 24, 2016

now superceded by #22

@tkruse tkruse closed this Apr 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants