https://github.com/bast/localimporter

Locates sources which might require an include reorder.

https://github.com/bast/localimporter

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.6%) to scientific vocabulary

Keywords

c cpp header-files includes
Last synced: 5 months ago · JSON representation

Repository

Locates sources which might require an include reorder.

Basic Info
  • Host: GitHub
  • Owner: bast
  • License: mpl-2.0
  • Language: Python
  • Default Branch: master
  • Size: 8.79 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
c cpp header-files includes
Created almost 8 years ago · Last pushed almost 8 years ago
Metadata Files
Readme License

README.md

License

localimporter: locates sources which might require an include reorder

Script that goes through your C/C++ project and finds sources which include standard headers before including local headers.

You may then consider reordering these.

Why? Because importing standard headers first may mask missing imports in your own local headers and sources and they otherwise may stop compiling if the order changes or if somebody uses them in another code.

The script does not modify any files.

Example

``` $ python localimporter.py --root /home/user/exciting-project

/home/user/exciting-project/src/this.hpp /home/user/exciting-project/src/that.h /home/user/exciting-project/src/another.cpp /home/user/exciting-project/src/somelib.c /home/user/exciting-project/src/main.cpp

$ python localimporter.py --root /home/user/exciting-project --suffixes "['hpp']"

/home/user/exciting-project/src/this.hpp ```

Command line options

``` $ python localimporter.py --help Usage: localimporter.py [OPTIONS]

Options: --root TEXT Directory root under which the script will search files. --suffixes TEXT List of suffixes to search, default: ['h', 'hpp', 'c', 'cpp']. --help Show this message and exit. ```

Owner

  • Name: Radovan Bast
  • Login: bast
  • Kind: user
  • Location: Tromsø, Norway
  • Company: @uit-no @neicnordic

Theoretical chemist turned research software engineer. Leads @coderefinery.

GitHub Events

Total
Last Year

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 7
  • Total Committers: 1
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Radovan Bast b****t 7

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

requirements.txt pypi
  • click *
  • pycodestyle *