Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve formatting of generic methods and constructors #94

Closed
belav opened this issue Apr 12, 2021 · 1 comment · Fixed by #284
Closed

Improve formatting of generic methods and constructors #94

belav opened this issue Apr 12, 2021 · 1 comment · Fixed by #284
Labels
area:formatting type:bug Something isn't working
Milestone

Comments

@belav
Copy link
Owner

belav commented Apr 12, 2021

The where on this seems out of place. This could have to do with SpaceBrace, maybe if we just NewLineBrace where there is a where constraint it will be good.
or the where should stay on the same line as the CloseParen, but the brace should still newline

        public static IQueryable<TEntity> ApplyTracking<TEntity>(
            this IQueryable<TEntity> query,
            bool tracking
        )
            where TEntity : class {
            return tracking ? query : query.AsNoTracking();
        }
@belav belav added type:bug Something isn't working area:formatting labels Apr 12, 2021
@belav
Copy link
Owner Author

belav commented Apr 12, 2021

Related, this happens now

        public OrdersSqlServerContext(
            string connectionString,
            IServiceProvider serviceProvider = null,
            bool disableBatching = false
        )
            : base(serviceProvider) {
            _connectionString = connectionString;
            _disableBatching = disableBatching;
        }

@belav belav added this to the 0.9.6 milestone Jun 12, 2021
@belav belav changed the title Generic method is a little ugly Improve formatting of generic methods and constructors Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:formatting type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant