no-abbreviations
WarningWarningWarningWarningUse full words in bindings, parameters, functions, fields and type names. id is the only allowed abbreviation.
fn run() { let res = call();}fn run() { connection.transaction(async |tx| save(tx)).await;}fn handle(ctx: &Context) {}fn run() { if let Err(e) = call() { log(e); }}fn run() { let uuid_str = "";}struct Settings { db_url: String,}trait PgPoolExt {}fn init_cfg() {}fn find_by_id(executor: E, id: &UserID) -> Result<User> { let user_id = id; return connection.transaction(async |transaction| load(transaction, user_id)).await;}fn environment() -> String { return env::var("HOST").unwrap_or_default();}struct Configuration { connection: PgPool,}const res = await fetch(url);items.map(el => el.name);try { run(); } catch (e) { report(e); }function parseCfg(value: string) {}class UserCtx {}function handle(req: Request) {}const userId = request.id;items.map((item) => item.name);try { run(); } catch (error) { report(error); }void run(int idx) {}void run() { final res = call();}void run() { try { call(); } catch (e) { report(e); }}void run() { items.map((el) => el.name);}void run(int index) { final userId = 1; try { call(); } catch (error) { report(error); }}class User { void create(String userId, String tx) {}}class Config { String readCfg() { return ""; }}class UserID { private String userID; void create(String userId, String id) {}}How to fix
Spell the word out: transaction for tx, context for ctx, error for e or err, result or response for res, request for req, configuration for cfg or config, connection for conn, environment for env, index for i or idx, message for msg, information for info, utilities for utils, authentication for auth, extension for ext.
id is the only abbreviation allowed. Names fixed by a language, library or protocol keep their spelling.
How to fix
Spell the word out: transaction for tx, context for ctx, error for e or err, result or response for res, request for req, configuration for cfg or config, connection for conn, environment for env, index for i or idx, message for msg, information for info, utilities for utils, authentication for auth, extension for ext.
id is the only abbreviation allowed. Names fixed by a language, library or protocol keep their spelling.
How to fix
Spell the word out: transaction for tx, context for ctx, error for e or err, result or response for res, request for req, configuration for cfg or config, connection for conn, environment for env, index for i or idx, message for msg, information for info, utilities for utils, authentication for auth, extension for ext.
id is the only abbreviation allowed. Names fixed by a language, library or protocol keep their spelling.
How to fix
Spell the word out: transaction for tx, context for ctx, error for e or err, result or response for res, request for req, configuration for cfg or config, connection for conn, environment for env, message for msg, authentication for auth. id is the only abbreviation allowed. Names fixed by Java libraries and protocols keep their spelling.