4 ms·
How does the linter treat 'get_file_system' and 'get_filesystem'? Which one would be flagged as an error?
by overthrow 4y ago
How does the linter treat 'get_file_system' and 'get_filesystem'? Which one would be flagged as an error?
- deleted 4y ago[deleted]
- ptramo 4y agoThe one that doesn't match the declaration.
- overthrow 4y agoAn earlier comment says: > It's so external dependencies don't have to infect your codebase. So you can actually apply a consistent code style within your project. Say an external dependency has a declaration called 'getFileSystem', and in my Nim codebase I refer to it as 'get_file_system', but last year someone accidentally committed 'get_filesystem'. In this case neither usage matches the declaration. Does the linter flag both spellings because they don't match 'getFileSystem'? EDIT: And what about reflection? If someone wrote `newCall("get_filesystem")`, will the linter fix that too?