Skip to content

No newline at end of file #750

Open
Open
@friederbluemle

Description

@friederbluemle

What you are doing?

I use the sequelize command to generate models and migrations, for example:

sequelize model:create --name User --attributes name:string,state:boolean,birth:date,card:integer,role:enum:'{Admin,Guest}'

What do you expect to happen?

The generated text files do not contain whitespace errors and are well formed.

What is actually happening?

The generated files are missing the newline at EOF. This causes warnings with Git:

No newline at end of file

It might also cause unintended file changes with some editors (e.g. vim) that automatically insert a missing EOF newline character.

Dialect: mysql / postgres / sqlite / mssql / any
Database version: n/a
Sequelize CLI version: 5.4.0
Sequelize version: 4.43.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions