TimZander / TimZander/claude

New line between sections in razor files

Open
#144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
1
Avg merge
1d 3h
Merged PRs (30d)
7

Description

I propose we add to the team standards to put a new line in razor files between the different sections, for example in this file I think there should be a new line after the first line then after the next two lines. Implements, Injects and Usings should be their own sections basically, thoughts? 

before:
@page "foo"
@implements IDisposable
@inject IRateCalculatorContext Context
@inject IStringLocalizer L
@using Microsoft.Extensions.Localization
@using ResortOperationsControl.Client.Resources
@using ResortOperationsControl.Client.Services.RateCalculator
@using ResortOperationsControl.Shared.RateCalculator

after:
@page "foo"

@implements IDisposable

@inject IRateCalculatorContext Context
@inject IStringLocalizer L

@using Microsoft.Extensions.Localization
@using ResortOperationsControl.Client.Resources
@using ResortOperationsControl.Client.Services.RateCalculator
@using ResortOperationsControl.Shared.RateCalculator

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides a before/after example for Razor directives but names no standards file or test. Start by locating the repository's team standards or Razor guidance, then document the requested blank-line grouping and confirm the convention is recorded where those standards are maintained.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.