Code Monkey home page Code Monkey logo

gulp-clang-format's Introduction

Angular - The modern web developer's platform

angular-logo
Angular is a development platform for building mobile and desktop web applications
using TypeScript/JavaScript and other languages.

angular.dev

Contributing Guidelines · Submit an Issue · Blog

CI status   Angular on npm   Discord conversation

InsightsSnapshot


Documentation

Get started with Angular, learn the fundamentals and explore advanced topics on our documentation website.

Advanced

Development Setup

Prerequisites

Setting Up a Project

Install the Angular CLI globally:

npm install -g @angular/cli

Create workspace:

ng new [PROJECT NAME]

Run the application:

cd [PROJECT NAME]
ng serve

Angular is cross-platform, fast, scalable, has incredible tooling, and is loved by millions.

Quickstart

Get started in 5 minutes.

Ecosystem

angular ecosystem logos

Changelog

Learn about the latest improvements.

Upgrading

Check out our upgrade guide to find out the best way to upgrade your project.

Contributing

Contributing Guidelines

Read through our contributing guidelines to learn about our submission process, coding rules, and more.

Want to Help?

Want to report a bug, contribute some code, or improve the documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues labeled as help wanted or good first issue.

Code of Conduct

Help us keep Angular open and inclusive. Please read and follow our Code of Conduct.

Community

Join the conversation and help the community.

Love Angular badge

Love Angular? Give our repo a star ⭐ ⬆️.

gulp-clang-format's People

Contributors

alan-agius4 avatar alexeagle avatar dependabot[bot] avatar devversion avatar igorminar avatar mprobst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gulp-clang-format's Issues

version skew when running suggested command

When the formatting is not correct, we print a clang-format command line for how to fix it.
That relies on the version of clang-format installed globally by npm, which may differ from the version used in the project's node_modules.
As a result, the formatting produced by running the command may not fix the warnings from the gulp build. We should print a command line which uses the same version as gulp task will use.

format() does not change the file modification time

const clangFormat = require('gulp-clang-format');
const gulp = require('gulp');

gulp.task('format', () =>
{
	let src = 'src/**/*.cpp';

	return gulp.src(src, { base: '.' })
		.pipe(clangFormat.format('file'))
		.pipe(gulp.dest('.'));
});

Runnin the gulp format task achieves its purpose and modifies source files according to rules in .clang-format. But, the modification time of those modified files do not change.

This is annoying when you have such a file into a text editor, run gulp format in a terminal, the file is modified, but the text editor has no way to realize of it so the display is not refreshed.

As a suggestion, format() may invoke touch in modified files.

P.S.: This may be an issue of clang-format itself.

Sporadic false positives due to stream-equal 0.1.7

When upgrading transitive dependencies of gulp-clang-format in angular/angular I started seeing frequent but random false positives when running gulp check-format.

I was able to narrow the issue down to gulp-clang-format's stream-equal dependency. Version 0.1.6 works just fine but 0.1.7 exhibits this problem.

I haven't investigated if this is happening due to a bug in stream-equal or due to how we use it.

For now I'm going to limit the stream-equal transitive dependency of gulp-clang-format to <=0.1.6.

Overwrite code

Instead of providing a formatted directory, is it possible to overwrite the files instead?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.