question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Request] ignore some function names for `at-function-named-arguments`

See original GitHub issue

I’d like to require named arguments for most function calls, but exclude things like map-merge(). Would it be possible to add this as an optional secondary rule?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
kristerkaricommented, Aug 12, 2018

@chimericdream I have implemented an option called ignoreFunctions. It will be included in the next release: https://github.com/kristerkari/stylelint-scss/pull/269

1reaction
kristerkaricommented, Aug 5, 2018

Just to give an update, I have verified the bug and I’m working on a fix. It’s a bit tricky to fix tho because of the hacky way of how the rule is parsing function parameters currently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does one ignore unexpected keyword arguments passed ...
The nice thing about my solution is that you can see that the function has a default value just from the function header,...
Read more >
Keyword (Named) Arguments in Python: How to Use Them
Let's take a look at what keyword arguments (also called “named arguments”) are. First let's take this Python function: ...
Read more >
Ignore when argument values are the same as the parameter ...
The idea is to introduce a new setting for NamedArguments called something like ignoreSimpleArgumentValues (preferably a better name :-) ). When ...
Read more >
JavaScript: Why Named Arguments are Better than Positional ...
Positional Arguments are pretty straight-forward to do but you will face some challenges with them. 1. Can't skip middle arguments. Say you have ......
Read more >
Named and Optional Arguments - C# Programming Guide
Named arguments in C# specify arguments by name, not position. Optional arguments can be omitted.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found